mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
Applied Bill Maltby's grammatic-fixes patch.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2124 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
f8decc78cf
commit
1e6acd6f70
@ -9,7 +9,7 @@ is mounted. How to create and where to mount the partition will be
|
|||||||
explained in full detail in Chapter 4. For example, let's assume that
|
explained in full detail in Chapter 4. For example, let's assume that
|
||||||
the LFS partition is mounted on /mnt/lfs.</para>
|
the LFS partition is mounted on /mnt/lfs.</para>
|
||||||
|
|
||||||
<para>For example when you are told to run a command like
|
<para>When you are told to run a command like
|
||||||
<userinput>./configure --prefix=$LFS/static</userinput> you actually have to
|
<userinput>./configure --prefix=$LFS/static</userinput> you actually have to
|
||||||
execute <userinput>./configure --prefix=/mnt/lfs/static</userinput>.</para>
|
execute <userinput>./configure --prefix=/mnt/lfs/static</userinput>.</para>
|
||||||
|
|
||||||
@ -22,8 +22,11 @@ This way $LFS can be entered literally instead of replacing it with
|
|||||||
|
|
||||||
<para><screen><userinput>export LFS=/mnt/lfs</userinput></screen></para>
|
<para><screen><userinput>export LFS=/mnt/lfs</userinput></screen></para>
|
||||||
|
|
||||||
<para>Now, if you are told to run a command like <userinput>./configure
|
<para>Now, if you are told to run a command like </para>
|
||||||
--prefix=$LFS/static</userinput> you can type that literally. Your shell will
|
|
||||||
|
<para><screen><userinput>./configure --prefix=$LFS/static</userinput></screen></para>
|
||||||
|
|
||||||
|
<para>you can type that literally. Your shell will
|
||||||
replace $LFS with /mnt/lfs when it processes the command line (meaning
|
replace $LFS with /mnt/lfs when it processes the command line (meaning
|
||||||
when you hit enter after having typed the command).</para>
|
when you hit enter after having typed the command).</para>
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
of identifying how long a package takes to compile. Why don't we use normal
|
of identifying how long a package takes to compile. Why don't we use normal
|
||||||
times like anybody else?</para>
|
times like anybody else?</para>
|
||||||
|
|
||||||
<para>The biggest problem is that times cannot be acurate, not even a
|
<para>The biggest problem is that times cannot be accurate, not even a
|
||||||
little bit. So many people install LFS on so many different systems, the
|
little bit. So many people install LFS on so many different systems, the
|
||||||
times it takes to compile something varies too much. One package may take
|
times it takes to compile something varies too much. One package may take
|
||||||
20 minutes on one system, but that same package may take 3 days on another
|
20 minutes on one system, but that same package may take 3 days on another
|
||||||
@ -22,9 +22,8 @@ fairly consistent among a lot of different systems. So multiply 9.5 by the
|
|||||||
number of seconds it takes for Bash to install (the SBU value) and you get
|
number of seconds it takes for Bash to install (the SBU value) and you get
|
||||||
a close approximation of how long GCC will take on your system.</para>
|
a close approximation of how long GCC will take on your system.</para>
|
||||||
|
|
||||||
<para>Note: SBUs don't work on SMP machines. We've seen that SBUs don't
|
<para>Note: We've seen that SBUs don't work well on SMP based machines. So
|
||||||
work well on SMP based machines. So all bets are off if you're lucky enough
|
all bets are off if you're lucky enough to have an SMP setup.</para>
|
||||||
to have an SMP setup.</para>
|
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
|
|
||||||
<para>If you encounter a problem while using this book, and your problem
|
<para>If you encounter a problem while using this book, and your problem
|
||||||
is not listed in the FAQ, you will find that most of the people on Internet
|
is not listed in the FAQ, you will find that most of the people on Internet
|
||||||
Relay Chat (IRC) and on the mailing lists are willing to help you. (An
|
Relay Chat (IRC) and on the mailing lists are willing to help you. An
|
||||||
overview of the LFS mailing lists can be found in
|
overview of the LFS mailing lists can be found in
|
||||||
<xref linkend="ch01-maillists"/>.) To assist us in diagnosing and solving
|
<xref linkend="ch01-maillists"/>. To assist us in diagnosing and solving
|
||||||
your problem, include as much relevant information as possible in your
|
your problem, include as much relevant information as possible in your
|
||||||
request for help.</para>
|
request for help.</para>
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ essential things to include in your request are:</para>
|
|||||||
|
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<listitem><para>the version of the book you are using (being &version;),</para></listitem>
|
<listitem><para>the version of the book you are using (being &version;),</para></listitem>
|
||||||
<listitem><para>the package or section you are having problems with,</para></listitem>
|
<listitem><para>the package or section giving you problems,</para></listitem>
|
||||||
<listitem><para>the exact error message or symptom you are receiving,</para></listitem>
|
<listitem><para>the exact error message or symptom you are receiving,</para></listitem>
|
||||||
<listitem><para>whether you have deviated from the book at all.</para></listitem>
|
<listitem><para>whether you have deviated from the book at all.</para></listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
@ -34,8 +34,8 @@ help us to see other possible causes of your problem.)</para>
|
|||||||
|
|
||||||
<para>When something goes wrong during the stage where the configure
|
<para>When something goes wrong during the stage where the configure
|
||||||
script is run, look at the last lines of the
|
script is run, look at the last lines of the
|
||||||
<filename>config.log</filename>. This file contains possible errors
|
<filename>config.log</filename>. This file may contain errors
|
||||||
encountered during configure which aren't always printed to the screen.
|
encountered during configure which weren't printed to the screen.
|
||||||
Include those relevant lines if you decide to ask for help.</para>
|
Include those relevant lines if you decide to ask for help.</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
@ -45,9 +45,9 @@ Include those relevant lines if you decide to ask for help.</para>
|
|||||||
|
|
||||||
<para>To help us find the cause of the problem, both screen output and
|
<para>To help us find the cause of the problem, both screen output and
|
||||||
the contents of various files are useful. The screen output from both
|
the contents of various files are useful. The screen output from both
|
||||||
the ./configure script and when make is run can be useful. Don't
|
the ./configure script and the make run can be useful. Don't blindly
|
||||||
blindly include the whole thing but on the other hand, don't include too
|
include the whole thing but on the other hand, don't include too little.
|
||||||
little. As an example, here is some screen output from make:</para>
|
As an example, here is some screen output from make:</para>
|
||||||
|
|
||||||
<para><screen>gcc -DALIASPATH=\"/mnt/lfs/usr/share/locale:.\"
|
<para><screen>gcc -DALIASPATH=\"/mnt/lfs/usr/share/locale:.\"
|
||||||
-DLOCALEDIR=\"/mnt/lfs/usr/share/locale\" -DLIBDIR=\"/mnt/lfs/usr/lib\"
|
-DLOCALEDIR=\"/mnt/lfs/usr/share/locale\" -DLIBDIR=\"/mnt/lfs/usr/lib\"
|
||||||
@ -69,15 +69,15 @@ make: *** [all-recursive-am] Error 2</screen></para>
|
|||||||
says <screen>make [2]: *** [make] Error 1</screen> and onwards. This
|
says <screen>make [2]: *** [make] Error 1</screen> and onwards. This
|
||||||
isn't enough for us to diagnose the problem because it only tells us
|
isn't enough for us to diagnose the problem because it only tells us
|
||||||
that <emphasis>something</emphasis> went wrong, not
|
that <emphasis>something</emphasis> went wrong, not
|
||||||
<emphasis>what</emphasis> went wrong. The whole section as
|
<emphasis>what</emphasis> went wrong. The whole section, as
|
||||||
quoted above is what should be included to be helpful, because it
|
in the example above, is what should be included to be helpful, because it
|
||||||
includes the command that was executed and the command's error
|
includes the command that was executed and the command's error
|
||||||
message(s).</para>
|
message(s).</para>
|
||||||
|
|
||||||
<para>An excellent article on asking for help on the Internet in general
|
<para>An excellent article on asking for help on the Internet in general
|
||||||
has been written by Eric S. Raymond. It is available online at <ulink
|
has been written by Eric S. Raymond. It is available online at <ulink
|
||||||
url="http://www.tuxedo.org/~esr/faqs/smart-questions.html"/>.
|
url="http://www.tuxedo.org/~esr/faqs/smart-questions.html"/>.
|
||||||
Read and follow the hints in this document and you are much more likely
|
Read and follow the hints in that document and you are much more likely
|
||||||
to get a response to start with and also to get the help you actually
|
to get a response to start with and also to get the help you actually
|
||||||
need.</para>
|
need.</para>
|
||||||
|
|
||||||
|
@ -6,13 +6,14 @@
|
|||||||
packages that were downloaded are placed somewhere in $LFS/usr/src.</para>
|
packages that were downloaded are placed somewhere in $LFS/usr/src.</para>
|
||||||
|
|
||||||
<para>While it doesn't matter at all where you save the downloaded
|
<para>While it doesn't matter at all where you save the downloaded
|
||||||
packages, we recommend storing it at least on the LFS partition. This just
|
packages, we recommend storing it at least on the LFS partition. This
|
||||||
makes sense because you would still have access to those files when you boot
|
just makes sense because you need to have access to those those files
|
||||||
into the LFS system. $LFS/usr/src is just a logical place to store source
|
when you chroot to $LFS and when you boot into the LFS system, although
|
||||||
code, but by no means a requirement. You may even want to create a
|
access when booted to $LFS could be handled other ways. $LFS/usr/src is
|
||||||
subdirectory under $LFS/usr/src for tarball storage. That way you can
|
just a logical place to store source code, but by no means a requirement.
|
||||||
separate tarballs from temporary build directories, but again that's up
|
You may even want to create a subdirectory under $LFS/usr/src for tarball
|
||||||
to you.</para>
|
storage. That way you can separate tarballs from temporary build
|
||||||
|
directories, but again that's up to you.</para>
|
||||||
|
|
||||||
<para>The next chapter contains a list of all the packages that need to be
|
<para>The next chapter contains a list of all the packages that need to be
|
||||||
downloaded. The LFS partition isn't created yet, so you can't store it
|
downloaded. The LFS partition isn't created yet, so you can't store it
|
||||||
|
@ -38,7 +38,7 @@ works no matter how your host system decided to patch tar.</para>
|
|||||||
|
|
||||||
<para>If a file is just tar'ed, it is unpacked by running:</para>
|
<para>If a file is just tar'ed, it is unpacked by running:</para>
|
||||||
|
|
||||||
<para><screen><userinput>tar xvf filename.tar</userinput></screen></para>
|
<para><screen><userinput>tar -xvf filename.tar</userinput></screen></para>
|
||||||
|
|
||||||
<para>When an archive is unpacked, a new directory will be created under the
|
<para>When an archive is unpacked, a new directory will be created under the
|
||||||
current directory (and this book assumes that the archives are unpacked
|
current directory (and this book assumes that the archives are unpacked
|
||||||
@ -49,7 +49,7 @@ archive and cd into the newly created directory.</para>
|
|||||||
|
|
||||||
<para>From time to time you will be dealing with single files such as patch
|
<para>From time to time you will be dealing with single files such as patch
|
||||||
files. These files are generally gzip'ed or bzip2'ed. Before such files
|
files. These files are generally gzip'ed or bzip2'ed. Before such files
|
||||||
can be used they need to be uncompressed first.</para>
|
can be used they need to be uncompressed.</para>
|
||||||
|
|
||||||
<para>If a file is gzip'ed, it is unpacked by running:</para>
|
<para>If a file is gzip'ed, it is unpacked by running:</para>
|
||||||
|
|
||||||
@ -63,10 +63,10 @@ can be used they need to be uncompressed first.</para>
|
|||||||
it: either the directory that contains the sources can be deleted, or it
|
it: either the directory that contains the sources can be deleted, or it
|
||||||
can be kept. We highly recommend deleting it. If you don't do this and
|
can be kept. We highly recommend deleting it. If you don't do this and
|
||||||
try to re-use the same source later on in the book (for example re-using
|
try to re-use the same source later on in the book (for example re-using
|
||||||
the source trees from Chapter 5 for use in Chapter 6), it may not work
|
the source trees from Chapter 5 in Chapter 6), it may not work
|
||||||
as you expect it to. Source trees from Chapter 5 will have your host
|
as you expect it to. Source trees from Chapter 5 will have your host
|
||||||
distribution's settings, which don't always apply to the LFS system
|
distribution's settings, which don't always apply to the LFS system
|
||||||
after you enter the chroot'ed environment. Even running something like
|
after you enter the chroot environment. Even running something like
|
||||||
<emphasis>make clean</emphasis> doesn't always guarantee a clean source
|
<emphasis>make clean</emphasis> doesn't always guarantee a clean source
|
||||||
tree.</para>
|
tree.</para>
|
||||||
|
|
||||||
@ -75,10 +75,10 @@ immediately after you have installed it, but keep the downloaded tarball
|
|||||||
available for when you need it again.</para>
|
available for when you need it again.</para>
|
||||||
|
|
||||||
<para>There is one exception; the kernel source tree. Keep it around as you
|
<para>There is one exception; the kernel source tree. Keep it around as you
|
||||||
will need it later in this book when building a kernel. Nothing will use
|
will need it later in this book when building a kernel. Nothing before then
|
||||||
the kernel tree so the source tree won't be in your way. If, however,
|
will use the kernel tree, so the source tree won't be in your way. If,
|
||||||
you are short of disk space, you can remove the kernel tree and re-untar
|
however, you are short of disk space, you can remove the kernel tree and
|
||||||
it later when required.</para>
|
re-untar it later when required.</para>
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
<title>Which Platform?</title>
|
<title>Which Platform?</title>
|
||||||
<?dbhtml filename="platform.html" dir="chapter02"?>
|
<?dbhtml filename="platform.html" dir="chapter02"?>
|
||||||
|
|
||||||
<para>LFS intends to be as far as possible platform independent. Having
|
<para>LFS intends to be, as far as possible, platform independent. Having
|
||||||
said that, the main LFS development work occurs on the x86 platform. We
|
said that, the main LFS development work occurs on the x86 platform. We
|
||||||
attempt to include information where possible on differences for other
|
attempt to include information where possible on differences for other
|
||||||
platforms such as PPC. If you come across a problem compiling which is
|
platforms such as PPC. If you come across a problem compiling which is
|
||||||
not related to the x86 platform, still feel free to ask for help on the
|
not related to the x86 platform, still feel free to ask for help on the
|
||||||
|
Loading…
Reference in New Issue
Block a user