LD_LIBRARY_PATH
Geoff Keating
geoffk@geoffk.org
Sat Nov 23 18:13:00 GMT 2002
Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> writes:
> This is an issue coming up again and again, and it really seems to
> burn users, especially since we switched to libgcc_s.so.
>
> http://gcc.gnu.org/java/build-snapshot.html already has a bit on
> LD_LIBRARY_PATH, though I believe we also need something in our main
> installation documentation.
>
> The questions is: What exactly do we want to document, and how? Do
> we just want to state
>
> After the installation, you will probably need to add $prefix/lib
> to LD_LIBRARY_PATH, so that dynamic executable can locate their
> libraries
>
> or something more elaborate?
If we do want something more descriptive, the rule is that libraries
from newer versions of GCC should be preferred over libraries from
earlier versions, but when the libraries don't conflict, both should
be installed. This can be done by using LD_LIBRARY_PATH, or by
copying the files into appropriate locations, or a bunch of other
ways depending on the user's system configuration.
--
- Geoffrey Keating <geoffk@geoffk.org>
More information about the Gcc
mailing list