glibc-inst.xml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <sect2>
  2. <title>Installation of Glibc</title>
  3. <para>
  4. Unpack the glibc-linuxthreads in the glibc-&glibc-version; directory, not in
  5. /usr/src.
  6. </para>
  7. <para>
  8. Install Glibc by running the following commands:
  9. </para>
  10. <blockquote><literallayout>
  11. <userinput>mknod -m 0666 /dev/null c 1 3 &amp;&amp;</userinput>
  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-&glibc-version;/malloc/Makefile
  17. &gt; tmp~ &amp;&amp;</userinput>
  18. <userinput>mv tmp~ ../glibc-&glibc-version;/malloc/Makefile &amp;&amp;
  19. </userinput>
  20. <userinput>sed "s/root/0/" ../glibc-&glibc-version;/login/Makefile
  21. &gt; tmp~ &amp;&amp; </userinput>
  22. <userinput>mv tmp~ ../glibc-&glibc-version;/login/Makefile &amp;&amp;
  23. </userinput>
  24. <userinput>../glibc-&glibc-version;/configure \</userinput>
  25. <userinput>&nbsp;&nbsp;&nbsp;--prefix=/usr --enable-add-ons
  26. \</userinput>
  27. <userinput>&nbsp;&nbsp;&nbsp;--libexecdir=/usr/bin &amp;&amp;
  28. </userinput>
  29. <userinput>sed s/"cross-compiling = yes"/"cross-compiling = no"/
  30. \</userinput>
  31. <userinput>&nbsp;&nbsp;&nbsp;config.make &gt; config.make~
  32. &amp;&amp;</userinput>
  33. <userinput>mv config.make~ config.make &amp;&amp;</userinput>
  34. <userinput>make &amp;&amp;</userinput>
  35. <userinput>make install &amp;&amp;</userinput>
  36. <userinput>make localedata/install-locales</userinput>
  37. </literallayout></blockquote>
  38. <para>
  39. During the configure stage you will see the following warning:
  40. </para>
  41. <blockquote><screen>
  42. configure: warning:
  43. *** An auxiliary program is missing or too old;
  44. *** some features will be disabled.
  45. *** Check the INSTALL file for required versions.
  46. </screen></blockquote>
  47. <para>
  48. This warning refers to the missing msgfmt program from the gettext
  49. package. But there is nothing to worry about: Glib will still be
  50. installed the same way as when msgfmt is present. It can safely be
  51. ignored in our case.
  52. </para>
  53. <para>
  54. By exiting the chroot'ed environment and re-entering it, you will be
  55. able to get rid of the "I have no name!" message in the command prompt,
  56. which is caused by bash's inability to resolve a userid to a username.
  57. You don't have to exit and re-enter chroot, but it's highly recommended
  58. to ensure a properly working bash.
  59. </para>
  60. <para>
  61. Run the following commands to accomplish this:
  62. </para>
  63. <blockquote><literallayout>
  64. <userinput>logout</userinput>
  65. &c6-chrootcmd;
  66. </literallayout></blockquote>
  67. </sect2>