glibc-inst.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <sect2>
  2. <title>Installation of Glibc</title>
  3. <para>
  4. Unpack the glibc-linuxthreads in the glibc-2.2.1 directory, not in
  5. /usr/src. Don't enter the created directories. Just unpack them and
  6. leave it with that.
  7. </para>
  8. <para>
  9. Install Glibc by running the following commands:
  10. </para>
  11. <blockquote><literallayout>
  12. <userinput>touch /etc/ld.so.conf &amp;&amp;</userinput>
  13. <userinput>mkdir /usr/src/glibc-build &amp;&amp;</userinput>
  14. <userinput>cd /usr/src/glibc-build &amp;&amp;</userinput>
  15. <userinput>sed s/"\$(PERL)"/"\/usr\/bin\/perl"/ \</userinput>
  16. <userinput>&nbsp;&nbsp;&nbsp;../glibc-2.2.1/malloc/Makefile
  17. &gt; tmp~ &amp;&amp;</userinput>
  18. <userinput>mv tmp~ ../glibc-2.2.1/malloc/Makefile &amp;&amp;
  19. </userinput>
  20. <userinput>../glibc-2.2.1/configure \</userinput>
  21. <userinput>&nbsp;&nbsp;&nbsp;--prefix=/usr --enable-add-ons
  22. \</userinput>
  23. <userinput>&nbsp;&nbsp;&nbsp;--libexecdir=/usr/bin &amp;&amp;
  24. </userinput>
  25. <userinput>sed s/"cross-compiling = yes"/"cross-compiling = no"/
  26. \</userinput>
  27. <userinput>&nbsp;&nbsp;&nbsp;config.make &gt; config.make~
  28. &amp;&amp;</userinput>
  29. <userinput>mv config.make~ config.make &amp;&amp;</userinput>
  30. <userinput>make &amp;&amp;</userinput>
  31. <userinput>make install &amp;&amp;</userinput>
  32. <userinput>make localedata/install-locales &amp;&amp;</userinput>
  33. <userinput>cp login/pt_chown /usr/bin &amp;&amp;</userinput>
  34. <userinput>chmod 4755 /usr/bin/pt_chown</userinput>
  35. </literallayout></blockquote>
  36. <para>
  37. A user can get rid of the "I have no name!" in the bash prompt if he wants.
  38. This is done by exiting chroot and re-entering it. Run the following
  39. commands to do that:
  40. </para>
  41. <blockquote><literallayout>
  42. <userinput>logout</userinput>
  43. <userinput>chroot $LFS /usr/bin/env -i HOME=/root \
  44. TERM=$TERM /bin/bash --login</userinput>
  45. </literallayout></blockquote>
  46. </sect2>