2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Glibc</title>
|
|
|
|
|
|
|
|
<para>
|
2001-01-27 02:04:02 +00:00
|
|
|
Unpack the glibc-linuxthreads in the glibc-2.2.1 directory, not in
|
2001-04-03 21:28:58 +01:00
|
|
|
/usr/src.
|
2001-01-24 00:31:17 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2001-02-02 13:37:47 +00:00
|
|
|
Install Glibc by running the following commands:
|
2001-01-24 00:31:17 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<blockquote><literallayout>
|
2001-04-03 00:14:43 +01:00
|
|
|
<userinput>mknod -m 0666 /dev/null c 1 3 &&</userinput>
|
2001-02-08 16:14:12 +00:00
|
|
|
<userinput>touch /etc/ld.so.conf &&</userinput>
|
|
|
|
<userinput>mkdir /usr/src/glibc-build &&</userinput>
|
|
|
|
<userinput>cd /usr/src/glibc-build &&</userinput>
|
2001-03-15 11:30:16 +00:00
|
|
|
<userinput>sed s/"\$(PERL)"/"\/usr\/bin\/perl"/ \</userinput>
|
|
|
|
<userinput> ../glibc-2.2.1/malloc/Makefile
|
|
|
|
> tmp~ &&</userinput>
|
|
|
|
<userinput>mv tmp~ ../glibc-2.2.1/malloc/Makefile &&
|
|
|
|
</userinput>
|
2001-03-28 16:22:23 +01:00
|
|
|
<userinput>sed "s/root/0/" ../glibc-2.2.1/login/Makefile
|
|
|
|
> tmp~ && </userinput>
|
|
|
|
<userinput>mv tmp~ ../glibc-2.2.1/login/Makefile &&
|
|
|
|
</userinput>
|
2001-01-27 01:16:17 +00:00
|
|
|
<userinput>../glibc-2.2.1/configure \</userinput>
|
2001-01-24 00:31:17 +00:00
|
|
|
<userinput> --prefix=/usr --enable-add-ons
|
|
|
|
\</userinput>
|
|
|
|
<userinput> --libexecdir=/usr/bin &&
|
|
|
|
</userinput>
|
2001-02-08 16:14:12 +00:00
|
|
|
<userinput>sed s/"cross-compiling = yes"/"cross-compiling = no"/
|
|
|
|
\</userinput>
|
|
|
|
<userinput> config.make > config.make~
|
|
|
|
&&</userinput>
|
|
|
|
<userinput>mv config.make~ config.make &&</userinput>
|
2001-01-24 00:31:17 +00:00
|
|
|
<userinput>make &&</userinput>
|
2001-01-27 01:16:17 +00:00
|
|
|
<userinput>make install &&</userinput>
|
2001-03-29 03:50:43 +01:00
|
|
|
<userinput>make localedata/install-locales</userinput>
|
2001-01-24 00:31:17 +00:00
|
|
|
</literallayout></blockquote>
|
|
|
|
|
2001-05-06 21:33:26 +01:00
|
|
|
<para>
|
|
|
|
During the configure stage you will see the following warning:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<blockquote><screen>
|
|
|
|
configure: warning:
|
|
|
|
*** An auxiliary program is missing or too old;
|
|
|
|
*** some features will be disabled.
|
|
|
|
*** Check the INSTALL file for required versions.
|
|
|
|
</screen></blockquote>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
This warning refers to the missing msgfmt program from the gettext
|
|
|
|
package. But there is nothing to worry about: Glib will still be
|
|
|
|
installed the same way as when msgfmt is present. It can safely be
|
|
|
|
ignored in our case.
|
|
|
|
</para>
|
|
|
|
|
2001-01-27 01:44:15 +00:00
|
|
|
<para>
|
2001-04-14 04:34:36 +01:00
|
|
|
By exiting the chroot'ed environment and re-entering it, you will be
|
|
|
|
able to get rid of the "I have no name!" message in the command prompt,
|
|
|
|
which is caused by bash's inability to resolve a userid to a username.
|
|
|
|
You don't have to exit and re-enter chroot, but it's highly recommended
|
|
|
|
to ensure a properly working bash.
|
2001-01-27 01:44:15 +00:00
|
|
|
</para>
|
|
|
|
|
2001-04-06 02:04:18 +01:00
|
|
|
<para>
|
2001-04-14 04:34:36 +01:00
|
|
|
Run the following commands to accomplish this:
|
2001-04-06 02:04:18 +01:00
|
|
|
</para>
|
2001-01-27 01:44:15 +00:00
|
|
|
|
2001-04-06 02:04:18 +01:00
|
|
|
<blockquote><literallayout>
|
2001-04-06 17:33:57 +01:00
|
|
|
<userinput>logout</userinput>
|
|
|
|
<userinput>chroot $LFS /usr/bin/env -i HOME=/root
|
|
|
|
\</userinput>
|
|
|
|
<userinput> TERM=$TERM /bin/bash --login</userinput>
|
2001-04-06 02:04:18 +01:00
|
|
|
|
2001-01-27 01:44:15 +00:00
|
|
|
</literallayout></blockquote>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect2>
|
|
|
|
|