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
|
|
|
|
/usr/src. Don't enter the created directories. Just unpack them and
|
|
|
|
leave it with that.
|
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-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-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-02-09 21:25:34 +00:00
|
|
|
<userinput>make localedata/install-locales &&</userinput>
|
2001-03-10 04:44:14 +00:00
|
|
|
<userinput>cp login/pt_chown /usr/bin &&</userinput>
|
2001-03-12 17:38:27 +00:00
|
|
|
<userinput>chmod 4755 /usr/bin/pt_chown</userinput>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</literallayout></blockquote>
|
|
|
|
|
2001-01-27 01:44:15 +00:00
|
|
|
<para>
|
2001-03-19 16:02:50 +00:00
|
|
|
A user can get rid of the "I have no name!" in the bash prompt if he wants.
|
|
|
|
This is done by exiting chroot and re-entering it. Run the following
|
2001-01-27 01:44:15 +00:00
|
|
|
commands to do that:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<blockquote><literallayout>
|
|
|
|
|
2001-02-05 20:53:15 +00:00
|
|
|
<userinput>logout</userinput>
|
2001-03-10 04:25:52 +00:00
|
|
|
<userinput>chroot $LFS /usr/bin/env -i HOME=/root \
|
|
|
|
TERM=$TERM /bin/bash --login</userinput>
|
2001-01-27 01:44:15 +00:00
|
|
|
|
|
|
|
</literallayout></blockquote>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect2>
|
|
|
|
|