reworded some of the text

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2268 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Gerard Beekmans 2003-01-02 22:01:49 +00:00
parent f991b54391
commit b7cea6e536

View File

@ -1,7 +1,7 @@
<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2> <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
<sect2> <sect2>
<title>Installation of Glibc</title> <title>Glibc installation</title>
<para>Before starting to install glibc, you must cd into the <para>Before starting to install glibc, you must cd into the
glibc-&glibc-version; directory and unpack glibc-linuxthreads inside glibc-&glibc-version; directory and unpack glibc-linuxthreads inside
@ -18,8 +18,7 @@ been warned.</para>
<para>Basically, compiling Glibc in any other way than the book suggests <para>Basically, compiling Glibc in any other way than the book suggests
is putting your system at very high risk.</para> is putting your system at very high risk.</para>
<para>We'll start by applying a patch to Glibc that fixes a few <para>We'll start by applying a patch to Glibc that fixes the following:</para>
things:</para>
<itemizedlist> <itemizedlist>
<listitem><para>It converts all occurrences of <emphasis>$(PERL)</emphasis> <listitem><para>It converts all occurrences of <emphasis>$(PERL)</emphasis>
@ -59,25 +58,23 @@ it.</para></listitem>
<para><screen><userinput>patch -Np1 -i ../glibc-&glibc-patch-version;.patch</userinput></screen></para> <para><screen><userinput>patch -Np1 -i ../glibc-&glibc-patch-version;.patch</userinput></screen></para>
<para>Glibc will check for the <filename>/etc/ld.so.conf</filename> file <para>Glibc will check for the <filename>/etc/ld.so.conf</filename> file
and abort with an error if the file is missing, so we create it.</para> and abort with an error if the file is missing, so we must create it.</para>
<para><screen><userinput>touch /etc/ld.so.conf</userinput></screen></para> <para><screen><userinput>touch /etc/ld.so.conf</userinput></screen></para>
<para>It is recommended by the Glibc installation documentation to build <para>It is recommended by the Glibc installation documentation to build
Glibc outside of the source directory in a dedicated directory. Let's Glibc outside of the source directory in a dedicated directory.</para>
create such a directory and make it our CWD (Current Working
Directory).</para>
<para><screen><userinput>mkdir ../glibc-build &amp;&amp; <para><screen><userinput>mkdir ../glibc-build &amp;&amp;
cd ../glibc-build</userinput></screen></para> cd ../glibc-build</userinput></screen></para>
<para>Next, configure Glibc.</para> <para>Next, prepare Glibc to be compiled.</para>
<para><screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \ <para><screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
&nbsp;&nbsp;&nbsp;&nbsp;--disable-profile --enable-add-ons \ &nbsp;&nbsp;&nbsp;&nbsp;--disable-profile --enable-add-ons \
&nbsp;&nbsp;&nbsp;&nbsp;--libexecdir=/usr/bin</userinput></screen></para> &nbsp;&nbsp;&nbsp;&nbsp;--libexecdir=/usr/bin</userinput></screen></para>
<para>During the configure stage you will see the following warning:</para> <para>During this stage you will see the following warning:</para>
<blockquote><screen>configure: warning: <blockquote><screen>configure: warning:
*** These auxiliary programs are missing or too old: msgfmt *** These auxiliary programs are missing or too old: msgfmt
@ -127,9 +124,10 @@ time at the end of this chapter.</para>
<para><screen><userinput>make &amp;&amp; <para><screen><userinput>make &amp;&amp;
make install</userinput></screen></para> make install</userinput></screen></para>
<para>Locales aren't installed by default so we install them now. Locales <para>Locales aren't installed when you ran
are used by Glibc to make your Linux system talk in a different language <userinput>make install</userinput>, so we have to do that ourselves now.
such as your native tongue.</para> Locales are used by Glibc to make your Linux system talk in a different
language.</para>
<para><screen><userinput>make localedata/install-locales</userinput></screen></para> <para><screen><userinput>make localedata/install-locales</userinput></screen></para>
@ -139,9 +137,9 @@ which you need or want. This can be achieved using the localedef
command. Information on this can be found in the INSTALL command. Information on this can be found in the INSTALL
file in the glibc-&glibc-version; tree.</para> file in the glibc-&glibc-version; tree.</para>
<para>To finish off the installation we'll reload Bash so it uses the new <para>To finish off the installation we'll reload Bash so it uses the
libnss files. This will get rid of the <emphasis>I have no name!</emphasis> libnss files. This will also get rid of the
message in the command prompt.</para> <emphasis>I have no name!</emphasis> message in the command prompt.</para>
<para><screen><userinput>exec /static/bin/bash --login</userinput></screen></para> <para><screen><userinput>exec /static/bin/bash --login</userinput></screen></para>