[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 | ]>
|
---|
[a001133] | 6 | <sect1 id="ch-system-glibc" xreflabel="Glibc" role="wrap">
|
---|
[673b0d8] | 7 | <title>Glibc-&glibc-version;</title>
|
---|
| 8 | <?dbhtml filename="glibc.html"?>
|
---|
| 9 |
|
---|
| 10 | <indexterm zone="ch-system-glibc"><primary sortas="a-Glibc">Glibc</primary></indexterm>
|
---|
[6370fa6] | 11 |
|
---|
[a001133] | 12 | <sect2 role="package"><title/>
|
---|
[5888299] | 13 |
|
---|
[a001133] | 14 | <segmentedlist>
|
---|
| 15 | <segtitle>&buildtime;</segtitle>
|
---|
| 16 | <segtitle>&diskspace;</segtitle>
|
---|
| 17 | <seglistitem><seg>12.3 SBU</seg><seg>784 MB</seg></seglistitem>
|
---|
| 18 | </segmentedlist>
|
---|
[673b0d8] | 19 |
|
---|
[a001133] | 20 | </sect2>
|
---|
[3554fa3a] | 21 |
|
---|
[a001133] | 22 | <sect2 role="installation">
|
---|
[5888299] | 23 | <title>Installation of Glibc</title>
|
---|
[73aedd1d] | 24 |
|
---|
[3f0c882] | 25 | <para>Create a build directory:</para>
|
---|
[73aedd1d] | 26 |
|
---|
| 27 | <screen><userinput>mkdir ../glibc-build
|
---|
| 28 | cd ../glibc-build</userinput></screen>
|
---|
| 29 |
|
---|
| 30 | <para>Now prepare Glibc for compilation:</para>
|
---|
| 31 |
|
---|
[9dfc02f] | 32 | <screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
|
---|
[084db8d] | 33 | --disable-profile --enable-add-ons \
|
---|
| 34 | --enable-kernel=2.6.0 --without-cvs \
|
---|
[9c14ec2] | 35 | --libexecdir=/usr/lib/glibc</userinput></screen>
|
---|
[73aedd1d] | 36 |
|
---|
| 37 | <para>Compile the package:</para>
|
---|
| 38 |
|
---|
| 39 | <screen><userinput>make</userinput></screen>
|
---|
| 40 |
|
---|
| 41 | <para>Test the results:</para>
|
---|
| 42 |
|
---|
| 43 | <screen><userinput>make check</userinput></screen>
|
---|
| 44 |
|
---|
[d878ce3] | 45 | <para>The Glibc test suite is highly dependent on certain functions of your host
|
---|
[3f0c882] | 46 | system. See testing for explanations.</para>
|
---|
[d878ce3] | 47 |
|
---|
[3f0c882] | 48 | <para>Fix an annoying little warning with:</para>
|
---|
[1caa48e] | 49 |
|
---|
| 50 | <screen><userinput>touch /etc/ld.so.conf</userinput></screen>
|
---|
| 51 |
|
---|
[73aedd1d] | 52 | <para>And install the package:</para>
|
---|
| 53 |
|
---|
| 54 | <screen><userinput>make install</userinput></screen>
|
---|
| 55 |
|
---|
[3f0c882] | 56 | <para>To install the Glibc locales, use the following
|
---|
| 57 | command:</para>
|
---|
[73aedd1d] | 58 |
|
---|
| 59 | <screen><userinput>make localedata/install-locales</userinput></screen>
|
---|
| 60 |
|
---|
| 61 | <para>An alternative to running the previous command is to install only those
|
---|
[3f0c882] | 62 | locales which you need or want. The following instructions, instead of the
|
---|
| 63 | install-locales target above, will install the minimum set of locales necessary
|
---|
| 64 | for the tests to run successfully:</para>
|
---|
| 65 |
|
---|
[ad9b084] | 66 | <screen><userinput>mkdir -p /usr/lib/locale
|
---|
[73aedd1d] | 67 | localedef -i de_DE -f ISO-8859-1 de_DE
|
---|
| 68 | localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
|
---|
| 69 | localedef -i en_HK -f ISO-8859-1 en_HK
|
---|
| 70 | localedef -i en_PH -f ISO-8859-1 en_PH
|
---|
| 71 | localedef -i en_US -f ISO-8859-1 en_US
|
---|
| 72 | localedef -i es_MX -f ISO-8859-1 es_MX
|
---|
[673b0d8] | 73 | localedef -i fa_IR -f UTF-8 fa_IR
|
---|
[73aedd1d] | 74 | localedef -i fr_FR -f ISO-8859-1 fr_FR
|
---|
| 75 | localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
|
---|
| 76 | localedef -i it_IT -f ISO-8859-1 it_IT
|
---|
| 77 | localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen>
|
---|
| 78 |
|
---|
[3f0c882] | 79 | <para>Build the linuxthreads man pages:</para>
|
---|
[73aedd1d] | 80 |
|
---|
[9dfc02f] | 81 | <screen><userinput>make -C ../glibc-&glibc-version;/linuxthreads/man</userinput></screen>
|
---|
[73aedd1d] | 82 |
|
---|
| 83 | <para>And install these pages:</para>
|
---|
| 84 |
|
---|
[9dfc02f] | 85 | <screen><userinput>make -C ../glibc-&glibc-version;/linuxthreads/man install</userinput></screen>
|
---|
[73aedd1d] | 86 |
|
---|
| 87 | </sect2>
|
---|
[5888299] | 88 |
|
---|
[342b176] | 89 |
|
---|
[8c16bf7] | 90 | <sect2 id="conf-glibc" role="configuration"><title>Configuring Glibc</title>
|
---|
[342b176] | 91 |
|
---|
| 92 | <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
|
---|
| 93 | following:</para>
|
---|
| 94 |
|
---|
[bb55064] | 95 | <screen><userinput>cat > /etc/nsswitch.conf << "EOF"
|
---|
[342b176] | 96 | # Begin /etc/nsswitch.conf
|
---|
| 97 |
|
---|
| 98 | passwd: files
|
---|
| 99 | group: files
|
---|
| 100 | shadow: files
|
---|
| 101 |
|
---|
| 102 | hosts: files dns
|
---|
| 103 | networks: files
|
---|
| 104 |
|
---|
[4a80bec] | 105 | protocols: files
|
---|
| 106 | services: files
|
---|
| 107 | ethers: files
|
---|
| 108 | rpc: files
|
---|
[342b176] | 109 |
|
---|
| 110 | # End /etc/nsswitch.conf
|
---|
[bb55064] | 111 | EOF</userinput></screen>
|
---|
[342b176] | 112 |
|
---|
| 113 | <para>To find out what time zone you're in, run the following script:</para>
|
---|
| 114 |
|
---|
| 115 | <screen><userinput>tzselect</userinput></screen>
|
---|
| 116 |
|
---|
[3f0c882] | 117 | <para>Then create the <filename>/etc/localtime</filename> file by running:</para>
|
---|
[342b176] | 118 |
|
---|
[3f0c882] | 119 | <screen><userinput>cp --remove-destination /usr/share/zoneinfo/<replaceable>[xxx]</replaceable> \
|
---|
| 120 | /etc/localtime</userinput></screen>
|
---|
[342b176] | 121 |
|
---|
| 122 | </sect2>
|
---|
| 123 |
|
---|
| 124 |
|
---|
[8c16bf7] | 125 | <sect2 id="conf-ld" role="configuration">
|
---|
[342b176] | 126 | <title>Configuring Dynamic Loader</title>
|
---|
| 127 |
|
---|
| 128 | <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
|
---|
| 129 | following:</para>
|
---|
| 130 |
|
---|
[bb55064] | 131 | <screen><userinput>cat > /etc/ld.so.conf << "EOF"
|
---|
[342b176] | 132 | # Begin /etc/ld.so.conf
|
---|
| 133 |
|
---|
| 134 | /usr/local/lib
|
---|
| 135 | /opt/lib
|
---|
| 136 |
|
---|
| 137 | # End /etc/ld.so.conf
|
---|
[bb55064] | 138 | EOF</userinput></screen>
|
---|
[342b176] | 139 |
|
---|
| 140 | </sect2>
|
---|
[5888299] | 141 |
|
---|
| 142 |
|
---|
[c6cb3aa] | 143 | <sect2 id="contents-glibc" role="content"><title>Contents of Glibc</title>
|
---|
[673b0d8] | 144 |
|
---|
[3f0c882] | 145 | <para>See testing</para>
|
---|
[673b0d8] | 146 |
|
---|
| 147 | </sect2>
|
---|
| 148 |
|
---|
| 149 | </sect1>
|
---|