2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Configuring Dynamic Loader</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
By default the dynamic loader searches a few default paths for dynamic
|
|
|
|
libraries, so there normally isn't a need for the
|
2001-03-19 16:02:50 +00:00
|
|
|
<filename>/etc/ld.so.conf</filename> file unless the system has extra
|
|
|
|
directories in which a user wants the system to search for paths. The
|
2001-01-24 00:31:17 +00:00
|
|
|
<filename class="directory">/usr/local/lib</filename> directory isn't
|
|
|
|
searched through for dynamic libraries by default, so we want to add
|
2001-04-25 22:21:54 +01:00
|
|
|
this path so when you install software you won't be surprised by them not
|
2001-01-24 00:31:17 +00:00
|
|
|
running for some reason.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Create a new file <filename>/etc/ld.so.conf</filename> by running the
|
|
|
|
following:
|
|
|
|
</para>
|
|
|
|
|
2001-07-10 16:06:31 +01:00
|
|
|
<para>
|
|
|
|
<screen>
|
2001-01-24 00:31:17 +00:00
|
|
|
<userinput>cat > /etc/ld.so.conf << "EOF"</userinput>
|
|
|
|
# Begin /etc/ld.so.conf
|
|
|
|
|
|
|
|
/lib
|
|
|
|
/usr/lib
|
|
|
|
/usr/local/lib
|
|
|
|
|
|
|
|
# End /etc/ld.so.conf
|
|
|
|
<userinput>EOF</userinput>
|
2001-07-10 16:06:31 +01:00
|
|
|
</screen>
|
|
|
|
</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
<para>
|
|
|
|
Although it's not necessary to add the
|
|
|
|
<filename class="directory">/lib</filename> and
|
|
|
|
<filename class="directory">/usr/lib</filename> directories it doesn't
|
2001-04-25 22:21:54 +01:00
|
|
|
hurt. This way it can be seen right away what's being searched and a you
|
|
|
|
don't have to remember the default search paths if you don't want to.
|
2001-01-24 00:31:17 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|