[6370fa6] | 1 | <sect2>
|
---|
| 2 | <title>Installation of Glibc</title>
|
---|
| 3 |
|
---|
[ea57e1b] | 4 | <para>Before starting to install glibc, you must cd into the
|
---|
| 5 | glibc-&glibc-version; directory and unpack glibc-linuxthreads inside
|
---|
[be2942c] | 6 | the glibc-&glibc-version; directory, not in /usr/src as you normally
|
---|
[b822811] | 7 | would do.</para>
|
---|
[6370fa6] | 8 |
|
---|
[b822811] | 9 | <para>Install Glibc by running the following commands:</para>
|
---|
[6370fa6] | 10 |
|
---|
[ea57e1b] | 11 | <para><screen><userinput>mknod -m 0666 /dev/null c 1 3 &&</userinput>
|
---|
[3229c6b] | 12 | <userinput>touch /etc/ld.so.conf &&</userinput>
|
---|
[3acb38f] | 13 | <userinput>cp malloc/Makefile malloc/Makefile.backup &&</userinput>
|
---|
[99f6103] | 14 | <userinput>sed 's%\$(PERL)%/usr/bin/perl%' malloc/Makefile > tmp~ &&</userinput>
|
---|
[c3feda7] | 15 | <userinput>mv tmp~ malloc/Makefile &&</userinput>
|
---|
[3acb38f] | 16 | <userinput>cp login/Makefile login/Makefile.backup &&</userinput>
|
---|
[2fbf709] | 17 | <userinput>sed 's/root/0/' login/Makefile > tmp~ &&</userinput>
|
---|
[c3feda7] | 18 | <userinput>mv tmp~ login/Makefile &&</userinput>
|
---|
[be2942c] | 19 | <userinput>mkdir ../glibc-build &&</userinput>
|
---|
| 20 | <userinput>cd ../glibc-build &&</userinput>
|
---|
[99f6103] | 21 | <userinput>../glibc-&glibc-version;/configure --prefix=/usr \</userinput>
|
---|
[166f15a] | 22 | <userinput> --enable-add-ons --libexecdir=/usr/bin &&</userinput>
|
---|
[3acb38f] | 23 | <userinput>cp config.make config.make.backup &&</userinput>
|
---|
[8f5efb62] | 24 | <userinput>sed 's/cross-compiling = yes/cross-compiling = no/' \</userinput>
|
---|
[0cb331d] | 25 | <userinput> config.make > tmp~ &&</userinput>
|
---|
[c3feda7] | 26 | <userinput>mv tmp~ config.make &&</userinput>
|
---|
[3229c6b] | 27 | <userinput>make &&</userinput>
|
---|
| 28 | <userinput>make install &&</userinput>
|
---|
[463e888] | 29 | <userinput>make localedata/install-locales &&</userinput>
|
---|
[e5dc2d9] | 30 | <userinput>exec /bin/bash --login</userinput></screen></para>
|
---|
[6370fa6] | 31 |
|
---|
[951a2f5] | 32 | <para>An alternative to running <userinput>make
|
---|
[32f052f] | 33 | localedata/install-locales</userinput> is to only install those locales
|
---|
[951a2f5] | 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 |
|
---|
[b822811] | 38 | <para>During the configure stage you will see the following warning:</para>
|
---|
[0e347034] | 39 |
|
---|
[b822811] | 40 | <blockquote><screen>configure: warning:
|
---|
[2b1174be] | 41 | *** These auxiliary programs are missing or too old: msgfmt
|
---|
[0e347034] | 42 | *** some features will be disabled.
|
---|
[b822811] | 43 | *** Check the INSTALL file for required versions.</screen></blockquote>
|
---|
[0e347034] | 44 |
|
---|
[2b1174be] | 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>
|
---|
[0e347034] | 50 |
|
---|
[6370fa6] | 51 | </sect2>
|
---|
| 52 |
|
---|