On Thu, 22 Feb 2001, Janethe_Co/Philippines/IBM%IBMUS wrote:

> from the header, it contains the built-in libpath on where to search for
> the libraries needed. Now, using the ld command, is it possible for me
> to change the Libpath to something like /usr/local/lib/:/usr/lib ?

Most modern linux systems use elf-format executables.  The elf-format
program loader path "/lib/ld-linux.so.2" is hardwired into the executable
and the dynamic libraries are named without path.  For example the
c library appears as "libc.so.6" and not as "/lib/libc.so.6" (the link)
nor as "/lib/libc-2.1.3.so" (the actual library).

The link editor ld-linux.so.2 finds the actual library by using the
paths configured in /etc/ld.so.conf.  The "ldconfig" command looks
for all dynamic libraries in the directories listed in /etc/ld.so.conf
and puts them all in the database /etc/ld.so.cache

If you are using linux, my best bet is for you to put the directory
names in /etc/ld.so.conf and issue the ldconfig command.

If you are using AIX on RS/6000, then this PLUG list is the wrong place
to post your query.

PMana

_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Reply via email to