1 | <sect2>
|
---|
2 | <title>Installation of Glibc</title>
|
---|
3 |
|
---|
4 | <para>Before starting to install glibc, you must cd into the
|
---|
5 | glibc-&glibc-version; directory and unpack glibc-linuxthreads inside
|
---|
6 | the glibc-&glibc-version; directory, not in /usr/src as you normally
|
---|
7 | would do.</para>
|
---|
8 |
|
---|
9 | <para>Install Glibc by running the following commands:</para>
|
---|
10 |
|
---|
11 | <para><screen><userinput>mknod -m 0666 /dev/null c 1 3 &&</userinput>
|
---|
12 | <userinput>touch /etc/ld.so.conf &&</userinput>
|
---|
13 | <userinput>cp malloc/Makefile malloc/Makefile.backup &&</userinput>
|
---|
14 | <userinput>sed 's%\$(PERL)%/usr/bin/perl%' malloc/Makefile > tmp~ &&</userinput>
|
---|
15 | <userinput>mv tmp~ malloc/Makefile &&</userinput>
|
---|
16 | <userinput>cp login/Makefile login/Makefile.backup &&</userinput>
|
---|
17 | <userinput>sed 's/root/0/' login/Makefile > tmp~ &&</userinput>
|
---|
18 | <userinput>mv tmp~ login/Makefile &&</userinput>
|
---|
19 | <userinput>mkdir ../glibc-build &&</userinput>
|
---|
20 | <userinput>cd ../glibc-build &&</userinput>
|
---|
21 | <userinput>../glibc-&glibc-version;/configure --prefix=/usr \</userinput>
|
---|
22 | <userinput> --enable-add-ons --libexecdir=/usr/bin &&</userinput>
|
---|
23 | <userinput>cp config.make config.make.backup &&</userinput>
|
---|
24 | <userinput>sed 's/cross-compiling = yes/cross-compiling = no/' \</userinput>
|
---|
25 | <userinput> config.make > tmp~ &&</userinput>
|
---|
26 | <userinput>mv tmp~ config.make &&</userinput>
|
---|
27 | <userinput>make &&</userinput>
|
---|
28 | <userinput>make install &&</userinput>
|
---|
29 | <userinput>make localedata/install-locales &&</userinput>
|
---|
30 | <userinput>exec /bin/bash --login</userinput></screen></para>
|
---|
31 |
|
---|
32 | <para>An alternative to running <userinput>make
|
---|
33 | localedata/install-locales</userinput> is to only install those locales
|
---|
34 | which you need or want. This can be achieved using the localedef
|
---|
35 | command. Information on this can be found in the INSTALL
|
---|
36 | file in the glibc-&glibc-version; tree.</para>
|
---|
37 |
|
---|
38 | <para>During the configure stage you will see the following warning:</para>
|
---|
39 |
|
---|
40 | <blockquote><screen>configure: warning:
|
---|
41 | *** These auxiliary programs are missing or too old: msgfmt
|
---|
42 | *** some features will be disabled.
|
---|
43 | *** Check the INSTALL file for required versions.</screen></blockquote>
|
---|
44 |
|
---|
45 | <para>The missing msgfmt (from the gettext package which we will install
|
---|
46 | later in this chapter) is not fatal. The files msgfmt would create are
|
---|
47 | already pre-built, so you won't be missing out on anything. You would
|
---|
48 | only need it if you make changes to the Glibc manual files. Since we
|
---|
49 | don't do this by default, we can safely ignore it.</para>
|
---|
50 |
|
---|
51 | </sect2>
|
---|
52 |
|
---|