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 @@ Configuring Dynamic Loader -By default the dynamic loader searches a few default paths for dynamic -libraries, so there normally isn't a need for the -/etc/ld.so.conf file unless the system has extra -directories in which you want the system to search for libraries. The -/usr/local/lib 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. +By default, the dynamic loader +(/lib/ld-linux.so.2) searches through /lib and /usr/lib for dynamic libraries that are needed +by programs when you run them. However, if there are libraries in +directories other than /lib and +/usr/lib, you need to add them to +the /etc/ld.so.conf file in order for the dynamic +loader to find them. One directory that is very common to contain +additional libraries is /usr/local/lib so we add that directory to the +dynamic loader's search path. Create a new file /etc/ld.so.conf by running the following: @@ -16,8 +20,6 @@ following: cat > /etc/ld.so.conf << "EOF" # Begin /etc/ld.so.conf -/lib -/usr/lib /usr/local/lib # End /etc/ld.so.conf