[6370fa6] | 1 | <sect2>
|
---|
| 2 | <title>Installation of Glibc</title>
|
---|
| 3 |
|
---|
[cb1eb9e] | 4 | <para>
|
---|
| 5 | Note: zoneinfo files (/usr/share/zoneinfo/*) are not being installed yet
|
---|
| 6 | due to an unknown problem with the move to chapter 6.
|
---|
| 7 | </para>
|
---|
| 8 |
|
---|
[6370fa6] | 9 | <para>
|
---|
[8acf9c0e] | 10 | Unpack the glibc-linuxthreads in the glibc-2.2.1 directory, not in
|
---|
| 11 | /usr/src. Don't enter the created directories. Just unpack them and
|
---|
| 12 | leave it with that.
|
---|
[6370fa6] | 13 | </para>
|
---|
| 14 |
|
---|
| 15 | <para>
|
---|
| 16 | A few default parameters of Glibc need to be changed, such as the
|
---|
| 17 | directory where the shared libraries are supposed to be installed in and
|
---|
| 18 | the directory that contains the system configuration files. For this
|
---|
| 19 | purpose you need to create the <filename class="directory">
|
---|
[f2cdbc5] | 20 | /usr/src/glibc-build</filename> directory and cd into that directory
|
---|
[6370fa6] | 21 | with:
|
---|
| 22 | </para>
|
---|
| 23 |
|
---|
| 24 | <blockquote><literallayout>
|
---|
| 25 |
|
---|
[81797d0a] | 26 | <userinput>mkdir /usr/src/glibc-build &&</userinput>
|
---|
| 27 | <userinput>cd /usr/src/glibc-build</userinput>
|
---|
[6370fa6] | 28 |
|
---|
| 29 | </literallayout></blockquote>
|
---|
| 30 |
|
---|
| 31 | <para>
|
---|
| 32 | In that directory you create a new file <filename>configparms</filename>
|
---|
| 33 | by running the following:
|
---|
| 34 | </para>
|
---|
| 35 |
|
---|
| 36 | <literallayout>
|
---|
| 37 |
|
---|
| 38 | <userinput>cat > configparms << "EOF"</userinput>
|
---|
| 39 | # Begin configparms
|
---|
| 40 |
|
---|
| 41 | slibdir=/lib
|
---|
| 42 | sysconfdir=/etc
|
---|
| 43 |
|
---|
| 44 | # End configparms
|
---|
| 45 | <userinput>EOF</userinput>
|
---|
| 46 |
|
---|
| 47 | </literallayout>
|
---|
| 48 |
|
---|
| 49 | <para>
|
---|
[1fc778e] | 50 | Install Glibc by running the following commands:
|
---|
[6370fa6] | 51 | </para>
|
---|
| 52 |
|
---|
| 53 | <blockquote><literallayout>
|
---|
| 54 |
|
---|
[81797d0a] | 55 | <userinput>../glibc-2.2.1/configure \</userinput>
|
---|
[6370fa6] | 56 | <userinput> --prefix=/usr --enable-add-ons
|
---|
| 57 | \</userinput>
|
---|
| 58 | <userinput> --libexecdir=/usr/bin &&
|
---|
| 59 | </userinput>
|
---|
| 60 | <userinput>make &&</userinput>
|
---|
[81797d0a] | 61 | <userinput>make install &&</userinput>
|
---|
| 62 | <userinput>make localedata/install-locales</userinput>
|
---|
[6370fa6] | 63 |
|
---|
| 64 | </literallayout></blockquote>
|
---|
| 65 |
|
---|
[7e37742] | 66 | <para>
|
---|
| 67 | You can get rid of the "I have no name!" in the bash prompt if you want.
|
---|
| 68 | Do this by exiting chroot and re-entering it. Run the following
|
---|
| 69 | commands to do that:
|
---|
| 70 | </para>
|
---|
| 71 |
|
---|
| 72 | <blockquote><literallayout>
|
---|
| 73 |
|
---|
| 74 | <userinput>logout &&</userinput>
|
---|
| 75 | <userinput>chroot $LFS /usr/bin/env -i HOME=/root /bin/bash
|
---|
| 76 | --login</userinput>
|
---|
| 77 |
|
---|
| 78 | </literallayout></blockquote>
|
---|
| 79 |
|
---|
[6370fa6] | 80 | </sect2>
|
---|
| 81 |
|
---|