[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>
|
---|
[81797d0a] | 50 | Change to the
|
---|
[f2cdbc5] | 51 | <filename class="directory">/usr/src/glibc-build</filename>
|
---|
[81797d0a] | 52 | directory and install Glibc by running the following commands:
|
---|
[6370fa6] | 53 | </para>
|
---|
| 54 |
|
---|
| 55 | <blockquote><literallayout>
|
---|
| 56 |
|
---|
[81797d0a] | 57 | <userinput>cd /usr/src/glibc-build &&</userinput>
|
---|
| 58 | <userinput>../glibc-2.2.1/configure \</userinput>
|
---|
[6370fa6] | 59 | <userinput> --prefix=/usr --enable-add-ons
|
---|
| 60 | \</userinput>
|
---|
| 61 | <userinput> --libexecdir=/usr/bin &&
|
---|
| 62 | </userinput>
|
---|
| 63 | <userinput>make &&</userinput>
|
---|
[81797d0a] | 64 | <userinput>make install &&</userinput>
|
---|
| 65 | <userinput>make localedata/install-locales</userinput>
|
---|
[6370fa6] | 66 |
|
---|
| 67 | </literallayout></blockquote>
|
---|
| 68 |
|
---|
[7e37742] | 69 | <para>
|
---|
| 70 | You can get rid of the "I have no name!" in the bash prompt if you want.
|
---|
| 71 | Do this by exiting chroot and re-entering it. Run the following
|
---|
| 72 | commands to do that:
|
---|
| 73 | </para>
|
---|
| 74 |
|
---|
| 75 | <blockquote><literallayout>
|
---|
| 76 |
|
---|
| 77 | <userinput>logout &&</userinput>
|
---|
| 78 | <userinput>chroot $LFS /usr/bin/env -i HOME=/root /bin/bash
|
---|
| 79 | --login</userinput>
|
---|
| 80 |
|
---|
| 81 | </literallayout></blockquote>
|
---|
| 82 |
|
---|
[6370fa6] | 83 | </sect2>
|
---|
| 84 |
|
---|