Sunday, January 8, 2012

Set LD_LIBRARY_PATH Permanently

1. Add a new file named yourlib.conf to the directory /etc/ld.so.conf/. In that file, add a simple line like this
/home/youraccount/libs/                   (directory in which your library is located)

2. run command "ldconfig -v" to make programs find all new linked libraries.

3. Done!