config-ldso.xml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 the system has extra
  7. directories in which a user wants 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 surprised 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 it can be seen right away what's being searched and a you
  31. don't have to remember the default search paths if you don't want to.
  32. </para>
  33. </sect2>