glibc.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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-system-glibc" xreflabel="Glibc" role="wrap">
  7. <title>Glibc-&glibc-version;</title>
  8. <?dbhtml filename="glibc.html"?>
  9. <indexterm zone="ch-system-glibc"><primary sortas="a-Glibc">Glibc</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <segmentedlist>
  12. <segtitle>&buildtime;</segtitle>
  13. <segtitle>&diskspace;</segtitle>
  14. <seglistitem><seg>12.3 SBU</seg><seg>784 MB</seg></seglistitem>
  15. </segmentedlist>
  16. </sect2>
  17. <sect2 role="installation">
  18. <title>Installation of Glibc</title>
  19. <para>Create a build directory:</para>
  20. <screen><userinput>mkdir ../glibc-build
  21. cd ../glibc-build</userinput></screen>
  22. <para>Now prepare Glibc for compilation:</para>
  23. <screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
  24. --disable-profile --enable-add-ons \
  25. --enable-kernel=2.6.0 --without-cvs \
  26. --libexecdir=/usr/lib/glibc</userinput></screen>
  27. <para>Compile the package:</para>
  28. <screen><userinput>make</userinput></screen>
  29. <para>Test the results:</para>
  30. <screen><userinput>make check</userinput></screen>
  31. <para>The Glibc test suite is highly dependent on certain functions of your host
  32. system. See testing for explanations.</para>
  33. <para>Fix an annoying little warning with:</para>
  34. <screen><userinput>touch /etc/ld.so.conf</userinput></screen>
  35. <para>And install the package:</para>
  36. <screen><userinput>make install</userinput></screen>
  37. <para>To install the Glibc locales, use the following
  38. command:</para>
  39. <screen><userinput>make localedata/install-locales</userinput></screen>
  40. <para>An alternative to running the previous command is to install only those
  41. locales which you need or want. The following instructions, instead of the
  42. install-locales target above, will install the minimum set of locales necessary
  43. for the tests to run successfully:</para>
  44. <screen><userinput>mkdir -p /usr/lib/locale
  45. localedef -i de_DE -f ISO-8859-1 de_DE
  46. localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
  47. localedef -i en_HK -f ISO-8859-1 en_HK
  48. localedef -i en_PH -f ISO-8859-1 en_PH
  49. localedef -i en_US -f ISO-8859-1 en_US
  50. localedef -i es_MX -f ISO-8859-1 es_MX
  51. localedef -i fa_IR -f UTF-8 fa_IR
  52. localedef -i fr_FR -f ISO-8859-1 fr_FR
  53. localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
  54. localedef -i it_IT -f ISO-8859-1 it_IT
  55. localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen>
  56. <para>Build the linuxthreads man pages:</para>
  57. <screen><userinput>make -C ../glibc-&glibc-version;/linuxthreads/man</userinput></screen>
  58. <para>And install these pages:</para>
  59. <screen><userinput>make -C ../glibc-&glibc-version;/linuxthreads/man install</userinput></screen>
  60. </sect2>
  61. <sect2 id="conf-glibc" role="configuration"><title>Configuring Glibc</title>
  62. <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
  63. following:</para>
  64. <screen><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
  65. <literal># Begin /etc/nsswitch.conf
  66. passwd: files
  67. group: files
  68. shadow: files
  69. hosts: files dns
  70. networks: files
  71. protocols: files
  72. services: files
  73. ethers: files
  74. rpc: files
  75. # End /etc/nsswitch.conf</literal>
  76. EOF</userinput></screen>
  77. <para>To find out what time zone you're in, run the following script:</para>
  78. <screen><userinput>tzselect</userinput></screen>
  79. <para>Then create the <filename>/etc/localtime</filename> file by running:</para>
  80. <screen><userinput>cp --remove-destination /usr/share/zoneinfo/<replaceable>[xxx]</replaceable> \
  81. /etc/localtime</userinput></screen>
  82. </sect2>
  83. <sect2 id="conf-ld" role="configuration">
  84. <title>Configuring Dynamic Loader</title>
  85. <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
  86. following:</para>
  87. <screen><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
  88. <literal># Begin /etc/ld.so.conf
  89. /usr/local/lib
  90. /opt/lib
  91. # End /etc/ld.so.conf</literal>
  92. EOF</userinput></screen>
  93. </sect2>
  94. <sect2 id="contents-glibc" role="content"><title>Contents of Glibc</title>
  95. <para>See testing</para>
  96. </sect2>
  97. </sect1>