config-ldso.xml 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. <sect2>
  2. <title>Configuring Dynamic Loader</title>
  3. <para>By default the dynamic loader searches a few default paths for dynamic
  4. libraries, so there normally isn't a need for the
  5. <filename>/etc/ld.so.conf</filename> file unless the system has extra
  6. directories in which you want the system to search for libraries. The
  7. <filename class="directory">/usr/local/lib</filename> directory isn't
  8. searched through for dynamic libraries by default, so we want to add
  9. this path so when you install software you won't be surprised by them not
  10. running for some reason.</para>
  11. <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
  12. following:</para>
  13. <para><screen><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"</userinput>
  14. # Begin /etc/ld.so.conf
  15. /lib
  16. /usr/lib
  17. /usr/local/lib
  18. # End /etc/ld.so.conf
  19. <userinput>EOF</userinput></screen></para>
  20. <para>Although it's not necessary to add the
  21. <filename class="directory">/lib</filename> and
  22. <filename class="directory">/usr/lib</filename> directories it doesn't
  23. hurt. This way it can be seen right away what's being searched and a you
  24. don't have to remember the default search paths if you don't want to.</para>
  25. </sect2>