[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Program can't find shared libraries



Matt Miller <mmiller@extremezone.com> writes:

[cut]
> 1. copy the libraries to /lib or /usr/lib
Probably a bad idea.  If you remove the program at some later time, you'll have
to remember to remove the libraries.  If you upgrade, you'll have to remember
to copy the new versions.

> 2. put symlinks in /lib or /usr/lib 
Better, IMHO, since symlinks take less space than the actual libraries.  Also,
if you upgrade, you'll (most likely) get the new version.

However, you should not put them in /lib or /usr/lib.  User-installed libraries
should go into /usr/local/lib.  Edit /etc/ld.so.conf so that it includes
/usr/local/lib, and run ldconfig after you add the symlinks.

> 3. set some environment variable or something to tell
>    this particular suite of programs to check the app's
>    special /lib directory.

Probably the best option.  You're probably looking for the LD_LIBRARY_PATH
environment variable.

Hubert

-- 
____     |     -----------------------------------------------------------
|  /   --+--
| /   ___|___    Hubert Chan <hackerhue@crosswinds.net>
| \   | _|_ |
|__|  |__|__|    GCS/M d- s:- a-- C++ UL+(++++) P++ L++ E++ W++ N++ o?
|        |       K? w--- O++ M- V- PS-- PE+++ Y+ PGP+ t+ 5 X R- tv+ b+
|      / | \     DI++++ D G e++ h! !r !y
|     /  |  \
|        |     <><------------------ http://www.crosswinds.net/~hackerhue/
PGP/GnuPG fingerprint: 6CC5 822D 2E55 494C 81DD  6F2C 6518 54DF 71FD A37F
Key can be found at http://www.crosswinds.net/~hackerhue/hackerhue.asc



Reply to: