Tuesday, May 13, 2008

Error in loading shared libraries

The application is not able to find the shared library files (.lib .so or .so.*)

Technique #1
export LD_LIBRARY_PATH=/path/to/the/library
add this line to bashrc if you want to avoid typing it everytime

Technique #2
vi /etc/ld.so.conf
add a line: /path/to/the/library
save
run ldconfig

No comments: