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-01-27 01:44:15 +00:00
|
|
|
<para>
|
2001-04-06 02:04:18 +01:00
|
|
|
We have to get username/groupname to userid/groupid conversion possible
|
|
|
|
by exiting the chroot'ed environment and re-entering it. This will also
|
|
|
|
get rid of the "I have no name!" message in the command prompt.
|
2001-01-27 01:44:15 +00:00
|
|
|
</para>
|
|
|
|
|
2001-04-06 02:04:18 +01:00
|
|
|
<para>
|
|
|
|
Run the following commands to accomplish that:
|
|
|
|
</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>
|
|
|
|
|