glibc-inst.xml 2.5 KB

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