LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   run-time problem with shared lib load (https://www.linuxquestions.org/questions/linux-software-2/run-time-problem-with-shared-lib-load-817394/)

vlyamtse 07-01-2010 08:19 AM

run-time problem with shared lib load
 
Hello,
I have installed '.so' libs into /usr/local/lib but it seems like application still cannot load them even though i have /usr/local/lib
in /etc/ld.so.conf.d/libc.conf
Application works fine if I add path to the '*.so' files into LD_LIBRARY_PATH, so this is load path issue, the system is Ubuntu...
It was my understanding that having shared libs in /etc/ld.so.conf is sufficient for app to find shared libs, do i have to do something else to have /usr/local/lib as default load path?
Thanks,
-V

bathory 07-01-2010 12:41 PM

Hi,

You have to run
Code:

sudo ldconfig
after adding/editing paths to shared libraries

vlyamtse 07-02-2010 07:13 AM

Re:
 
ldconfig. Tried that - doesn't help

bathory 07-03-2010 04:03 AM

Hi,

What happens if you put /usr/local/lib directly in /etc/ld.so.conf before the include statement?
You can run "ldconfig -v" afterwards, to see if it's added.

knudfl 07-03-2010 04:12 AM

Some ( very few ) executables are hard coded to look for
their shared libraries in /usr/lib/ only.

Thus an entry to /etc/ld.so.conf may not work.

..


All times are GMT -5. The time now is 07:41 PM.