[673b0d8] | 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 | ]>
|
---|
[9652249] | 6 | <sect1 id="ch-tools-glibc" role="wrap">
|
---|
[673b0d8] | 7 | <title>Glibc-&glibc-version;</title>
|
---|
| 8 | <?dbhtml filename="glibc.html"?>
|
---|
[bc82645e] | 9 |
|
---|
[9652249] | 10 | <sect2 role="package"><title/>
|
---|
[673b0d8] | 11 |
|
---|
[9652249] | 12 | <segmentedlist>
|
---|
| 13 | <segtitle>&buildtime;</segtitle>
|
---|
| 14 | <segtitle>&diskspace;</segtitle>
|
---|
| 15 | <seglistitem><seg>11.8 SBU</seg><seg>800 MB</seg></seglistitem>
|
---|
| 16 | </segmentedlist>
|
---|
[673b0d8] | 17 |
|
---|
[9652249] | 18 | </sect2>
|
---|
[73aedd1d] | 19 |
|
---|
[9652249] | 20 | <sect2 role="installation">
|
---|
[5888299] | 21 | <title>Installation of Glibc</title>
|
---|
[73aedd1d] | 22 |
|
---|
[3d36131c] | 23 | <para>Create a build dir:</para>
|
---|
| 24 |
|
---|
[73aedd1d] | 25 | <screen><userinput>mkdir ../glibc-build
|
---|
| 26 | cd ../glibc-build</userinput></screen>
|
---|
| 27 |
|
---|
[d27a27b] | 28 | <para>Next, prepare Glibc for compilation:</para>
|
---|
[73aedd1d] | 29 |
|
---|
[9dfc02f] | 30 | <screen><userinput>../glibc-&glibc-version;/configure --prefix=/tools \
|
---|
[084db8d] | 31 | --disable-profile --enable-add-ons \
|
---|
| 32 | --enable-kernel=2.6.0 --with-binutils=/tools/bin \
|
---|
[553affc] | 33 | --without-gd --without-cvs --with-headers=/tools/include \
|
---|
| 34 | --disable-selinux</userinput></screen>
|
---|
[73aedd1d] | 35 |
|
---|
| 36 | <para>Compile the package:</para>
|
---|
| 37 |
|
---|
| 38 | <screen><userinput>make</userinput></screen>
|
---|
| 39 |
|
---|
[3d36131c] | 40 | <para>Test the results:</para>
|
---|
| 41 |
|
---|
[73aedd1d] | 42 | <screen><userinput>make check</userinput></screen>
|
---|
| 43 |
|
---|
[d878ce3] | 44 | <para>For a discussion of test failures that are of particular
|
---|
| 45 | importance, please see <xref linkend="ch-system-glibc"/>.</para>
|
---|
| 46 |
|
---|
[1caa48e] | 47 | <screen><userinput>mkdir /tools/etc
|
---|
| 48 | touch /tools/etc/ld.so.conf</userinput></screen>
|
---|
| 49 |
|
---|
[73aedd1d] | 50 | <para>Now install the package:</para>
|
---|
| 51 |
|
---|
| 52 | <screen><userinput>make install</userinput></screen>
|
---|
| 53 |
|
---|
[fba1478] | 54 | <para>To install the Glibc locales, use the following
|
---|
| 55 | command:</para>
|
---|
[73aedd1d] | 56 |
|
---|
| 57 | <screen><userinput>make localedata/install-locales</userinput></screen>
|
---|
| 58 |
|
---|
[d0a6c4c] | 59 | <para>An alternative to running the previous command is to install only those
|
---|
[fba1478] | 60 | locales which you need or want. The following instructions, instead of the
|
---|
| 61 | install-locales target above, will install the minimum set of locales necessary
|
---|
| 62 | for the tests to run successfully:</para>
|
---|
[73aedd1d] | 63 |
|
---|
| 64 | <screen><userinput>mkdir -p /tools/lib/locale
|
---|
| 65 | localedef -i de_DE -f ISO-8859-1 de_DE
|
---|
| 66 | localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
|
---|
| 67 | localedef -i en_HK -f ISO-8859-1 en_HK
|
---|
| 68 | localedef -i en_PH -f ISO-8859-1 en_PH
|
---|
| 69 | localedef -i en_US -f ISO-8859-1 en_US
|
---|
| 70 | localedef -i es_MX -f ISO-8859-1 es_MX
|
---|
[efb32ca] | 71 | localedef -i fa_IR -f UTF-8 fa_IR
|
---|
[73aedd1d] | 72 | localedef -i fr_FR -f ISO-8859-1 fr_FR
|
---|
| 73 | localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
|
---|
| 74 | localedef -i it_IT -f ISO-8859-1 it_IT
|
---|
| 75 | localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen>
|
---|
| 76 |
|
---|
| 77 | </sect2>
|
---|
[bc82645e] | 78 |
|
---|
| 79 | </sect1>
|
---|