aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/config-ldso.sgml
diff options
context:
space:
mode:
authorGerard Beekmans <gerard@linuxfromscratch.org>2001-01-24 00:31:17 +0000
committerGerard Beekmans <gerard@linuxfromscratch.org>2001-01-24 00:31:17 +0000
commit6370fa6cff0ec2a8ac8d50d1595ec9500f6631c9 (patch)
treeb17c8cb0a839b76f4a7db0f771953caa11c3a04e /chapter06/config-ldso.sgml
parent5c930fe6eb43d23cfa0de2451d9a905a8505f981 (diff)
Initial commit - LFS 2.4.4 files
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@14 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/config-ldso.sgml')
-rw-r--r--chapter06/config-ldso.sgml43
1 files changed, 43 insertions, 0 deletions
diff --git a/chapter06/config-ldso.sgml b/chapter06/config-ldso.sgml
new file mode 100644
index 000000000..c340db151
--- /dev/null
+++ b/chapter06/config-ldso.sgml
@@ -0,0 +1,43 @@
+<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 you have extra
+directories in which you want the system to search for paths. 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 suprised by them not
+running for some reason.
+</para>
+
+<para>
+Create a new file <filename>/etc/ld.so.conf</filename> by running the
+following:
+</para>
+
+<literallayout>
+
+<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
+<userinput>EOF</userinput>
+
+</literallayout>
+
+<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
+hurt. This way you see right away what's being searched and don't have
+to remeber the default search paths if you don't want to.
+</para>
+
+</sect2>
+