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>mkdir ../glibc-build &&</userinput>
|
---|
14 | <userinput>cd ../glibc-build &&</userinput>
|
---|
15 | <userinput>cp -f ../glibc-&glibc-version;/malloc/Makefile \</userinput>
|
---|
16 | <userinput> ../glibc-&glibc-version;/malloc/Makefile.backup &&</userinput>
|
---|
17 | <userinput>sed 's%\$(PERL)%/usr/bin/perl%' \</userinput>
|
---|
18 | <userinput> ../glibc-&glibc-version;/malloc/Makefile > tmp~ &&</userinput>
|
---|
19 | <userinput>mv -f tmp~ ../glibc-&glibc-version;/malloc/Makefile &&</userinput>
|
---|
20 | <userinput>cp -f ../glibc-&glibc-version;/login/Makefile \</userinput>
|
---|
21 | <userinput> ../glibc-&glibc-version;/login/Makefile.backup &&</userinput>
|
---|
22 | <userinput>sed 's/root/0/' ../glibc-&glibc-version;/login/Makefile > tmp~ &&</userinput>
|
---|
23 | <userinput>mv -f tmp~ ../glibc-&glibc-version;/login/Makefile &&</userinput>
|
---|
24 | <userinput>../glibc-&glibc-version;/configure \</userinput>
|
---|
25 | <userinput> --prefix=/usr --enable-add-ons \</userinput>
|
---|
26 | <userinput> --libexecdir=/usr/bin &&</userinput>
|
---|
27 | <userinput>sed 's/cross-compiling = yes/cross-compiling = no/' \</userinput>
|
---|
28 | <userinput> config.make > config.make~ &&</userinput>
|
---|
29 | <userinput>mv -f config.make~ config.make &&</userinput>
|
---|
30 | <userinput>make &&</userinput>
|
---|
31 | <userinput>make install &&</userinput>
|
---|
32 | <userinput>make localedata/install-locales &&</userinput>
|
---|
33 | <userinput>logout</userinput>
|
---|
34 | &c6-chrootcmd;</screen></para>
|
---|
35 |
|
---|
36 | <para>During the configure stage you will see the following warning:</para>
|
---|
37 |
|
---|
38 | <blockquote><screen>configure: warning:
|
---|
39 | *** An auxiliary program is missing or too old;
|
---|
40 | *** some features will be disabled.
|
---|
41 | *** Check the INSTALL file for required versions.</screen></blockquote>
|
---|
42 |
|
---|
43 | <para> This warning refers to the missing msgfmt program from the
|
---|
44 | gettext package, but it can safely be ignored in our case. The glibc
|
---|
45 | installation will not be affected.</para>
|
---|
46 |
|
---|
47 | <para>The last two commands make you exit and re-enter the chroot'ed
|
---|
48 | environment. This is done to get rid of the "I have
|
---|
49 | no name!" message in the command prompt, which was caused by bash's
|
---|
50 | inability to resolve a userid to a username (which in turn was caused by
|
---|
51 | the missing Glibc installation).</para>
|
---|
52 |
|
---|
53 | </sect2>
|
---|
54 |
|
---|