[4595a37] | 1 | <sect2><title> </title><para> </para></sect2>
|
---|
| 2 |
|
---|
[6370fa6] | 3 | <sect2>
|
---|
[b7cea6e] | 4 | <title>Glibc installation</title>
|
---|
[6370fa6] | 5 |
|
---|
[d3d229f] | 6 | <para>The documentation that comes with Glibc recommends to build the package
|
---|
| 7 | not in the source directory but in a separate, dedicated directory:</para>
|
---|
[a9fb6a45] | 8 |
|
---|
[4a7a683] | 9 | <para><screen><userinput>mkdir ../glibc-build
|
---|
[ada6eeb] | 10 | cd ../glibc-build</userinput></screen></para>
|
---|
[a9fb6a45] | 11 |
|
---|
[7bfad05] | 12 | <para>Next, prepare Glibc to be compiled:</para>
|
---|
[a9fb6a45] | 13 |
|
---|
[84a7dc2] | 14 | <para><screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
|
---|
[a9fb6a45] | 15 | --disable-profile --enable-add-ons \
|
---|
[1179ee9] | 16 | --libexecdir=/usr/bin --with-headers=/usr/include</userinput></screen></para>
|
---|
[3a3b76e] | 17 |
|
---|
[7bfad05] | 18 | <para>The meaning of the configure options are:</para>
|
---|
| 19 |
|
---|
| 20 | <itemizedlist>
|
---|
[e4b9338] | 21 | <listitem><para><userinput>--disable-profile</userinput>: This disables the
|
---|
[d3d229f] | 22 | building of the libraries with profiling information. Omit this option if you
|
---|
| 23 | plan to do profiling.</para></listitem>
|
---|
[7bfad05] | 24 |
|
---|
[d3d229f] | 25 | <listitem><para><userinput>--enable-add-ons</userinput>: This enables any
|
---|
| 26 | add-ons that we installed with Glibc, in our case Linuxthreads.</para></listitem>
|
---|
[7bfad05] | 27 |
|
---|
[e4b9338] | 28 | <listitem><para><userinput>--libexecdir=/usr/bin</userinput>: This will
|
---|
[d3d229f] | 29 | cause the <filename>pt_chown</filename> program to be installed in the
|
---|
| 30 | <filename>/usr/bin</filename> directory.</para></listitem>
|
---|
[7bfad05] | 31 | </itemizedlist>
|
---|
| 32 |
|
---|
| 33 | <para>Continue with compiling the package:</para>
|
---|
| 34 |
|
---|
| 35 | <para><screen><userinput>make</userinput></screen></para>
|
---|
| 36 |
|
---|
| 37 | <para>We'll continue with installing the package. The Linuxthreads man
|
---|
[a9fb6a45] | 38 | pages are not going to be installed at this point because it requires a
|
---|
| 39 | working Perl installation. We'll install Perl later on in this chapter,
|
---|
| 40 | and the man pages will be installed when Glibc is installed for the second
|
---|
| 41 | time at the end of this chapter.</para>
|
---|
| 42 |
|
---|
[bc82645e] | 43 | <para><screen><userinput>make check</userinput></screen></para>
|
---|
| 44 |
|
---|
[7bfad05] | 45 | <para><screen><userinput>make install</userinput></screen></para>
|
---|
[a9fb6a45] | 46 |
|
---|
[d3d229f] | 47 | <para>The locales (used by Glibc to make your Linux system talk in a different
|
---|
| 48 | language) weren't installed when you ran the previous command, so we have to
|
---|
| 49 | do that ourselves now:</para>
|
---|
[a9fb6a45] | 50 |
|
---|
| 51 | <para><screen><userinput>make localedata/install-locales</userinput></screen></para>
|
---|
| 52 |
|
---|
[d3d229f] | 53 | <para>An alternative to running the previous command is to install only those
|
---|
| 54 | locales which you need or want. This can be achieved using the localedef
|
---|
| 55 | command. Information on this can be found in the <filename>INSTALL</filename>
|
---|
| 56 | file in the <filename>glibc-&glibc-version;</filename> tree.</para>
|
---|
[a9fb6a45] | 57 |
|
---|
[41d1d0e] | 58 | <para>Build the linuxthreads man pages:</para>
|
---|
| 59 |
|
---|
| 60 | <para><screen><userinput>make -C ../glibc-2.3.2/linuxthreads/man</userinput></screen></para>
|
---|
| 61 |
|
---|
| 62 | <para>Install the man pages:</para>
|
---|
| 63 |
|
---|
| 64 | <para><screen><userinput>make -C ../glibc-2.3.2/linuxthreads/man install</userinput></screen></para>
|
---|
| 65 |
|
---|
[6370fa6] | 66 | </sect2>
|
---|
| 67 |
|
---|