Personal tools

Difference between revisions of "Ldconfig"

From MohidWiki

Jump to: navigation, search
 
m (1 revision)
 
(No difference)

Latest revision as of 10:27, 3 December 2008

Getting the following error?:

error while loading shared libraries

Here's how to solve the problem. In order to add a shared library in your linux environment perform the following steps:

  • Locate with find the emplacement of the shared object. We'll call it herein lib.so.
> find / | grep lib.so
  • Go to /usr/lib:
> cd /usr/lib
> ln -s $LOCATION/lib.so.0.0.0 lib.so
> ln -s $LOCATION/lib.so.0.0.0 lib.so.0
  • Reload the library cache
> /sbin/ldconfig

If you get permissions denied, then perform the commands with sudo in front.