2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Configuring Dynamic Loader</title>
|
|
|
|
|
2002-03-05 13:18:52 +00:00
|
|
|
<para>By default, the dynamic loader
|
|
|
|
(<filename>/lib/ld-linux.so.2</filename>) searches through <filename
|
|
|
|
class="directory">/lib</filename> and <filename
|
|
|
|
class="directory">/usr/lib</filename> for dynamic libraries that are needed
|
|
|
|
by programs when you run them. However, if there are libraries in
|
|
|
|
directories other than <filename class="directory">/lib</filename> and
|
|
|
|
<filename class="directory">/usr/lib</filename>, you need to add them to
|
|
|
|
the <filename>/etc/ld.so.conf</filename> file in order for the dynamic
|
2002-03-09 01:38:35 +00:00
|
|
|
loader to find them. Two directories that are commonly known to contain
|
|
|
|
additional libraries are <filename
|
|
|
|
class="directory">/usr/local/lib</filename> and <filename
|
|
|
|
class="directory">/opt/lib</filename>, so we add those directories to the
|
2002-03-05 13:18:52 +00:00
|
|
|
dynamic loader's search path.</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
|
|
|
|
following:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para><screen><userinput>cat > /etc/ld.so.conf << "EOF"</userinput>
|
2001-01-24 00:31:17 +00:00
|
|
|
# Begin /etc/ld.so.conf
|
|
|
|
|
|
|
|
/usr/local/lib
|
2002-03-09 01:38:35 +00:00
|
|
|
/opt/lib
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
# End /etc/ld.so.conf
|
2001-07-22 20:45:10 +01:00
|
|
|
<userinput>EOF</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|