How to set LD_LIBRARY_PATH
I'm having trouble running a program that I compiled that uses a dynamically linked library in /usr/local/lib. I've even compiled it with the -L/usr/local/lib flag, but when I ldd the executable it doesn't find the library.
Apparently the library directory isn't in LD_LIBRARY_PATH. I've read it's a bad idea to modify LD_LIBRARY_PATH, but how else can I specify the library location?
Last edited by galapogos; 11-20-2008 at 01:47 AM.