glibc-inst.sgml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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-crypt and glibc-linuxthreads in the glibc-2.1.3
  9. directory, not in /usr/src. Don't enter the created directories. Just
  10. unpack them and 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. Change to the
  38. <filename class="directory">/usr/src/glibc-build</filename>
  39. directory and install Glibc by running the following commands:
  40. </para>
  41. <blockquote><literallayout>
  42. <userinput>cd /usr/src/glibc-build &amp;&amp;</userinput>
  43. <userinput>../glibc-2.2.1/configure \</userinput>
  44. <userinput>&nbsp;&nbsp;&nbsp;--prefix=/usr --enable-add-ons
  45. \</userinput>
  46. <userinput>&nbsp;&nbsp;&nbsp;--libexecdir=/usr/bin &amp;&amp;
  47. </userinput>
  48. <userinput>make &amp;&amp;</userinput>
  49. <userinput>make install &amp;&amp;</userinput>
  50. <userinput>make localedata/install-locales</userinput>
  51. </literallayout></blockquote>
  52. <para>
  53. You can get rid of the "I have no name!" in the bash prompt if you want.
  54. Do this by exiting chroot and re-entering it. Run the following
  55. commands to do that:
  56. </para>
  57. <blockquote><literallayout>
  58. <userinput>logout &amp;&amp;</userinput>
  59. <userinput>chroot $LFS /usr/bin/env -i HOME=/root /bin/bash
  60. --login</userinput>
  61. </literallayout></blockquote>
  62. </sect2>