aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/config-glibc.xml
diff options
context:
space:
mode:
authorGerard Beekmans <gerard@linuxfromscratch.org>2003-01-28 01:17:02 +0000
committerGerard Beekmans <gerard@linuxfromscratch.org>2003-01-28 01:17:02 +0000
commit4f8a3af985f20d9f462210294a732dad1b7e595d (patch)
tree9ee41b82d96ecf8deb1c9ba372a3a8c0970ee7c7 /chapter06/config-glibc.xml
parent7bfad056d62e2e8299cdc834750d87e76199c113 (diff)
QA Chap6 part2
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2404 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/config-glibc.xml')
-rw-r--r--chapter06/config-glibc.xml33
1 files changed, 33 insertions, 0 deletions
diff --git a/chapter06/config-glibc.xml b/chapter06/config-glibc.xml
index 58369f33a..afafb6c73 100644
--- a/chapter06/config-glibc.xml
+++ b/chapter06/config-glibc.xml
@@ -55,3 +55,36 @@ by running:</para>
</sect2>
+<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
+
+<sect2>
+<title>Configuring Dynamic Loader</title>
+
+<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 for the dynamic
+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
+dynamic loader's search path.</para>
+
+<para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
+following:</para>
+
+<para><screen><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"</userinput>
+# Begin /etc/ld.so.conf
+
+/usr/local/lib
+/opt/lib
+
+# End /etc/ld.so.conf
+<userinput>EOF</userinput></screen></para>
+
+</sect2>
+