glibc-inst.sgml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <sect2>
  2. <title>Installation of Glibc</title>
  3. <para>
  4. Note: zoneinfo files (/usr/share/zoneinfo/*) are not being installed yet
  5. due to an unknown problem with the move to chapter 6.
  6. </para>
  7. <para>
  8. Unpack the glibc-linuxthreads in the glibc-2.2.1 directory, not in
  9. /usr/src. Don't enter the created directories. Just unpack them and
  10. leave it with that.
  11. </para>
  12. <para>
  13. A few default parameters of Glibc need to be changed, such as the
  14. directory where the shared libraries are supposed to be installed in and
  15. the directory that contains the system configuration files. For this
  16. purpose you need to create the <filename class="directory">
  17. /usr/src/glibc-build</filename> directory and cd into that directory
  18. with:
  19. </para>
  20. <blockquote><literallayout>
  21. <userinput>mkdir /usr/src/glibc-build &amp;&amp;</userinput>
  22. <userinput>cd /usr/src/glibc-build</userinput>
  23. </literallayout></blockquote>
  24. <para>
  25. In that directory you create a new file <filename>configparms</filename>
  26. by running the following:
  27. </para>
  28. <literallayout>
  29. <userinput>cat &gt; configparms &lt;&lt; "EOF"</userinput>
  30. # Begin configparms
  31. slibdir=/lib
  32. sysconfdir=/etc
  33. # End configparms
  34. <userinput>EOF</userinput>
  35. </literallayout>
  36. <para>
  37. Install Glibc by running the following commands:
  38. </para>
  39. <blockquote><literallayout>
  40. <userinput>../glibc-2.2.1/configure \</userinput>
  41. <userinput>&nbsp;&nbsp;&nbsp;--prefix=/usr --enable-add-ons
  42. \</userinput>
  43. <userinput>&nbsp;&nbsp;&nbsp;--libexecdir=/usr/bin &amp;&amp;
  44. </userinput>
  45. <userinput>make &amp;&amp;</userinput>
  46. <userinput>make install &amp;&amp;</userinput>
  47. <userinput>make localedata/install-locales</userinput>
  48. </literallayout></blockquote>
  49. <para>
  50. You can get rid of the "I have no name!" in the bash prompt if you want.
  51. Do this by exiting chroot and re-entering it. Run the following
  52. commands to do that:
  53. </para>
  54. <blockquote><literallayout>
  55. <userinput>logout</userinput>
  56. <userinput>chroot $LFS /usr/bin/env -i HOME=/root /bin/bash
  57. --login</userinput>
  58. </literallayout></blockquote>
  59. </sect2>