aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/config-ldso.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/config-ldso.xml')
-rw-r--r--chapter06/config-ldso.xml22
1 files changed, 12 insertions, 10 deletions
diff --git a/chapter06/config-ldso.xml b/chapter06/config-ldso.xml
index 63b8860d0..b1c6b8b43 100644
--- a/chapter06/config-ldso.xml
+++ b/chapter06/config-ldso.xml
@@ -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