mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-05 22:04:48 +00:00
[Bug 164] XML Tidy up
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1329 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
2443baaf49
commit
4d6fc2dabb
@ -31,6 +31,10 @@
|
||||
|
||||
</para></listitem>
|
||||
|
||||
<listitem><para>October 27th, 2001 [markh]: General: Large XML Tidy-up.
|
||||
Shouldn't affect the book text or layout. If it does, something has
|
||||
gone wrong!</para></listitem>
|
||||
|
||||
<listitem><para>October 27th, 2001 [markh]: Chapter 6: Added
|
||||
reiserfsprogs-3.x.0j and updated to lilo-22.0.2.</para></listitem>
|
||||
|
||||
|
@ -15,18 +15,18 @@ or you just installed it, check for the two files again. Often the
|
||||
create <filename>libcurses.a</filename> as a symlink by running the
|
||||
following commands:</para>
|
||||
|
||||
<para><screen><userinput>cd /usr/lib &&</userinput>
|
||||
<userinput>ln -s libncurses.a libcurses.a</userinput></screen></para>
|
||||
<para><screen><userinput>cd /usr/lib &&
|
||||
ln -s libncurses.a libcurses.a</userinput></screen></para>
|
||||
|
||||
<para>Now we can continue. Install Bash by running the following
|
||||
commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --enable-static-link --prefix=$LFS/usr \</userinput>
|
||||
<userinput> --bindir=$LFS/bin --with-curses &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install &&</userinput>
|
||||
<userinput>cd $LFS/bin &&</userinput>
|
||||
<userinput>ln -sf bash sh</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --enable-static-link --prefix=$LFS/usr \
|
||||
--bindir=$LFS/bin --with-curses &&
|
||||
make &&
|
||||
make install &&
|
||||
cd $LFS/bin &&
|
||||
ln -sf bash sh</userinput></screen></para>
|
||||
|
||||
<para>If the make install phase ends with something along the lines of</para>
|
||||
|
||||
|
@ -9,9 +9,9 @@ it comes with.</para>
|
||||
|
||||
<para>Install Binutils by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &&</userinput>
|
||||
<userinput>make LDFLAGS=-all-static tooldir=$LFS/usr &&</userinput>
|
||||
<userinput>make tooldir=$LFS/usr install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &&
|
||||
make LDFLAGS=-all-static tooldir=$LFS/usr &&
|
||||
make tooldir=$LFS/usr install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,10 +3,10 @@
|
||||
|
||||
<para>Install Bzip2 by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>make CC="gcc -static" &&</userinput>
|
||||
<userinput>make PREFIX=$LFS/usr install &&</userinput>
|
||||
<userinput>cd $LFS/usr/bin &&</userinput>
|
||||
<userinput>mv bzcat bunzip2 bzip2 bzip2recover $LFS/bin</userinput></screen></para>
|
||||
<para><screen><userinput>make CC="gcc -static" &&
|
||||
make PREFIX=$LFS/usr install &&
|
||||
cd $LFS/usr/bin &&
|
||||
mv bzcat bunzip2 bzip2 bzip2recover $LFS/bin</userinput></screen></para>
|
||||
|
||||
<para>Although it's not strictly a part of a basic LFS system it's worth
|
||||
mentioning that a patch for Tar can be downloaded which enables the tar
|
||||
|
@ -7,18 +7,18 @@ following commands can be used in this case. Note that these commands
|
||||
can also be used for other glibc versions so if you aren't sure, then
|
||||
use the first version.</para>
|
||||
|
||||
<para><screen><userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2 &&</userinput>
|
||||
<userinput>./configure --prefix=$LFS/usr &&</userinput>
|
||||
<userinput>unset CPPFLAGS &&</userinput>
|
||||
<userinput>make LDFLAGS=-static &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2 &&
|
||||
./configure --prefix=$LFS/usr &&
|
||||
unset CPPFLAGS &&
|
||||
make LDFLAGS=-static &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
<para>If you are using a newer glibc version (2.2.x), you can use the following
|
||||
commands to install Diffutils:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr &&</userinput>
|
||||
<userinput>make LDFLAGS=-static &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr &&
|
||||
make LDFLAGS=-static &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -5,11 +5,11 @@
|
||||
run this command in order to keep a backup of the file we are about to
|
||||
change.</para>
|
||||
|
||||
<para><screen><userinput>cp lib/Makefile.in lib/Makefile.in.backup &&</userinput>
|
||||
<userinput>sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
|
||||
<userinput> -e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
|
||||
<userinput> lib/Makefile.in > lib/Makefile.in~ &&</userinput>
|
||||
<userinput>mv lib/Makefile.in~ lib/Makefile.in:</userinput></screen>
|
||||
<para><screen><userinput>cp lib/Makefile.in lib/Makefile.in.backup &&
|
||||
sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \
|
||||
-e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \
|
||||
lib/Makefile.in > lib/Makefile.in~ &&
|
||||
mv lib/Makefile.in~ lib/Makefile.in:</userinput></screen>
|
||||
This is used to fix a problem with building fileutils statically on glibc 2.2.3
|
||||
systems. If this isn't done, then there is the possibility of all of the
|
||||
fileutils programs causing segmentation faults once chroot is entered
|
||||
|
@ -21,19 +21,20 @@ machines, run the following commands. Do <emphasis>not</emphasis>
|
||||
attempt this fix if you don't have Glibc-2.2.3 installed. It will more
|
||||
than likely result in all kinds of compile time problems.</para>
|
||||
|
||||
<para><screen><userinput>cp lib/Makefile.in lib/Makefile.in.backup &&</userinput>
|
||||
<userinput>sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
|
||||
<userinput> -e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
|
||||
<userinput> lib/Makefile.in > lib/Makefile.in~ &&</userinput>
|
||||
<userinput>mv lib/Makefile.in~ lib/Makefile.in</userinput></screen></para>
|
||||
<para><screen><userinput>cp lib/Makefile.in lib/Makefile.in.backup &&
|
||||
sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \
|
||||
-e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \
|
||||
lib/Makefile.in > lib/Makefile.in~ &&
|
||||
mv lib/Makefile.in~ lib/Makefile.in</userinput></screen></para>
|
||||
|
||||
<para>Install fileutils by running the following commands:
|
||||
<screen><userinput>./configure --disable-nls \</userinput>
|
||||
<userinput> --prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin &&</userinput>
|
||||
<userinput>make LDFLAGS=-static &&</userinput>
|
||||
<userinput>make install &&</userinput>
|
||||
<userinput>cd $LFS/usr/bin &&</userinput>
|
||||
<userinput>ln -sf ../../bin/install</userinput></screen></para>
|
||||
<para>Install fileutils by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --disable-nls \
|
||||
--prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin &&
|
||||
make LDFLAGS=-static &&
|
||||
make install &&
|
||||
cd $LFS/usr/bin &&
|
||||
ln -sf ../../bin/install</userinput></screen></para>
|
||||
|
||||
<para>Once you have installed fileutils, you can test whether the
|
||||
segmentation fault problem has been avoided by running
|
||||
|
@ -9,19 +9,19 @@ it comes with.</para>
|
||||
|
||||
<para>Install GCC by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>patch -Np1 -i ../gcc-&gcc-patch-version;.patch &&</userinput>
|
||||
<userinput>mkdir ../gcc-build &&</userinput>
|
||||
<userinput>cd ../gcc-build &&</userinput>
|
||||
<userinput>../gcc-&gcc-version;/configure --prefix=/usr --enable-languages=c,c++ \</userinput>
|
||||
<userinput> --disable-nls --disable-shared --enable-threads=posix &&</userinput>
|
||||
<userinput>make BOOT_LDFLAGS=-static bootstrap &&</userinput>
|
||||
<userinput>make prefix=$LFS/usr install &&</userinput>
|
||||
<userinput>cd $LFS/lib &&</userinput>
|
||||
<userinput>ln -sf ../usr/bin/cpp &&</userinput>
|
||||
<userinput>cd $LFS/usr/lib &&</userinput>
|
||||
<userinput>ln -sf ../bin/cpp &&</userinput>
|
||||
<userinput>cd $LFS/usr/bin &&</userinput>
|
||||
<userinput>ln -sf gcc cc</userinput></screen></para>
|
||||
<para><screen><userinput>patch -Np1 -i ../gcc-&gcc-patch-version;.patch &&
|
||||
mkdir ../gcc-build &&
|
||||
cd ../gcc-build &&
|
||||
../gcc-&gcc-version;/configure --prefix=/usr --enable-languages=c,c++ \
|
||||
--disable-nls --disable-shared --enable-threads=posix &&
|
||||
make BOOT_LDFLAGS=-static bootstrap &&
|
||||
make prefix=$LFS/usr install &&
|
||||
cd $LFS/lib &&
|
||||
ln -sf ../usr/bin/cpp &&
|
||||
cd $LFS/usr/lib &&
|
||||
ln -sf ../bin/cpp &&
|
||||
cd $LFS/usr/bin &&
|
||||
ln -sf gcc cc</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -7,18 +7,18 @@ following commands can be used in this case. Note that these commands
|
||||
can also be used for other glibc versions so if you aren't sure, then
|
||||
use the first version.</para>
|
||||
|
||||
<para><screen><userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2 &&</userinput>
|
||||
<userinput>./configure --prefix=$LFS/usr --disable-nls &&</userinput>
|
||||
<userinput>unset CPPFLAGS &&</userinput>
|
||||
<userinput>make LDFLAGS=-static &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2 &&
|
||||
./configure --prefix=$LFS/usr --disable-nls &&
|
||||
unset CPPFLAGS &&
|
||||
make LDFLAGS=-static &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
<para>If you are using a newer glibc version (2.2.x), you can use the
|
||||
following commands to install Grep:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &&</userinput>
|
||||
<userinput>make LDFLAGS=-static &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &&
|
||||
make LDFLAGS=-static &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -10,14 +10,15 @@ version, so if you aren't sure, it's best to apply it.</para>
|
||||
|
||||
<para>Apply the patch by running the following command:</para>
|
||||
|
||||
<para><userinput>patch -Np1 -i ../gzip-&gzip-version;.patch</userinput></para>
|
||||
<para><screen><userinput>patch -Np1 -i ../gzip-&gzip-version;.patch</userinput></screen></para>
|
||||
|
||||
<para>Install Gzip by running the following commands:</para>
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr &&</userinput>
|
||||
<userinput>make LDFLAGS=-static &&</userinput>
|
||||
<userinput>make install &&</userinput>
|
||||
<userinput>cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin &&</userinput>
|
||||
<userinput>rm $LFS/usr/bin/gunzip $LFS/usr/bin/gzip</userinput></screen></para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr &&
|
||||
make LDFLAGS=-static &&
|
||||
make install &&
|
||||
cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin &&
|
||||
rm $LFS/usr/bin/gunzip $LFS/usr/bin/gzip</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -10,15 +10,15 @@ compile the packages that need the kernel.</para>
|
||||
<para>The kernel configuration file is created by running the following
|
||||
command:</para>
|
||||
|
||||
<para><screen><userinput>make mrproper &&</userinput>
|
||||
<userinput>yes "" | make config &&</userinput>
|
||||
<userinput>make dep &&</userinput>
|
||||
<userinput>cd $LFS/usr/include &&</userinput>
|
||||
<userinput>cp -a ../src/linux/include/linux . &&</userinput>
|
||||
<userinput>chown -R root.root $LFS/usr/include/linux &&</userinput>
|
||||
<userinput>mkdir asm &&</userinput>
|
||||
<userinput>cp -a ../src/linux/include/asm/* asm &&</userinput>
|
||||
<userinput>chown -R root.root $LFS/usr/include/asm</userinput></screen></para>
|
||||
<para><screen><userinput>make mrproper &&
|
||||
yes "" | make config &&
|
||||
make dep &&
|
||||
cd $LFS/usr/include &&
|
||||
cp -a ../src/linux/include/linux . &&
|
||||
chown -R root.root $LFS/usr/include/linux &&
|
||||
mkdir asm &&
|
||||
cp -a ../src/linux/include/asm/* asm &&
|
||||
chown -R root.root $LFS/usr/include/asm</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
<para>Install Make by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &&</userinput>
|
||||
<userinput>make LDFLAGS=-static &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &&
|
||||
make LDFLAGS=-static &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,10 +3,10 @@
|
||||
|
||||
<para>Install Mawk by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure &&</userinput>
|
||||
<userinput>make CC="gcc -static" &&</userinput>
|
||||
<userinput>make BINDIR=$LFS/usr/bin \</userinput>
|
||||
<userinput> MANDIR=$LFS/usr/share/man/man1 install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure &&
|
||||
make CC="gcc -static" &&
|
||||
make BINDIR=$LFS/usr/bin \
|
||||
MANDIR=$LFS/usr/share/man/man1 install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
<para>Install Patch by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr &&</userinput>
|
||||
<userinput>make LDFLAGS=-static &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr &&
|
||||
make LDFLAGS=-static &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -7,18 +7,18 @@ following commands can be used in this case. Note that these commands
|
||||
can also be used for other glibc versions so if you aren't sure, then
|
||||
use the first version.</para>
|
||||
|
||||
<para><screen><userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2 &&</userinput>
|
||||
<userinput>./configure --prefix=$LFS/usr --bindir=$LFS/bin &&</userinput>
|
||||
<userinput>unset CPPFLAGS &&</userinput>
|
||||
<userinput>make LDFLAGS=-static &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2 &&
|
||||
./configure --prefix=$LFS/usr --bindir=$LFS/bin &&
|
||||
unset CPPFLAGS &&
|
||||
make LDFLAGS=-static &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
<para>If you are using a newer glibc version (2.2.x), you can use the
|
||||
following commands to install Sed:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr --bindir=$LFS/bin &&</userinput>
|
||||
<userinput>make LDFLAGS=-static &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr --bindir=$LFS/bin &&
|
||||
make LDFLAGS=-static &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -13,12 +13,13 @@ best to apply it.</para>
|
||||
<para><screen><userinput>patch -Np1 -i ../sh-utils-&sh-utils-version;.patch</userinput></screen></para>
|
||||
|
||||
<para>Install Sh-utils by running the following commands:</para>
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &&</userinput>
|
||||
<userinput>make LDFLAGS=-static &&</userinput>
|
||||
<userinput>make install &&</userinput>
|
||||
<userinput>cd $LFS/usr/bin &&</userinput>
|
||||
<userinput>mv date echo false pwd stty $LFS/bin &&</userinput>
|
||||
<userinput>mv su true uname hostname $LFS/bin</userinput></screen></para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &&
|
||||
make LDFLAGS=-static &&
|
||||
make install &&
|
||||
cd $LFS/usr/bin &&
|
||||
mv date echo false pwd stty $LFS/bin &&
|
||||
mv su true uname hostname $LFS/bin</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -12,10 +12,10 @@ for gzip files).</para>
|
||||
|
||||
<para>Install Tar by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls \</userinput>
|
||||
<userinput> --libexecdir=$LFS/usr/bin --bindir=$LFS/bin && </userinput>
|
||||
<userinput>make LDFLAGS=-static &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls \
|
||||
--libexecdir=$LFS/usr/bin --bindir=$LFS/bin &&
|
||||
make LDFLAGS=-static &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
<para>Install Texinfo by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &&</userinput>
|
||||
<userinput>make LDFLAGS=-static &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &&
|
||||
make LDFLAGS=-static &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,10 +3,10 @@
|
||||
|
||||
<para>Install Textutils by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &&</userinput>
|
||||
<userinput>make LDFLAGS=-static &&</userinput>
|
||||
<userinput>make install &&</userinput>
|
||||
<userinput>mv $LFS/usr/bin/cat $LFS/bin</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &&
|
||||
make LDFLAGS=-static &&
|
||||
make install &&
|
||||
mv $LFS/usr/bin/cat $LFS/bin</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -8,9 +8,9 @@ start experiencing any problems with this release.</para>
|
||||
|
||||
<para>Install Autoconf by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -8,8 +8,8 @@ start experiencing any problems with this release.</para>
|
||||
|
||||
<para>Install Automake by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,11 +3,11 @@
|
||||
|
||||
<para>Install Bash by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr --with-curses \</userinput>
|
||||
<userinput> --bindir=/bin &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install &&</userinput>
|
||||
<userinput>exec /bin/bash --login</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr --with-curses \
|
||||
--bindir=/bin &&
|
||||
make &&
|
||||
make install &&
|
||||
exec /bin/bash --login</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -14,8 +14,8 @@ you decide to skip this.</para>
|
||||
|
||||
<para>Install Bin86 by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>make &&</userinput>
|
||||
<userinput>make PREFIX=/usr install</userinput></screen></para>
|
||||
<para><screen><userinput>make &&
|
||||
make PREFIX=/usr install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -8,10 +8,10 @@ it comes with.</para>
|
||||
|
||||
<para>Install Binutils by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr --enable-shared &&</userinput>
|
||||
<userinput>make tooldir=/usr &&</userinput>
|
||||
<userinput>make tooldir=/usr install &&</userinput>
|
||||
<userinput>make tooldir=/usr install-info</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr --enable-shared &&
|
||||
make tooldir=/usr &&
|
||||
make tooldir=/usr install &&
|
||||
make tooldir=/usr install-info</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,10 +3,10 @@
|
||||
|
||||
<para>Install Bison by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr \</userinput>
|
||||
<userinput> --datadir=/usr/share/bison &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr \
|
||||
--datadir=/usr/share/bison &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
<para>Some programs don't know about bison and try to find the yacc program
|
||||
(bison is a (better) alternative for yacc). So to please those few
|
||||
@ -23,8 +23,8 @@ following:</para>
|
||||
exec /usr/bin/bison -y "$@"
|
||||
|
||||
# End /usr/bin/yacc
|
||||
<userinput>EOF</userinput>
|
||||
<userinput>chmod 755 /usr/bin/yacc</userinput></screen></para>
|
||||
<userinput>EOF
|
||||
chmod 755 /usr/bin/yacc</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,25 +3,25 @@
|
||||
|
||||
<para>Install Bzip2 by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>make -f Makefile-libbz2_so &&</userinput>
|
||||
<userinput>make bzip2recover libbz2.a &&</userinput>
|
||||
<userinput>ln -s libbz2.so.1.0.1 libbz2.so &&</userinput>
|
||||
<userinput>cp bzip2-shared /bin/bzip2 &&</userinput>
|
||||
<userinput>cp bzip2recover /bin &&</userinput>
|
||||
<userinput>cp bzip2.1 /usr/share/man/man1 &&</userinput>
|
||||
<userinput>cp bzlib.h /usr/include &&</userinput>
|
||||
<userinput>cp -a libbz2.so* /lib &&</userinput>
|
||||
<userinput>rm /usr/lib/libbz2.a &&</userinput>
|
||||
<userinput>cp libbz2.a /usr/lib &&</userinput>
|
||||
<userinput>cd /usr/lib &&</userinput>
|
||||
<userinput>ln -sf ../../lib/libbz2.so &&</userinput>
|
||||
<userinput>cd /bin &&</userinput>
|
||||
<userinput>ln -sf bzip2 bunzip2 &&</userinput>
|
||||
<userinput>ln -sf bzip2 bzcat &&</userinput>
|
||||
<userinput>cd /usr/share/man/man1 &&</userinput>
|
||||
<userinput>ln -sf bzip2.1 bunzip2.1 &&</userinput>
|
||||
<userinput>ln -sf bzip2.1 bzcat.1 &&</userinput>
|
||||
<userinput>ln -sf bzip2.1 bzip2recover.1</userinput></screen></para>
|
||||
<para><screen><userinput>make -f Makefile-libbz2_so &&
|
||||
make bzip2recover libbz2.a &&
|
||||
ln -s libbz2.so.1.0.1 libbz2.so &&
|
||||
cp bzip2-shared /bin/bzip2 &&
|
||||
cp bzip2recover /bin &&
|
||||
cp bzip2.1 /usr/share/man/man1 &&
|
||||
cp bzlib.h /usr/include &&
|
||||
cp -a libbz2.so* /lib &&
|
||||
rm /usr/lib/libbz2.a &&
|
||||
cp libbz2.a /usr/lib &&
|
||||
cd /usr/lib &&
|
||||
ln -sf ../../lib/libbz2.so &&
|
||||
cd /bin &&
|
||||
ln -sf bzip2 bunzip2 &&
|
||||
ln -sf bzip2 bzcat &&
|
||||
cd /usr/share/man/man1 &&
|
||||
ln -sf bzip2.1 bunzip2.1 &&
|
||||
ln -sf bzip2.1 bzcat.1 &&
|
||||
ln -sf bzip2.1 bzip2recover.1</userinput></screen></para>
|
||||
|
||||
<para>Although it's not strictly a part of a basic LFS system it's worth
|
||||
mentioning that a patch for Tar can be downloaded which enables the tar
|
||||
|
@ -1,3 +1,3 @@
|
||||
<userinput>cd $LFS &&</userinput>
|
||||
<userinput>chroot $LFS /usr/bin/env -i HOME=/root \</userinput>
|
||||
<userinput> TERM=$TERM /bin/bash --login</userinput>
|
||||
<userinput>cd $LFS &&
|
||||
chroot $LFS /usr/bin/env -i HOME=/root \
|
||||
TERM=$TERM /bin/bash --login</userinput>
|
||||
|
@ -38,8 +38,8 @@ location of the needed timezone file.</para>
|
||||
<para> Create the <filename class="directory">/etc/localtime</filename> symlink
|
||||
by running:</para>
|
||||
|
||||
<para><screen><userinput>cd /etc &&</userinput>
|
||||
<userinput>ln -sf ../usr/share/zoneinfo/<tzselect's output> localtime</userinput></screen></para>
|
||||
<para><screen><userinput>cd /etc &&
|
||||
ln -sf ../usr/share/zoneinfo/<tzselect's output> localtime</userinput></screen></para>
|
||||
|
||||
<para>tzselect's output can be something like <emphasis>EST5EDT</emphasis> or
|
||||
<emphasis>Canada/Eastern</emphasis>.</para>
|
||||
|
@ -11,10 +11,10 @@ bad login attempts.</para>
|
||||
<para>Create these files with their proper permissions by running the
|
||||
following commands:</para>
|
||||
|
||||
<para><screen><userinput>touch /var/run/utmp /var/log/wtmp \</userinput>
|
||||
<userinput> /var/log/btmp /var/log/lastlog &&</userinput>
|
||||
<userinput>chmod 644 /var/run/utmp /var/log/wtmp \</userinput>
|
||||
<userinput> /var/log/btmp /var/log/lastlog</userinput></screen></para>
|
||||
<para><screen><userinput>touch /var/run/utmp /var/log/wtmp \
|
||||
/var/log/btmp /var/log/lastlog &&
|
||||
chmod 644 /var/run/utmp /var/log/wtmp \
|
||||
/var/log/btmp /var/log/lastlog</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
<para>Install Diffutils by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,11 +3,11 @@
|
||||
|
||||
<para>Install E2fsprogs by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr --with-root-prefix="" \</userinput>
|
||||
<userinput> --enable-elf-shlibs &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install &&</userinput>
|
||||
<userinput>make install-libs</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr --with-root-prefix="" \
|
||||
--enable-elf-shlibs &&
|
||||
make &&
|
||||
make install &&
|
||||
make install-libs</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -8,15 +8,15 @@ need to use ed, you can skip it.</para>
|
||||
|
||||
<para>Install Ed by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>cp buf.c buf.c.backup &&</userinput>
|
||||
<userinput>sed 's/int u/int u, sfd/' buf.c.backup | \</userinput>
|
||||
<userinput> sed '/.*\*mktemp.*/d' | \</userinput>
|
||||
<userinput> sed 's/.*if (mktemp.*/ sfd = mkstemp(sfn);\</userinput>
|
||||
<userinput> if ((sfd == -1) || (sfp = fopen (sfn, "w+")) == NULL)/' > buf.c &&</userinput>
|
||||
<userinput>./configure --prefix=/usr &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install &&</userinput>
|
||||
<userinput>mv /usr/bin/ed /usr/bin/red /bin</userinput></screen></para>
|
||||
<para><screen><userinput>cp buf.c buf.c.backup &&
|
||||
sed 's/int u/int u, sfd/' buf.c.backup | \
|
||||
sed '/.*\*mktemp.*/d' | \
|
||||
sed 's/.*if (mktemp.*/ sfd = mkstemp(sfn);\
|
||||
if ((sfd == -1) || (sfp = fopen (sfn, "w+")) == NULL)/' > buf.c &&
|
||||
./configure --prefix=/usr &&
|
||||
make &&
|
||||
make install &&
|
||||
mv /usr/bin/ed /usr/bin/red /bin</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,11 +3,11 @@
|
||||
|
||||
<para>Install File by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>cp readelf.h readelf.h.backup &&</userinput>
|
||||
<userinput>sed $'/#define __/a \\\n#include <stdint.h>' readelf.h.backup > readelf.h &&</userinput>
|
||||
<userinput>./configure --prefix=/usr --datadir=/usr/share/misc &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>cp readelf.h readelf.h.backup &&
|
||||
sed $'/#define __/a \\\n#include <stdint.h>' readelf.h.backup > readelf.h &&
|
||||
./configure --prefix=/usr --datadir=/usr/share/misc &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
<para>File uses magic numbers to determine a file type. These magic numbers
|
||||
come with File in a plain text file. File internally compiles this database
|
||||
|
@ -3,10 +3,10 @@
|
||||
|
||||
<para>Install Fileutils by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr --bindir=/bin \</userinput>
|
||||
<userinput> --libexecdir=/bin &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr --bindir=/bin \
|
||||
--libexecdir=/bin &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -6,10 +6,10 @@ to be unpacked.</para>
|
||||
|
||||
<para>Install Findutils by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>patch -Np1 -i ../findutils-4.1.patch &&</userinput>
|
||||
<userinput>./configure --prefix=/usr &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make libexecdir=/usr/bin install</userinput></screen></para>
|
||||
<para><screen><userinput>patch -Np1 -i ../findutils-4.1.patch &&
|
||||
./configure --prefix=/usr &&
|
||||
make &&
|
||||
make libexecdir=/usr/bin install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,11 +3,11 @@
|
||||
|
||||
<para>Install Flex by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install &&</userinput>
|
||||
<userinput>cd /usr/bin &&</userinput>
|
||||
<userinput>ln -sf flex lex</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr &&
|
||||
make &&
|
||||
make install &&
|
||||
cd /usr/bin &&
|
||||
ln -sf flex lex</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -17,13 +17,13 @@ are available.</para>
|
||||
<para>Note: the build of other compilers is not tested by the people
|
||||
who actively work on LFS.</para>
|
||||
|
||||
<para><screen><userinput>patch -Np1 -i ../gcc-&gcc-patch-version;.patch &&</userinput>
|
||||
<userinput>mkdir ../gcc-build &&</userinput>
|
||||
<userinput>cd ../gcc-build &&</userinput>
|
||||
<userinput>../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \</userinput>
|
||||
<userinput> --enable-languages=c,c++ --enable-threads=posix &&</userinput>
|
||||
<userinput>make bootstrap &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>patch -Np1 -i ../gcc-&gcc-patch-version;.patch &&
|
||||
mkdir ../gcc-build &&
|
||||
cd ../gcc-build &&
|
||||
../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \
|
||||
--enable-languages=c,c++ --enable-threads=posix &&
|
||||
make bootstrap &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
<para>Install Gettext by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -14,26 +14,26 @@ it comes with.</para>
|
||||
|
||||
<para>Install Glibc by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>mknod -m 0666 /dev/null c 1 3 &&</userinput>
|
||||
<userinput>touch /etc/ld.so.conf &&</userinput>
|
||||
<userinput>cp malloc/Makefile malloc/Makefile.backup &&</userinput>
|
||||
<userinput>sed 's%\$(PERL)%/usr/bin/perl%' malloc/Makefile > tmp~ &&</userinput>
|
||||
<userinput>mv tmp~ malloc/Makefile &&</userinput>
|
||||
<userinput>cp login/Makefile login/Makefile.backup &&</userinput>
|
||||
<userinput>sed 's/root/0/' login/Makefile > tmp~ &&</userinput>
|
||||
<userinput>mv tmp~ login/Makefile &&</userinput>
|
||||
<userinput>mkdir ../glibc-build &&</userinput>
|
||||
<userinput>cd ../glibc-build &&</userinput>
|
||||
<userinput>../glibc-&glibc-version;/configure --prefix=/usr \</userinput>
|
||||
<userinput> --enable-add-ons --libexecdir=/usr/bin &&</userinput>
|
||||
<userinput>cp config.make config.make.backup &&</userinput>
|
||||
<userinput>sed 's/cross-compiling = yes/cross-compiling = no/' \</userinput>
|
||||
<userinput> config.make > tmp~ &&</userinput>
|
||||
<userinput>mv tmp~ config.make &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install &&</userinput>
|
||||
<userinput>make localedata/install-locales &&</userinput>
|
||||
<userinput>exec /bin/bash --login</userinput></screen></para>
|
||||
<para><screen><userinput>mknod -m 0666 /dev/null c 1 3 &&
|
||||
touch /etc/ld.so.conf &&
|
||||
cp malloc/Makefile malloc/Makefile.backup &&
|
||||
sed 's%\$(PERL)%/usr/bin/perl%' malloc/Makefile > tmp~ &&
|
||||
mv tmp~ malloc/Makefile &&
|
||||
cp login/Makefile login/Makefile.backup &&
|
||||
sed 's/root/0/' login/Makefile > tmp~ &&
|
||||
mv tmp~ login/Makefile &&
|
||||
mkdir ../glibc-build &&
|
||||
cd ../glibc-build &&
|
||||
../glibc-&glibc-version;/configure --prefix=/usr \
|
||||
--enable-add-ons --libexecdir=/usr/bin &&
|
||||
cp config.make config.make.backup &&
|
||||
sed 's/cross-compiling = yes/cross-compiling = no/' \
|
||||
config.make > tmp~ &&
|
||||
mv tmp~ config.make &&
|
||||
make &&
|
||||
make install &&
|
||||
make localedata/install-locales &&
|
||||
exec /bin/bash --login</userinput></screen></para>
|
||||
|
||||
<para>An alternative to running <userinput>make
|
||||
localedata/install-locales</userinput> is to only install those locales
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
<para>Install Grep by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
<para>Install Groff by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,17 +3,17 @@
|
||||
|
||||
<para>Install Gzip by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install &&</userinput>
|
||||
<userinput>cd /usr/bin &&</userinput>
|
||||
<userinput>mv gzip /bin &&</userinput>
|
||||
<userinput>rm gunzip zcat &&</userinput>
|
||||
<userinput>cd /bin &&</userinput>
|
||||
<userinput>ln -sf gzip gunzip &&</userinput>
|
||||
<userinput>ln -sf gzip zcat &&</userinput>
|
||||
<userinput>ln -sf gzip compress &&</userinput>
|
||||
<userinput>ln -sf gunzip uncompress</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr &&
|
||||
make &&
|
||||
make install &&
|
||||
cd /usr/bin &&
|
||||
mv gzip /bin &&
|
||||
rm gunzip zcat &&
|
||||
cd /bin &&
|
||||
ln -sf gzip gunzip &&
|
||||
ln -sf gzip zcat &&
|
||||
ln -sf gzip compress &&
|
||||
ln -sf gunzip uncompress</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
<para>Install Kbd by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
<para>When using the loadkeys program from this package, don't use the
|
||||
-d option to load a default keymap file. It won't work properly
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
<para>Install Less by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr --bindir=/bin &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr --bindir=/bin &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
<para>Install Libtool by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -9,8 +9,8 @@ url="&hints-root;grub-howto.txt">&hints-root;grub-howto.txt</ulink>,
|
||||
|
||||
<para>Install Lilo by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
<para>It appears that compilation of this package fails on certain machines
|
||||
when the -g compiler flag is being used. If you can't compile Lilo at
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
<para>Install M4 by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
<para>Install Make by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -6,9 +6,9 @@ won't create a directory for you to cd into.</para>
|
||||
|
||||
<para>Create the device files by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>cp MAKEDEV-&makedev-version; /dev/MAKEDEV &&</userinput>
|
||||
<userinput>cd /dev &&</userinput>
|
||||
<userinput>chmod 754 MAKEDEV</userinput></screen></para>
|
||||
<para><screen><userinput>cp MAKEDEV-&makedev-version; /dev/MAKEDEV &&
|
||||
cd /dev &&
|
||||
chmod 754 MAKEDEV</userinput></screen></para>
|
||||
|
||||
<para>Now, depending on whether you are going to use devpts or not, you
|
||||
can run one of two commands:</para>
|
||||
|
@ -3,16 +3,16 @@
|
||||
|
||||
<para>Run the following commands to install man:</para>
|
||||
|
||||
<para><screen><userinput>for i in configure src/Makefile.in src/makewhatis.sh</userinput>
|
||||
<userinput>do</userinput>
|
||||
<userinput> cp $i $i.backup &&</userinput>
|
||||
<userinput> sed 's/gawk/awk/g' $i > tmp~ &&</userinput>
|
||||
<userinput> mv tmp~ $i</userinput>
|
||||
<userinput>done &&</userinput>
|
||||
<userinput>chmod 755 configure &&</userinput>
|
||||
<userinput>./configure -default &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>for i in configure src/Makefile.in src/makewhatis.sh
|
||||
do
|
||||
cp $i $i.backup &&
|
||||
sed 's/gawk/awk/g' $i > tmp~ &&
|
||||
mv tmp~ $i
|
||||
done &&
|
||||
chmod 755 configure &&
|
||||
./configure -default &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
<para>You may want to take a look at the man hint at <ulink
|
||||
url="&hints-root;man.txt">&hints-root;man.txt</ulink>
|
||||
|
@ -4,8 +4,8 @@
|
||||
<para>Before man-pages is installed, the patch file has to be unpacked.
|
||||
Install Man-pages by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>patch -Np1 -i ../man-pages-&man-pages-version;.patch &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>patch -Np1 -i ../man-pages-&man-pages-version;.patch &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,12 +3,12 @@
|
||||
|
||||
<para>Install Mawk by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make BINDIR=/usr/bin \</userinput>
|
||||
<userinput> MANDIR=/usr/share/man/man1 install &&</userinput>
|
||||
<userinput>cd /usr/bin &&</userinput>
|
||||
<userinput>ln -sf mawk awk</userinput></screen></para>
|
||||
<para><screen><userinput>./configure &&
|
||||
make &&
|
||||
make BINDIR=/usr/bin \
|
||||
MANDIR=/usr/share/man/man1 install &&
|
||||
cd /usr/bin &&
|
||||
ln -sf mawk awk</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
<para>Install Modutils by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,19 +3,19 @@
|
||||
|
||||
<para>Install Ncurses by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr --libdir=/lib \</userinput>
|
||||
<userinput> --with-shared --disable-termcap &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install &&</userinput>
|
||||
<userinput>cd /lib &&</userinput>
|
||||
<userinput>mv *.a /usr/lib &&</userinput>
|
||||
<userinput>chmod 755 *.5.2 &&</userinput>
|
||||
<userinput>cd /usr/lib &&</userinput>
|
||||
<userinput>ln -sf libncurses.a libcurses.a &&</userinput>
|
||||
<userinput>ln -sf ../../lib/libncurses.so &&</userinput>
|
||||
<userinput>ln -sf ../../lib/libcurses.so &&</userinput>
|
||||
<userinput>ln -sf ../../lib/libform.so &&</userinput>
|
||||
<userinput>ln -sf ../../lib/libpanel.so &&</userinput>
|
||||
<userinput>ln -sf ../../lib/libmenu.so</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr --libdir=/lib \
|
||||
--with-shared --disable-termcap &&
|
||||
make &&
|
||||
make install &&
|
||||
cd /lib &&
|
||||
mv *.a /usr/lib &&
|
||||
chmod 755 *.5.2 &&
|
||||
cd /usr/lib &&
|
||||
ln -sf libncurses.a libcurses.a &&
|
||||
ln -sf ../../lib/libncurses.so &&
|
||||
ln -sf ../../lib/libcurses.so &&
|
||||
ln -sf ../../lib/libform.so &&
|
||||
ln -sf ../../lib/libpanel.so &&
|
||||
ln -sf ../../lib/libmenu.so</userinput></screen></para>
|
||||
</sect2>
|
||||
|
||||
|
@ -3,11 +3,11 @@
|
||||
|
||||
<para>Install Netkit-base by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install &&</userinput>
|
||||
<userinput>cd etc.sample &&</userinput>
|
||||
<userinput>cp services protocols /etc</userinput></screen></para>
|
||||
<para><screen><userinput>./configure &&
|
||||
make &&
|
||||
make install &&
|
||||
cd etc.sample &&
|
||||
cp services protocols /etc</userinput></screen></para>
|
||||
|
||||
<para>There are other files in the <filename
|
||||
class="directory">etc.sample</filename> directory which might be of
|
||||
|
@ -3,8 +3,8 @@
|
||||
|
||||
<para>Install Net-tools by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>make &&</userinput>
|
||||
<userinput>make update</userinput></screen></para>
|
||||
<para><screen><userinput>make &&
|
||||
make update</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
<para>Install Patch by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
<para>Install Perl by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./Configure -Dprefix=/usr &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./Configure -Dprefix=/usr &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
<para>If you don't want to answer all those questions Perl asks, you can
|
||||
add the -d option to the configure script and Perl will use all the
|
||||
@ -13,9 +13,9 @@ default settings. To avoid the Configure script asking questions
|
||||
after the config.sh file has been created you can pass the -e parameter
|
||||
to perl as well. The commands with these parameters included will be:</para>
|
||||
|
||||
<para><screen><userinput>./Configure -Dprefix=/usr -d -e &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./Configure -Dprefix=/usr -d -e &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,8 +3,8 @@
|
||||
|
||||
<para>Install Procinfo by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>make LDLIBS=-lncurses &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>make LDLIBS=-lncurses &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
<para>Install Procps by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>make &&</userinput>
|
||||
<userinput>make XSCPT='' install &&</userinput>
|
||||
<userinput>mv /usr/bin/kill /bin</userinput></screen></para>
|
||||
<para><screen><userinput>make &&
|
||||
make XSCPT='' install &&
|
||||
mv /usr/bin/kill /bin</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
<para>Install Psmisc by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr --exec-prefix=/ &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr --exec-prefix=/ &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
<para>psmisc installs the
|
||||
<filename>/usr/share/man/man1/pidof.1</filename> man page, but psmisc's
|
||||
@ -23,8 +23,8 @@ should remove psmisc's pidof man page by running:</para>
|
||||
package's installation by creating the <filename>/bin/pidof</filename>
|
||||
symlink by running:</para>
|
||||
|
||||
<para><screen><userinput>cd /bin</userinput>
|
||||
<userinput>ln -s killall pidof</userinput></screen></para>
|
||||
<para><screen><userinput>cd /bin
|
||||
ln -s killall pidof</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -5,9 +5,9 @@
|
||||
the reiserfs filesystem. Install Reiserfsprogs by running the
|
||||
following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --mandir=/usr/share/man &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --mandir=/usr/share/man &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
<para>Install Sed by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr --bindir=/bin &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr --bindir=/bin &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -9,22 +9,22 @@ passwords and how to get the most out of this Shadow package.</para>
|
||||
<para>Install the Shadow Password Suite by running the
|
||||
following commands:</para>
|
||||
|
||||
<para><screen><userinput>cp src/useradd.c src/useradd.c.backup &&</userinput>
|
||||
<userinput>sed 's/\(.*\) (nflg || \(.*\))\(.*\)/\1\2\3/' \</userinput>
|
||||
<userinput> src/useradd.c > tmp~ &&</userinput>
|
||||
<userinput>mv tmp~ src/useradd.c &&</userinput>
|
||||
<userinput>./configure --prefix=/usr &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install &&</userinput>
|
||||
<userinput>cd etc &&</userinput>
|
||||
<userinput>cp limits login.access /etc &&</userinput>
|
||||
<userinput>sed 's%/var/spool/mail%/var/mail%' login.defs.linux > /etc/login.defs &&</userinput>
|
||||
<userinput>cd /lib &&</userinput>
|
||||
<userinput>mv libshadow.a /usr/lib &&</userinput>
|
||||
<userinput>mv libshadow.la /usr/lib &&</userinput>
|
||||
<userinput>ln -sf libshadow.so.0 libshadow.so &&</userinput>
|
||||
<userinput>cd /usr/lib &&</userinput>
|
||||
<userinput>ln -sf ../../lib/libshadow.so</userinput></screen></para>
|
||||
<para><screen><userinput>cp src/useradd.c src/useradd.c.backup &&
|
||||
sed 's/\(.*\) (nflg || \(.*\))\(.*\)/\1\2\3/' \
|
||||
src/useradd.c > tmp~ &&
|
||||
mv tmp~ src/useradd.c &&
|
||||
./configure --prefix=/usr &&
|
||||
make &&
|
||||
make install &&
|
||||
cd etc &&
|
||||
cp limits login.access /etc &&
|
||||
sed 's%/var/spool/mail%/var/mail%' login.defs.linux > /etc/login.defs &&
|
||||
cd /lib &&
|
||||
mv libshadow.a /usr/lib &&
|
||||
mv libshadow.la /usr/lib &&
|
||||
ln -sf libshadow.so.0 libshadow.so &&
|
||||
cd /usr/lib &&
|
||||
ln -sf ../../lib/libshadow.so</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,13 +3,13 @@
|
||||
|
||||
<para>Install Shellutils by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install &&</userinput>
|
||||
<userinput>cd /usr/bin &&</userinput>
|
||||
<userinput>mv date echo false pwd stty /bin &&</userinput>
|
||||
<userinput>mv su true uname hostname /bin &&</userinput>
|
||||
<userinput>mv chroot ../sbin</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr &&
|
||||
make &&
|
||||
make install &&
|
||||
cd /usr/bin &&
|
||||
mv date echo false pwd stty /bin &&
|
||||
mv su true uname hostname /bin &&
|
||||
mv chroot ../sbin</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,8 +3,8 @@
|
||||
|
||||
<para>Install Sysklogd by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -11,15 +11,15 @@ change the init.c file so that the sentence reads "sending all
|
||||
processes started by init the TERM signal" by running the following
|
||||
commands. If you don't want to change it, skip it.</para>
|
||||
|
||||
<para><screen><userinput>cp src/init.c src/init.c.backup &&</userinput>
|
||||
<userinput>sed 's/\(.*\)\(Sending processes\)\(.*\)/\1\2 started by init\3/' \</userinput>
|
||||
<userinput> src/init.c > tmp~ &&</userinput>
|
||||
<userinput>mv tmp~ src/init.c</userinput></screen></para>
|
||||
<para><screen><userinput>cp src/init.c src/init.c.backup &&
|
||||
sed 's/\(.*\)\(Sending processes\)\(.*\)/\1\2 started by init\3/' \
|
||||
src/init.c > tmp~ &&
|
||||
mv tmp~ src/init.c</userinput></screen></para>
|
||||
|
||||
<para>Install Sysvinit by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>make -C src &&</userinput>
|
||||
<userinput>make -C src install</userinput></screen></para>
|
||||
<para><screen><userinput>make -C src &&
|
||||
make -C src install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -14,10 +14,10 @@ for gzip files).</para>
|
||||
<para>Install Tar by running the following commands from the toplevel
|
||||
directory:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr --libexecdir=/usr/bin \</userinput>
|
||||
<userinput> --bindir=/bin &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr --libexecdir=/usr/bin \
|
||||
--bindir=/bin &&
|
||||
make &&
|
||||
make install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,10 +3,10 @@
|
||||
|
||||
<para>Install Texinfo by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install &&</userinput>
|
||||
<userinput>make TEXMF=/usr/share/texmf install-tex</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr &&
|
||||
make &&
|
||||
make install &&
|
||||
make TEXMF=/usr/share/texmf install-tex</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -3,10 +3,10 @@
|
||||
|
||||
<para>Install Textutils by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure --prefix=/usr &&</userinput>
|
||||
<userinput>make &&</userinput>
|
||||
<userinput>make install &&</userinput>
|
||||
<userinput>mv /usr/bin/cat /bin</userinput></screen></para>
|
||||
<para><screen><userinput>./configure --prefix=/usr &&
|
||||
make &&
|
||||
make install &&
|
||||
mv /usr/bin/cat /bin</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -5,11 +5,11 @@
|
||||
adjtime file, instead of the usual /etc. To make hwclock, which is part of the
|
||||
util-linux package, FHS-compliant, run the following.</para>
|
||||
|
||||
<para><screen><userinput>cp hwclock/hwclock.c hwclock/hwclock.c.backup &&</userinput>
|
||||
<userinput>sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \</userinput>
|
||||
<userinput> hwclock/hwclock.c > tmp~ &&</userinput>
|
||||
<userinput>mv tmp~ hwclock/hwclock.c &&</userinput>
|
||||
<userinput>mkdir -p /var/lib/hwclock</userinput></screen></para>
|
||||
<para><screen><userinput>cp hwclock/hwclock.c hwclock/hwclock.c.backup &&
|
||||
sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \
|
||||
hwclock/hwclock.c > tmp~ &&
|
||||
mv tmp~ hwclock/hwclock.c &&
|
||||
mkdir -p /var/lib/hwclock</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
@ -18,9 +18,9 @@ util-linux package, FHS-compliant, run the following.</para>
|
||||
|
||||
<para>Install Util-Linux by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>./configure &&</userinput>
|
||||
<userinput>make HAVE_SLN=yes ADD_RAW=yes &&</userinput>
|
||||
<userinput>make HAVE_SLN=yes ADD_RAW=yes install</userinput></screen></para>
|
||||
<para><screen><userinput>./configure &&
|
||||
make HAVE_SLN=yes ADD_RAW=yes &&
|
||||
make HAVE_SLN=yes ADD_RAW=yes install</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -9,21 +9,21 @@ which are currently available are for Emacs, Joe and nano.</para>
|
||||
|
||||
<para>Install Vim by running the following commands:</para>
|
||||
|
||||
<para><screen><userinput>sed '/shUntil\|link shRepeat/{</userinput>
|
||||
<userinput> /shUntil/N</userinput>
|
||||
<userinput> /^/i\</userinput>
|
||||
<userinput> if exists("b:is_kornshell") || exists("b:is_bash")</userinput>
|
||||
<userinput> p</userinput>
|
||||
<userinput> /$/i\</userinput>
|
||||
<userinput> endif</userinput>
|
||||
<userinput> d</userinput>
|
||||
<userinput> }' runtime/syntax/sh.vim > sh.vim.fixed &&</userinput>
|
||||
<userinput>mv sh.vim.fixed runtime/syntax/sh.vim &&</userinput>
|
||||
<userinput>./configure --prefix=/usr &&</userinput>
|
||||
<userinput>make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" &&</userinput>
|
||||
<userinput>make install &&</userinput>
|
||||
<userinput>cd /usr/bin &&</userinput>
|
||||
<userinput>ln -sf vim vi</userinput></screen></para>
|
||||
<para><screen><userinput>sed '/shUntil\|link shRepeat/{
|
||||
/shUntil/N
|
||||
/^/i\
|
||||
if exists("b:is_kornshell") || exists("b:is_bash")
|
||||
p
|
||||
/$/i\
|
||||
endif
|
||||
d
|
||||
}' runtime/syntax/sh.vim > sh.vim.fixed &&
|
||||
mv sh.vim.fixed runtime/syntax/sh.vim &&
|
||||
./configure --prefix=/usr &&
|
||||
make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" &&
|
||||
make install &&
|
||||
cd /usr/bin &&
|
||||
ln -sf vim vi</userinput></screen></para>
|
||||
|
||||
<para>If you plan on installing the X Window system on your LFS
|
||||
system, you might want to re-compile Vim after you have installed X. Vim
|
||||
@ -41,24 +41,21 @@ for their temporary state files, like temporary save files for example.
|
||||
If you wish vim to conform to the FHS, you should use this command set
|
||||
instead of the one presented above:</para>
|
||||
|
||||
<para><screen><userinput>sed '/shUntil\|link shRepeat/{</userinput>
|
||||
<userinput> /shUntil/N</userinput>
|
||||
<userinput> /^/i\</userinput>
|
||||
<userinput> if exists("b:is_kornshell") ||
|
||||
exists("b:is_bash")</userinput>
|
||||
<userinput> p</userinput>
|
||||
<userinput> /$/i\</userinput>
|
||||
<userinput> endif</userinput>
|
||||
<userinput> d</userinput>
|
||||
<userinput> }' runtime/syntax/sh.vim > sh.vim.fixed
|
||||
&&</userinput>
|
||||
<userinput>mv sh.vim.fixed runtime/syntax/sh.vim &&</userinput>
|
||||
<userinput>./configure --prefix=/usr --localstatedir=/var/lib/vim &&</userinput>
|
||||
<userinput>make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\"
|
||||
&&</userinput>
|
||||
<userinput>make install &&</userinput>
|
||||
<userinput>cd /usr/bin &&</userinput>
|
||||
<userinput>ln -sf vim vi</userinput></screen></para>
|
||||
<para><screen><userinput>sed '/shUntil\|link shRepeat/{
|
||||
/shUntil/N
|
||||
/^/i\
|
||||
if exists("b:is_kornshell") || exists("b:is_bash")
|
||||
p
|
||||
/$/i\
|
||||
endif
|
||||
d
|
||||
}' runtime/syntax/sh.vim > sh.vim.fixed &&
|
||||
mv sh.vim.fixed runtime/syntax/sh.vim &&
|
||||
./configure --prefix=/usr --localstatedir=/var/lib/vim &&
|
||||
make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" &&
|
||||
make install &&
|
||||
cd /usr/bin &&
|
||||
ln -sf vim vi</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user