diff options
author | Gerard Beekmans <gerard@linuxfromscratch.org> | 2002-03-05 13:18:52 +0000 |
---|---|---|
committer | Gerard Beekmans <gerard@linuxfromscratch.org> | 2002-03-05 13:18:52 +0000 |
commit | c15f4a72ab140186387f14ca65fb5f714bcaf28a (patch) | |
tree | c1d02fbd1a012110fff5c4fe57a983df22da7ff9 | |
parent | 4faf336ac440328cdabffa10eeb8dfc388e96056 (diff) |
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
-rw-r--r-- | chapter06/config-ldso.xml | 22 |
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 > /etc/ld.so.conf << "EOF"</userinput> # Begin /etc/ld.so.conf -/lib -/usr/lib /usr/local/lib # End /etc/ld.so.conf |