glibc-inst.xml 2.5 KB

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