[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 |
|
---|
| 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 \
|
---|
[bc82645e] | 16 | --libexecdir=/usr/bin \
|
---|
| 17 | --with-headers=/usr/include \
|
---|
| 18 | --mandir=/usr/share/man --infodir=/usr/share/info</userinput></screen></para>
|
---|
[3a3b76e] | 19 |
|
---|
[7bfad05] | 20 | <para>The meaning of the configure options are:</para>
|
---|
| 21 |
|
---|
| 22 | <itemizedlist>
|
---|
[e4b9338] | 23 | <listitem><para><userinput>--disable-profile</userinput>: This disables the
|
---|
[d3d229f] | 24 | building of the libraries with profiling information. Omit this option if you
|
---|
| 25 | plan to do profiling.</para></listitem>
|
---|
[7bfad05] | 26 |
|
---|
[d3d229f] | 27 | <listitem><para><userinput>--enable-add-ons</userinput>: This enables any
|
---|
| 28 | add-ons that we installed with Glibc, in our case Linuxthreads.</para></listitem>
|
---|
[7bfad05] | 29 |
|
---|
[e4b9338] | 30 | <listitem><para><userinput>--libexecdir=/usr/bin</userinput>: This will
|
---|
[d3d229f] | 31 | cause the <filename>pt_chown</filename> program to be installed in the
|
---|
| 32 | <filename>/usr/bin</filename> directory.</para></listitem>
|
---|
[7bfad05] | 33 | </itemizedlist>
|
---|
| 34 |
|
---|
[b7cea6e] | 35 | <para>During this stage you will see the following warning:</para>
|
---|
[0e347034] | 36 |
|
---|
[b822811] | 37 | <blockquote><screen>configure: warning:
|
---|
[2b1174be] | 38 | *** These auxiliary programs are missing or too old: msgfmt
|
---|
[0e347034] | 39 | *** some features will be disabled.
|
---|
[b822811] | 40 | *** Check the INSTALL file for required versions.</screen></blockquote>
|
---|
[0e347034] | 41 |
|
---|
[d3d229f] | 42 | <para>The missing <filename>msgfmt</filename> program (from the Gettext
|
---|
| 43 | package, which we'll install later) won't cause any problems. The
|
---|
| 44 | <filename>msgfmt</filename> is used to generate the binary translation
|
---|
| 45 | files that can make your system talk in a different language. Because these
|
---|
| 46 | translation files have already been generated for you, there is no need for
|
---|
| 47 | <filename>msgfmt</filename>. You'd only need the program if you change the
|
---|
| 48 | translation source files (the <filename>*.po</filename> files in the
|
---|
| 49 | <filename class="directory">po</filename> subdirectory), which
|
---|
| 50 | would require you to regenerate the binary files.</para>
|
---|
[0e347034] | 51 |
|
---|
[7bfad05] | 52 | <para>Continue with compiling the package:</para>
|
---|
| 53 |
|
---|
| 54 | <para><screen><userinput>make</userinput></screen></para>
|
---|
| 55 |
|
---|
| 56 | <para>We'll continue with installing the package. The Linuxthreads man
|
---|
[a9fb6a45] | 57 | pages are not going to be installed at this point because it requires a
|
---|
| 58 | working Perl installation. We'll install Perl later on in this chapter,
|
---|
| 59 | and the man pages will be installed when Glibc is installed for the second
|
---|
| 60 | time at the end of this chapter.</para>
|
---|
| 61 |
|
---|
[bc82645e] | 62 | <para><screen><userinput>make check</userinput></screen></para>
|
---|
| 63 |
|
---|
[7bfad05] | 64 | <para><screen><userinput>make install</userinput></screen></para>
|
---|
[a9fb6a45] | 65 |
|
---|
[d3d229f] | 66 | <para>The locales (used by Glibc to make your Linux system talk in a different
|
---|
| 67 | language) weren't installed when you ran the previous command, so we have to
|
---|
| 68 | do that ourselves now:</para>
|
---|
[a9fb6a45] | 69 |
|
---|
| 70 | <para><screen><userinput>make localedata/install-locales</userinput></screen></para>
|
---|
| 71 |
|
---|
[d3d229f] | 72 | <para>An alternative to running the previous command is to install only those
|
---|
| 73 | locales which you need or want. This can be achieved using the localedef
|
---|
| 74 | command. Information on this can be found in the <filename>INSTALL</filename>
|
---|
| 75 | file in the <filename>glibc-&glibc-version;</filename> tree.</para>
|
---|
[a9fb6a45] | 76 |
|
---|
[d3d229f] | 77 | <para>To finish off the installation we'll reload Bash so it will use the new
|
---|
| 78 | <filename>libnss_*</filename> files. This will also get rid of the
|
---|
[7bfad05] | 79 | <emphasis>I have no name!</emphasis> message in the command prompt:</para>
|
---|
[a9fb6a45] | 80 |
|
---|
[30b270f] | 81 | <para><screen><userinput>exec /stage1/bin/bash --login</userinput></screen></para>
|
---|
[a9fb6a45] | 82 |
|
---|
[6370fa6] | 83 | </sect2>
|
---|
| 84 |
|
---|