LD_LIBRARY_PATH in Ubuntu
Leo Cacciari
leo.cacciari at gmail.com
Fri Feb 29 21:53:42 UTC 2008
Il giorno ven, 29/02/2008 alle 21.41 +0100, Gerald Dachs ha scritto:
> Am Fri, 29 Feb 2008 11:03:07 +0100
> schrieb "Rutger van Haasteren" <rvhaasteren at gmail.com>:
> [...snip...]
> You didn't set the path, at least not in the same session:
> ~$ export LD_LIBRARY_PATH=somedir
> ~$ echo $LD_LIBRARY_PATH
> somedir
>
> Gerald
>
>
AFAIK LD_LIBRARY_PATH is unset in ubuntu, since the libraries are all
where they should be:) If you install libraries in non-default
directories (which is avoidable by using stow...) you must indeed set
LD_LIBRARY_PATH. You may do it either on the spot, just before launching
the command either
~$ export LD_LIBRARY_PATH=somedir
~$ command
Or (better IMHO) as
~$ LD_LIBRARY_PATH=somedir command
Or you could set up the variable in your login script, adding
export LD_LIBRARY_PATH=somedir
to ~/.bash_profile
If you want the settings to be system wide, add the above line in
/etc/sysprofile.d/00Standard.bash
As the same file points out:
~$ cat /etc/sysprofile.d/00Standard.bash
# This here is for any settings you want. If the contents
# become too abundant consider separating them into single
# modules. Please do read "/usr/share/doc/sysprofile/README.usage"
# for further information. Sample modules can be found in the
# samples subdirectory "/usr/share/doc/sysprofile/examples/".
Enjoy
--
Leo 'TheHobbit' Cacciari
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Questa รจ una parte del messaggio firmata digitalmente
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080229/fbed0530/attachment.sig>
More information about the ubuntu-users
mailing list