removed /lib and /usr/lib from ld.so.conf, updated explanation of the file's usage

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1662 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Gerard Beekmans 2002-03-05 13:18:52 +00:00
parent 4faf336ac4
commit c15f4a72ab

View File

@ -1,14 +1,18 @@
<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
<filename>/etc/ld.so.conf</filename> file unless the system has extra
directories in which you want the system to search for libraries. The
<filename class="directory">/usr/local/lib</filename> directory isn't
searched through for dynamic libraries by default, so we want to add
this path so when you install software you won't be surprised by them not
running for some reason.</para>
<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
loader to find them. One directory that is very common to contain
additional libraries is <filename
class="directory">/usr/local/lib</filename> so we add that directory to the
dynamic loader's search path.</para>
<para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
following:</para>
@ -16,8 +20,6 @@ following:</para>
<para><screen><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"</userinput>
# Begin /etc/ld.so.conf
/lib
/usr/lib
/usr/local/lib
# End /etc/ld.so.conf