config-ldso.xml 1.1 KB

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