Linux Shared Libraries: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=External= =Internal= * Linux =Configuration= Additional directories where to load libraries from: /etc/ld.so.conf =Troubleshooting= <syntaxhighlight...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
=External=
=External=
 
* https://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html


=Internal=
=Internal=
Line 7: Line 7:
=Configuration=
=Configuration=


Additional directories where to load libraries from:
Additional directories to load dynamic libraries from can be specified in /etc/ld.so.conf or in individual *.conf files in /etc/ld.so.conf.d. Such a file should list the full path of the directories to load libraries from, one per line:
<syntaxhighlight lang='text'>
/conda/envs/jep/lib
/usr/lib/jvm/java-1.8.0-amazon-corretto/jre/lib/amd64/server
</syntaxhighlight>
 
The functionality is equivalent to [[Bash_Built-In_Variables#LD_LIBRARY_PATH|LD_LIBRARY_PATH]].


/etc/ld.so.conf
=Environment Variables=
* [[Bash_Built-In_Variables#LD_LIBRARY_PATH|LD_LIBRARY_PATH]]
* [[Bash_Built-In_Variables#LD_PRELOAD|LD_PRELOAD]]


=Troubleshooting=
=Troubleshooting=

Latest revision as of 06:02, 5 February 2021

External

Internal

Configuration

Additional directories to load dynamic libraries from can be specified in /etc/ld.so.conf or in individual *.conf files in /etc/ld.so.conf.d. Such a file should list the full path of the directories to load libraries from, one per line:

/conda/envs/jep/lib
/usr/lib/jvm/java-1.8.0-amazon-corretto/jre/lib/amd64/server

The functionality is equivalent to LD_LIBRARY_PATH.

Environment Variables

Troubleshooting

ldconfig -v
ldd libjep.so