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