[6370fa6] | 1 | <sect2>
|
---|
| 2 | <title>Installation of Glibc</title>
|
---|
| 3 |
|
---|
| 4 | <para>
|
---|
[8acf9c0e] | 5 | Unpack the glibc-linuxthreads in the glibc-2.2.1 directory, not in
|
---|
| 6 | /usr/src. Don't enter the created directories. Just unpack them and
|
---|
| 7 | leave it with that.
|
---|
[6370fa6] | 8 | </para>
|
---|
| 9 |
|
---|
| 10 | <para>
|
---|
[1fc778e] | 11 | Install Glibc by running the following commands:
|
---|
[6370fa6] | 12 | </para>
|
---|
| 13 |
|
---|
| 14 | <blockquote><literallayout>
|
---|
| 15 |
|
---|
[6ca39ca] | 16 | <userinput>touch /etc/ld.so.conf &&</userinput>
|
---|
| 17 | <userinput>mkdir /usr/src/glibc-build &&</userinput>
|
---|
| 18 | <userinput>cd /usr/src/glibc-build &&</userinput>
|
---|
[08fc41a] | 19 | <userinput>sed s/"\$(PERL)"/"\/usr\/bin\/perl"/ \</userinput>
|
---|
| 20 | <userinput> ../glibc-2.2.1/malloc/Makefile
|
---|
| 21 | > tmp~ &&</userinput>
|
---|
| 22 | <userinput>mv tmp~ ../glibc-2.2.1/malloc/Makefile &&
|
---|
| 23 | </userinput>
|
---|
[81797d0a] | 24 | <userinput>../glibc-2.2.1/configure \</userinput>
|
---|
[6370fa6] | 25 | <userinput> --prefix=/usr --enable-add-ons
|
---|
| 26 | \</userinput>
|
---|
| 27 | <userinput> --libexecdir=/usr/bin &&
|
---|
| 28 | </userinput>
|
---|
[6ca39ca] | 29 | <userinput>sed s/"cross-compiling = yes"/"cross-compiling = no"/
|
---|
| 30 | \</userinput>
|
---|
| 31 | <userinput> config.make > config.make~
|
---|
| 32 | &&</userinput>
|
---|
| 33 | <userinput>mv config.make~ config.make &&</userinput>
|
---|
[6370fa6] | 34 | <userinput>make &&</userinput>
|
---|
[81797d0a] | 35 | <userinput>make install &&</userinput>
|
---|
[1cbb49f] | 36 | <userinput>make localedata/install-locales &&</userinput>
|
---|
[e3eb0fae] | 37 | <userinput>cp login/pt_chown /usr/bin &&</userinput>
|
---|
[8c62583] | 38 | <userinput>chmod 4755 /usr/bin/pt_chown</userinput>
|
---|
[6370fa6] | 39 |
|
---|
| 40 | </literallayout></blockquote>
|
---|
| 41 |
|
---|
[7e37742] | 42 | <para>
|
---|
[81a47c0] | 43 | A user can get rid of the "I have no name!" in the bash prompt if he wants.
|
---|
| 44 | This is done by exiting chroot and re-entering it. Run the following
|
---|
[7e37742] | 45 | commands to do that:
|
---|
| 46 | </para>
|
---|
| 47 |
|
---|
| 48 | <blockquote><literallayout>
|
---|
| 49 |
|
---|
[5aabada8] | 50 | <userinput>logout</userinput>
|
---|
[c25581c] | 51 | <userinput>chroot $LFS /usr/bin/env -i HOME=/root \
|
---|
| 52 | TERM=$TERM /bin/bash --login</userinput>
|
---|
[7e37742] | 53 |
|
---|
| 54 | </literallayout></blockquote>
|
---|
| 55 |
|
---|
[6370fa6] | 56 | </sect2>
|
---|
| 57 |
|
---|