Current-Users archive

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

Re: should I need to set LD_LIBRARY_PATH for X11R7 for pkg binaries now?

On 16 Dec 2008, at 19:42, Joerg Sonnenberger wrote:
All ELF binaries do that for things outside "/usr/lib".

/usr/lib and /lib in the case of NetBSD. Just to be pedantic.

It's not pedantic, it's wrong. ;-)

tron@colwyn:~>ldd /bin/ls
        -lc.12 => /lib/
        -lutil.7 => /lib/
tron@colwyn:~>ldd /usr/bin/vi
        -lc.12 => /usr/lib/
        -lcurses.6 => /usr/lib/

As you can see normal binaries (outside of "/bin" and "/sbin")
are not linked to look for libraries in "/lib". That is why
you need the symbolic link for "lib" in "/usr/lib".

        Kind regards

Matthias Scheler                 

Home | Main Index | Thread Index | Old Index