glibc.xml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-tools-glibc" role="wrap">
  7. <title>Glibc-&glibc-version;</title>
  8. <?dbhtml filename="glibc.html"?>
  9. <sect2 role="package"><title/>
  10. <segmentedlist>
  11. <segtitle>&buildtime;</segtitle>
  12. <segtitle>&diskspace;</segtitle>
  13. <seglistitem><seg>11.8 SBU</seg><seg>800 MB</seg></seglistitem>
  14. </segmentedlist>
  15. </sect2>
  16. <sect2 role="installation">
  17. <title>Installation of Glibc</title>
  18. <para>Create a build dir:</para>
  19. <screen><userinput>mkdir ../glibc-build
  20. cd ../glibc-build</userinput></screen>
  21. <para>Next, prepare Glibc for compilation:</para>
  22. <screen><userinput>../glibc-&glibc-version;/configure --prefix=/tools \
  23. --disable-profile --enable-add-ons \
  24. --enable-kernel=2.6.0 --with-binutils=/tools/bin \
  25. --without-gd --without-cvs --with-headers=/tools/include</userinput></screen>
  26. <para>Compile the package:</para>
  27. <screen><userinput>make</userinput></screen>
  28. <para>Test the results:</para>
  29. <screen><userinput>make check</userinput></screen>
  30. <para>For a discussion of test failures that are of particular
  31. importance, please see <xref linkend="ch-system-glibc"/>.</para>
  32. <screen><userinput>mkdir /tools/etc
  33. touch /tools/etc/ld.so.conf</userinput></screen>
  34. <para>Now install the package:</para>
  35. <screen><userinput>make install</userinput></screen>
  36. <para>To install the Glibc locales, use the following
  37. command:</para>
  38. <screen><userinput>make localedata/install-locales</userinput></screen>
  39. <para>An alternative to running the previous command is to install only those
  40. locales which you need or want. The following instructions, instead of the
  41. install-locales target above, will install the minimum set of locales necessary
  42. for the tests to run successfully:</para>
  43. <screen><userinput>mkdir -p /tools/lib/locale
  44. localedef -i de_DE -f ISO-8859-1 de_DE
  45. localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
  46. localedef -i en_HK -f ISO-8859-1 en_HK
  47. localedef -i en_PH -f ISO-8859-1 en_PH
  48. localedef -i en_US -f ISO-8859-1 en_US
  49. localedef -i es_MX -f ISO-8859-1 es_MX
  50. localedef -i fa_IR -f UTF-8 fa_IR
  51. localedef -i fr_FR -f ISO-8859-1 fr_FR
  52. localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
  53. localedef -i it_IT -f ISO-8859-1 it_IT
  54. localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen>
  55. </sect2>
  56. </sect1>