CDT CDT - 3 months ago 9x
Linux Question

Linux - SO file not found

I have a program which requires

installed to run. Now I want the program to run on another machine without
. So I just find the
and move it to the same directory of my program. But at running error reported:

error while loading shared libraries: cannot open shared object file: No such file or directory

Am I doing it right ? How can I told the program to find the SO file just beside it ?

Tom Tom

Check your LD_LIBRARY_PATH environment variable... One of the directories on the path should point to the location of your file; also the linux command ldd is handy for determining which shared object libraries are being used in your executable. The syntax is ldd <executable>.