CDT CDT - 1 year ago 84
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
Answer Source

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>.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download