TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:23344] what's '--rpath'?



Carl Wilhelm Soderstrom wrote:
> 
> galeon (galeon.sourceforge.net -- a cool mozilla-based web browser) crashes
> on a certain machine, while starting.
> so I'm trying to compile one from source, hoping to fix library problems.
> however, while trying to compile the galeon src.rpm, I get the following errors:
> 
> /usr/bin/ld: warning: libplds4.so, needed by
> /usr/lib/mozilla/libgtkembedmoz.so, n
> ot found (try using --rpath)
> /usr/bin/ld: warning: libplc4.so, needed by
> /usr/lib/mozilla/libgtkembedmoz.so, no
> t found (try using --rpath)
> /usr/bin/ld: warning: libnspr4.so, needed by
> /usr/lib/mozilla/libgtkembedmoz.so, n
> ot found (try using --rpath)
> 
> however:
> [admin@iron ~]$ locate libplds4.so
> /usr/lib/mozilla/libplds4.so
> 
> what the heck is --rpath, and how do I use it?

It's a way of telling executables where to look for their libraries. 
It's a link-time argument to the `ld' program, AFAICT..  It's probably
just easier to set the LD_LIBRARY_PATH or LD_RUN_PATH environment
variables.  `man ld' for (a little) more info.

-- 
 _  _  _  _ _  ___    _ _  _  ___ _ _  __   Agnodyslexic plea: "why 
/ \/ \(_)| ' // ._\  / - \(_)/ ./| ' /(__   ME, dog?" 
\_||_/|_||_|_\\___/  \_-_/|_|\__\|_|_\ __)                             
[ Mike Hicks | http://umn.edu/~hick0088/ | mailto:hick0088@tc.umn.edu ]