1 | <sect2>
|
---|
2 | <title>Installation of Glibc</title>
|
---|
3 |
|
---|
4 | <para>
|
---|
5 | Unpack the glibc-linuxthreads in the glibc-&glibc-version; directory, not in
|
---|
6 | /usr/src.
|
---|
7 | </para>
|
---|
8 |
|
---|
9 | <para>
|
---|
10 | Install Glibc by running the following commands:
|
---|
11 | </para>
|
---|
12 |
|
---|
13 | <blockquote><literallayout>
|
---|
14 | <userinput>mknod -m 0666 /dev/null c 1 3 &&</userinput>
|
---|
15 | <userinput>touch /etc/ld.so.conf &&</userinput>
|
---|
16 | <userinput>mkdir /usr/src/glibc-build &&</userinput>
|
---|
17 | <userinput>cd /usr/src/glibc-build &&</userinput>
|
---|
18 | <userinput>sed s/"\$(PERL)"/"\/usr\/bin\/perl"/ \</userinput>
|
---|
19 | <userinput> ../glibc-&glibc-version;/malloc/Makefile
|
---|
20 | > tmp~ &&</userinput>
|
---|
21 | <userinput>mv tmp~ ../glibc-&glibc-version;/malloc/Makefile &&
|
---|
22 | </userinput>
|
---|
23 | <userinput>sed "s/root/0/" ../glibc-&glibc-version;/login/Makefile
|
---|
24 | > tmp~ && </userinput>
|
---|
25 | <userinput>mv tmp~ ../glibc-&glibc-version;/login/Makefile &&
|
---|
26 | </userinput>
|
---|
27 | <userinput>../glibc-&glibc-version;/configure \</userinput>
|
---|
28 | <userinput> --prefix=/usr --enable-add-ons
|
---|
29 | \</userinput>
|
---|
30 | <userinput> --libexecdir=/usr/bin &&
|
---|
31 | </userinput>
|
---|
32 | <userinput>sed s/"cross-compiling = yes"/"cross-compiling = no"/
|
---|
33 | \</userinput>
|
---|
34 | <userinput> config.make > config.make~
|
---|
35 | &&</userinput>
|
---|
36 | <userinput>mv config.make~ config.make &&</userinput>
|
---|
37 | <userinput>make &&</userinput>
|
---|
38 | <userinput>make install &&</userinput>
|
---|
39 | <userinput>make localedata/install-locales</userinput>
|
---|
40 | </literallayout></blockquote>
|
---|
41 |
|
---|
42 | <para>
|
---|
43 | During the configure stage you will see the following warning:
|
---|
44 | </para>
|
---|
45 |
|
---|
46 | <blockquote><screen>
|
---|
47 | configure: warning:
|
---|
48 | *** An auxiliary program is missing or too old;
|
---|
49 | *** some features will be disabled.
|
---|
50 | *** Check the INSTALL file for required versions.
|
---|
51 | </screen></blockquote>
|
---|
52 |
|
---|
53 | <para>
|
---|
54 | This warning refers to the missing msgfmt program from the gettext
|
---|
55 | package. But there is nothing to worry about: Glib will still be
|
---|
56 | installed the same way as when msgfmt is present. It can safely be
|
---|
57 | ignored in our case.
|
---|
58 | </para>
|
---|
59 |
|
---|
60 | <para>
|
---|
61 | By exiting the chroot'ed environment and re-entering it, you will be
|
---|
62 | able to get rid of the "I have no name!" message in the command prompt,
|
---|
63 | which is caused by bash's inability to resolve a userid to a username.
|
---|
64 | You don't have to exit and re-enter chroot, but it's highly recommended
|
---|
65 | to ensure a properly working bash.
|
---|
66 | </para>
|
---|
67 |
|
---|
68 | <para>
|
---|
69 | Run the following commands to accomplish this:
|
---|
70 | </para>
|
---|
71 |
|
---|
72 | <blockquote><literallayout>
|
---|
73 | <userinput>logout</userinput>
|
---|
74 | &c6-chrootcmd;
|
---|
75 | </literallayout></blockquote>
|
---|
76 |
|
---|
77 | </sect2>
|
---|
78 |
|
---|