glibc-inst.sgml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <sect2>
  2. <title>Installation of Glibc</title>
  3. <para>
  4. Unpack the glibc-crypt and glibc-linuxthreads in the glibc-2.1.3
  5. directory, not in /usr/src. Don't enter the created directories. Just
  6. unpack them and leave it with that.
  7. </para>
  8. <para>
  9. A few default parameters of Glibc need to be changed, such as the
  10. directory where the shared libraries are supposed to be installed in and
  11. the directory that contains the system configuration files. For this
  12. purpose you need to create the <filename class="directory">
  13. $LFS/usr/src/glibc-build</filename> directory and cd into that directory
  14. with:
  15. </para>
  16. <blockquote><literallayout>
  17. <userinput>mkdir /usr/src/glibc-build &amp;&amp;</userinput>
  18. <userinput>cd /usr/src/glibc-build</userinput>
  19. </literallayout></blockquote>
  20. <para>
  21. In that directory you create a new file <filename>configparms</filename>
  22. by running the following:
  23. </para>
  24. <literallayout>
  25. <userinput>cat &gt; configparms &lt;&lt; "EOF"</userinput>
  26. # Begin configparms
  27. slibdir=/lib
  28. sysconfdir=/etc
  29. # End configparms
  30. <userinput>EOF</userinput>
  31. </literallayout>
  32. <para>
  33. Change to the
  34. <filename class="directory">$LFS/usr/src/glibc-build</filename>
  35. directory and install Glibc by running the following commands:
  36. </para>
  37. <blockquote><literallayout>
  38. <userinput>cd /usr/src/glibc-build &amp;&amp;</userinput>
  39. <userinput>../glibc-2.2.1/configure \</userinput>
  40. <userinput>&nbsp;&nbsp;&nbsp;--prefix=/usr --enable-add-ons
  41. \</userinput>
  42. <userinput>&nbsp;&nbsp;&nbsp;--with-headers=$LFS/usr/include
  43. \</userinput>
  44. <userinput>&nbsp;&nbsp;&nbsp;--libexecdir=/usr/bin &amp;&amp;
  45. </userinput>
  46. <userinput>make &amp;&amp;</userinput>
  47. <userinput>make install &amp;&amp;</userinput>
  48. <userinput>make localedata/install-locales</userinput>
  49. </literallayout></blockquote>
  50. </sect2>