Changeset 4d6fc2da
- Timestamp:
- 10/27/2001 10:21:44 PM (23 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v3_1, v3_2, v3_3, v4_0, v4_1, v5_0, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 5a91774
- Parents:
- 2443baa
- Files:
-
- 72 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter01/changelog.xml
r2443baa r4d6fc2da 31 31 32 32 </para></listitem> 33 34 <listitem><para>October 27th, 2001 [markh]: General: Large XML Tidy-up. 35 Shouldn't affect the book text or layout. If it does, something has 36 gone wrong!</para></listitem> 33 37 34 38 <listitem><para>October 27th, 2001 [markh]: Chapter 6: Added -
chapter05/bash-inst.xml
r2443baa r4d6fc2da 16 16 following commands:</para> 17 17 18 <para><screen><userinput>cd /usr/lib && </userinput>19 <userinput>ln -s libncurses.a libcurses.a</userinput></screen></para>18 <para><screen><userinput>cd /usr/lib && 19 ln -s libncurses.a libcurses.a</userinput></screen></para> 20 20 21 21 <para>Now we can continue. Install Bash by running the following 22 22 commands:</para> 23 23 24 <para><screen><userinput>./configure --enable-static-link --prefix=$LFS/usr \ </userinput>25 <userinput> --bindir=$LFS/bin --with-curses &&</userinput> 26 <userinput>make &&</userinput> 27 <userinput>make install &&</userinput> 28 <userinput>cd $LFS/bin &&</userinput> 29 <userinput>ln -sf bash sh</userinput></screen></para>24 <para><screen><userinput>./configure --enable-static-link --prefix=$LFS/usr \ 25 --bindir=$LFS/bin --with-curses && 26 make && 27 make install && 28 cd $LFS/bin && 29 ln -sf bash sh</userinput></screen></para> 30 30 31 31 <para>If the make install phase ends with something along the lines of</para> -
chapter05/binutils-inst.xml
r2443baa r4d6fc2da 10 10 <para>Install Binutils by running the following commands:</para> 11 11 12 <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls && </userinput>13 <userinput>make LDFLAGS=-all-static tooldir=$LFS/usr &&</userinput> 14 <userinput>make tooldir=$LFS/usr install</userinput></screen></para>12 <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls && 13 make LDFLAGS=-all-static tooldir=$LFS/usr && 14 make tooldir=$LFS/usr install</userinput></screen></para> 15 15 16 16 </sect2> -
chapter05/bzip2-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Bzip2 by running the following commands:</para> 5 5 6 <para><screen><userinput>make CC="gcc -static" && </userinput>7 <userinput>make PREFIX=$LFS/usr install &&</userinput> 8 <userinput>cd $LFS/usr/bin &&</userinput> 9 <userinput>mv bzcat bunzip2 bzip2 bzip2recover $LFS/bin</userinput></screen></para>6 <para><screen><userinput>make CC="gcc -static" && 7 make PREFIX=$LFS/usr install && 8 cd $LFS/usr/bin && 9 mv bzcat bunzip2 bzip2 bzip2recover $LFS/bin</userinput></screen></para> 10 10 11 11 <para>Although it's not strictly a part of a basic LFS system it's worth -
chapter05/diffutils-inst.xml
r2443baa r4d6fc2da 8 8 use the first version.</para> 9 9 10 <para><screen><userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2 && </userinput>11 <userinput>./configure --prefix=$LFS/usr &&</userinput> 12 <userinput>unset CPPFLAGS &&</userinput> 13 <userinput>make LDFLAGS=-static &&</userinput> 14 <userinput>make install</userinput></screen></para>10 <para><screen><userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2 && 11 ./configure --prefix=$LFS/usr && 12 unset CPPFLAGS && 13 make LDFLAGS=-static && 14 make install</userinput></screen></para> 15 15 16 16 <para>If you are using a newer glibc version (2.2.x), you can use the following 17 17 commands to install Diffutils:</para> 18 18 19 <para><screen><userinput>./configure --prefix=$LFS/usr && </userinput>20 <userinput>make LDFLAGS=-static &&</userinput> 21 <userinput>make install</userinput></screen></para>19 <para><screen><userinput>./configure --prefix=$LFS/usr && 20 make LDFLAGS=-static && 21 make install</userinput></screen></para> 22 22 23 23 </sect2> -
chapter05/fileutils-exp.xml
r2443baa r4d6fc2da 6 6 change.</para> 7 7 8 <para><screen><userinput>cp lib/Makefile.in lib/Makefile.in.backup && </userinput>9 <userinput>sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput> 10 <userinput> -e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput> 11 <userinput> lib/Makefile.in > lib/Makefile.in~ &&</userinput> 12 <userinput>mv lib/Makefile.in~ lib/Makefile.in:</userinput></screen>8 <para><screen><userinput>cp lib/Makefile.in lib/Makefile.in.backup && 9 sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \ 10 -e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \ 11 lib/Makefile.in > lib/Makefile.in~ && 12 mv lib/Makefile.in~ lib/Makefile.in:</userinput></screen> 13 13 This is used to fix a problem with building fileutils statically on glibc 2.2.3 14 14 systems. If this isn't done, then there is the possibility of all of the -
chapter05/fileutils-inst.xml
r2443baa r4d6fc2da 22 22 than likely result in all kinds of compile time problems.</para> 23 23 24 <para><screen><userinput>cp lib/Makefile.in lib/Makefile.in.backup && </userinput>25 <userinput>sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput> 26 <userinput> -e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput> 27 <userinput> lib/Makefile.in > lib/Makefile.in~ &&</userinput> 28 <userinput>mv lib/Makefile.in~ lib/Makefile.in</userinput></screen></para>24 <para><screen><userinput>cp lib/Makefile.in lib/Makefile.in.backup && 25 sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \ 26 -e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \ 27 lib/Makefile.in > lib/Makefile.in~ && 28 mv lib/Makefile.in~ lib/Makefile.in</userinput></screen></para> 29 29 30 <para>Install fileutils by running the following commands: 31 <screen><userinput>./configure --disable-nls \</userinput> 32 <userinput> --prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin &&</userinput> 33 <userinput>make LDFLAGS=-static &&</userinput> 34 <userinput>make install &&</userinput> 35 <userinput>cd $LFS/usr/bin &&</userinput> 36 <userinput>ln -sf ../../bin/install</userinput></screen></para> 30 <para>Install fileutils by running the following commands:</para> 31 32 <para><screen><userinput>./configure --disable-nls \ 33 --prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin && 34 make LDFLAGS=-static && 35 make install && 36 cd $LFS/usr/bin && 37 ln -sf ../../bin/install</userinput></screen></para> 37 38 38 39 <para>Once you have installed fileutils, you can test whether the -
chapter05/gcc-inst.xml
r2443baa r4d6fc2da 10 10 <para>Install GCC by running the following commands:</para> 11 11 12 <para><screen><userinput>patch -Np1 -i ../gcc-&gcc-patch-version;.patch && </userinput>13 <userinput>mkdir ../gcc-build &&</userinput> 14 <userinput>cd ../gcc-build &&</userinput> 15 <userinput>../gcc-&gcc-version;/configure --prefix=/usr --enable-languages=c,c++ \</userinput> 16 <userinput> --disable-nls --disable-shared --enable-threads=posix &&</userinput> 17 <userinput>make BOOT_LDFLAGS=-static bootstrap &&</userinput> 18 <userinput>make prefix=$LFS/usr install &&</userinput> 19 <userinput>cd $LFS/lib &&</userinput> 20 <userinput>ln -sf ../usr/bin/cpp &&</userinput> 21 <userinput>cd $LFS/usr/lib &&</userinput> 22 <userinput>ln -sf ../bin/cpp &&</userinput> 23 <userinput>cd $LFS/usr/bin &&</userinput> 24 <userinput>ln -sf gcc cc</userinput></screen></para>12 <para><screen><userinput>patch -Np1 -i ../gcc-&gcc-patch-version;.patch && 13 mkdir ../gcc-build && 14 cd ../gcc-build && 15 ../gcc-&gcc-version;/configure --prefix=/usr --enable-languages=c,c++ \ 16 --disable-nls --disable-shared --enable-threads=posix && 17 make BOOT_LDFLAGS=-static bootstrap && 18 make prefix=$LFS/usr install && 19 cd $LFS/lib && 20 ln -sf ../usr/bin/cpp && 21 cd $LFS/usr/lib && 22 ln -sf ../bin/cpp && 23 cd $LFS/usr/bin && 24 ln -sf gcc cc</userinput></screen></para> 25 25 26 26 </sect2> -
chapter05/grep-inst.xml
r2443baa r4d6fc2da 8 8 use the first version.</para> 9 9 10 <para><screen><userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2 && </userinput>11 <userinput>./configure --prefix=$LFS/usr --disable-nls &&</userinput> 12 <userinput>unset CPPFLAGS &&</userinput> 13 <userinput>make LDFLAGS=-static &&</userinput> 14 <userinput>make install</userinput></screen></para>10 <para><screen><userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2 && 11 ./configure --prefix=$LFS/usr --disable-nls && 12 unset CPPFLAGS && 13 make LDFLAGS=-static && 14 make install</userinput></screen></para> 15 15 16 16 <para>If you are using a newer glibc version (2.2.x), you can use the 17 17 following commands to install Grep:</para> 18 18 19 <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls && </userinput>20 <userinput>make LDFLAGS=-static &&</userinput> 21 <userinput>make install</userinput></screen></para>19 <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls && 20 make LDFLAGS=-static && 21 make install</userinput></screen></para> 22 22 23 23 </sect2> -
chapter05/gzip-inst.xml
r2443baa r4d6fc2da 11 11 <para>Apply the patch by running the following command:</para> 12 12 13 <para>< userinput>patch -Np1 -i ../gzip-&gzip-version;.patch</userinput></para>13 <para><screen><userinput>patch -Np1 -i ../gzip-&gzip-version;.patch</userinput></screen></para> 14 14 15 15 <para>Install Gzip by running the following commands:</para> 16 <para><screen><userinput>./configure --prefix=$LFS/usr &&</userinput> 17 <userinput>make LDFLAGS=-static &&</userinput> 18 <userinput>make install &&</userinput> 19 <userinput>cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin &&</userinput> 20 <userinput>rm $LFS/usr/bin/gunzip $LFS/usr/bin/gzip</userinput></screen></para> 16 17 <para><screen><userinput>./configure --prefix=$LFS/usr && 18 make LDFLAGS=-static && 19 make install && 20 cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin && 21 rm $LFS/usr/bin/gunzip $LFS/usr/bin/gzip</userinput></screen></para> 21 22 22 23 </sect2> -
chapter05/kernel-inst.xml
r2443baa r4d6fc2da 11 11 command:</para> 12 12 13 <para><screen><userinput>make mrproper && </userinput>14 <userinput>yes "" | make config &&</userinput> 15 <userinput>make dep &&</userinput> 16 <userinput>cd $LFS/usr/include &&</userinput> 17 <userinput>cp -a ../src/linux/include/linux . &&</userinput> 18 <userinput>chown -R root.root $LFS/usr/include/linux &&</userinput> 19 <userinput>mkdir asm &&</userinput> 20 <userinput>cp -a ../src/linux/include/asm/* asm &&</userinput> 21 <userinput>chown -R root.root $LFS/usr/include/asm</userinput></screen></para>13 <para><screen><userinput>make mrproper && 14 yes "" | make config && 15 make dep && 16 cd $LFS/usr/include && 17 cp -a ../src/linux/include/linux . && 18 chown -R root.root $LFS/usr/include/linux && 19 mkdir asm && 20 cp -a ../src/linux/include/asm/* asm && 21 chown -R root.root $LFS/usr/include/asm</userinput></screen></para> 22 22 23 23 </sect2> -
chapter05/make-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Make by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls && </userinput>7 <userinput>make LDFLAGS=-static &&</userinput> 8 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls && 7 make LDFLAGS=-static && 8 make install</userinput></screen></para> 9 9 10 10 </sect2> -
chapter05/mawk-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Mawk by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure && </userinput>7 <userinput>make CC="gcc -static" &&</userinput> 8 <userinput>make BINDIR=$LFS/usr/bin \</userinput> 9 <userinput> MANDIR=$LFS/usr/share/man/man1 install</userinput></screen></para>6 <para><screen><userinput>./configure && 7 make CC="gcc -static" && 8 make BINDIR=$LFS/usr/bin \ 9 MANDIR=$LFS/usr/share/man/man1 install</userinput></screen></para> 10 10 11 11 </sect2> -
chapter05/patch-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Patch by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=$LFS/usr && </userinput>7 <userinput>make LDFLAGS=-static &&</userinput> 8 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=$LFS/usr && 7 make LDFLAGS=-static && 8 make install</userinput></screen></para> 9 9 10 10 </sect2> -
chapter05/sed-inst.xml
r2443baa r4d6fc2da 8 8 use the first version.</para> 9 9 10 <para><screen><userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2 && </userinput>11 <userinput>./configure --prefix=$LFS/usr --bindir=$LFS/bin &&</userinput> 12 <userinput>unset CPPFLAGS &&</userinput> 13 <userinput>make LDFLAGS=-static &&</userinput> 14 <userinput>make install</userinput></screen></para>10 <para><screen><userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2 && 11 ./configure --prefix=$LFS/usr --bindir=$LFS/bin && 12 unset CPPFLAGS && 13 make LDFLAGS=-static && 14 make install</userinput></screen></para> 15 15 16 16 <para>If you are using a newer glibc version (2.2.x), you can use the 17 17 following commands to install Sed:</para> 18 18 19 <para><screen><userinput>./configure --prefix=$LFS/usr --bindir=$LFS/bin && </userinput>20 <userinput>make LDFLAGS=-static &&</userinput> 21 <userinput>make install</userinput></screen></para>19 <para><screen><userinput>./configure --prefix=$LFS/usr --bindir=$LFS/bin && 20 make LDFLAGS=-static && 21 make install</userinput></screen></para> 22 22 23 23 </sect2> -
chapter05/shellutils-inst.xml
r2443baa r4d6fc2da 14 14 15 15 <para>Install Sh-utils by running the following commands:</para> 16 <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &&</userinput> 17 <userinput>make LDFLAGS=-static &&</userinput> 18 <userinput>make install &&</userinput> 19 <userinput>cd $LFS/usr/bin &&</userinput> 20 <userinput>mv date echo false pwd stty $LFS/bin &&</userinput> 21 <userinput>mv su true uname hostname $LFS/bin</userinput></screen></para> 16 17 <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls && 18 make LDFLAGS=-static && 19 make install && 20 cd $LFS/usr/bin && 21 mv date echo false pwd stty $LFS/bin && 22 mv su true uname hostname $LFS/bin</userinput></screen></para> 22 23 23 24 </sect2> -
chapter05/tar-inst.xml
r2443baa r4d6fc2da 13 13 <para>Install Tar by running the following commands:</para> 14 14 15 <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls \ </userinput>16 <userinput> --libexecdir=$LFS/usr/bin --bindir=$LFS/bin && </userinput> 17 <userinput>make LDFLAGS=-static &&</userinput> 18 <userinput>make install</userinput></screen></para>15 <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls \ 16 --libexecdir=$LFS/usr/bin --bindir=$LFS/bin && 17 make LDFLAGS=-static && 18 make install</userinput></screen></para> 19 19 20 20 </sect2> -
chapter05/texinfo-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Texinfo by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls && </userinput>7 <userinput>make LDFLAGS=-static &&</userinput> 8 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls && 7 make LDFLAGS=-static && 8 make install</userinput></screen></para> 9 9 10 10 </sect2> -
chapter05/textutils-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Textutils by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls && </userinput>7 <userinput>make LDFLAGS=-static &&</userinput> 8 <userinput>make install &&</userinput> 9 <userinput>mv $LFS/usr/bin/cat $LFS/bin</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls && 7 make LDFLAGS=-static && 8 make install && 9 mv $LFS/usr/bin/cat $LFS/bin</userinput></screen></para> 10 10 11 11 </sect2> -
chapter06/autoconf-inst.xml
r2443baa r4d6fc2da 9 9 <para>Install Autoconf by running the following commands:</para> 10 10 11 <para><screen><userinput>./configure --prefix=/usr && </userinput>12 <userinput>make &&</userinput> 13 <userinput>make install</userinput></screen></para>11 <para><screen><userinput>./configure --prefix=/usr && 12 make && 13 make install</userinput></screen></para> 14 14 15 15 </sect2> -
chapter06/automake-inst.xml
r2443baa r4d6fc2da 9 9 <para>Install Automake by running the following commands:</para> 10 10 11 <para><screen><userinput>./configure --prefix=/usr && </userinput>12 <userinput>make install</userinput></screen></para>11 <para><screen><userinput>./configure --prefix=/usr && 12 make install</userinput></screen></para> 13 13 14 14 </sect2> -
chapter06/bash-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Bash by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=/usr --with-curses \ </userinput>7 <userinput> --bindir=/bin &&</userinput> 8 <userinput>make &&</userinput> 9 <userinput>make install &&</userinput> 10 <userinput>exec /bin/bash --login</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=/usr --with-curses \ 7 --bindir=/bin && 8 make && 9 make install && 10 exec /bin/bash --login</userinput></screen></para> 11 11 12 12 </sect2> -
chapter06/bin86-inst.xml
r2443baa r4d6fc2da 15 15 <para>Install Bin86 by running the following commands:</para> 16 16 17 <para><screen><userinput>make && </userinput>18 <userinput>make PREFIX=/usr install</userinput></screen></para>17 <para><screen><userinput>make && 18 make PREFIX=/usr install</userinput></screen></para> 19 19 20 20 </sect2> -
chapter06/binutils-inst.xml
r2443baa r4d6fc2da 9 9 <para>Install Binutils by running the following commands:</para> 10 10 11 <para><screen><userinput>./configure --prefix=/usr --enable-shared && </userinput>12 <userinput>make tooldir=/usr &&</userinput> 13 <userinput>make tooldir=/usr install &&</userinput> 14 <userinput>make tooldir=/usr install-info</userinput></screen></para>11 <para><screen><userinput>./configure --prefix=/usr --enable-shared && 12 make tooldir=/usr && 13 make tooldir=/usr install && 14 make tooldir=/usr install-info</userinput></screen></para> 15 15 16 16 </sect2> -
chapter06/bison-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Bison by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=/usr \ </userinput>7 <userinput> --datadir=/usr/share/bison &&</userinput> 8 <userinput>make &&</userinput> 9 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=/usr \ 7 --datadir=/usr/share/bison && 8 make && 9 make install</userinput></screen></para> 10 10 11 11 <para>Some programs don't know about bison and try to find the yacc program … … 24 24 25 25 # End /usr/bin/yacc 26 <userinput>EOF </userinput>27 <userinput>chmod 755 /usr/bin/yacc</userinput></screen></para>26 <userinput>EOF 27 chmod 755 /usr/bin/yacc</userinput></screen></para> 28 28 29 29 </sect2> -
chapter06/bzip2-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Bzip2 by running the following commands:</para> 5 5 6 <para><screen><userinput>make -f Makefile-libbz2_so && </userinput>7 <userinput>make bzip2recover libbz2.a &&</userinput> 8 <userinput>ln -s libbz2.so.1.0.1 libbz2.so &&</userinput> 9 <userinput>cp bzip2-shared /bin/bzip2 &&</userinput> 10 <userinput>cp bzip2recover /bin &&</userinput> 11 <userinput>cp bzip2.1 /usr/share/man/man1 &&</userinput> 12 <userinput>cp bzlib.h /usr/include &&</userinput> 13 <userinput>cp -a libbz2.so* /lib &&</userinput> 14 <userinput>rm /usr/lib/libbz2.a &&</userinput> 15 <userinput>cp libbz2.a /usr/lib &&</userinput> 16 <userinput>cd /usr/lib &&</userinput> 17 <userinput>ln -sf ../../lib/libbz2.so &&</userinput> 18 <userinput>cd /bin &&</userinput> 19 <userinput>ln -sf bzip2 bunzip2 &&</userinput> 20 <userinput>ln -sf bzip2 bzcat &&</userinput> 21 <userinput>cd /usr/share/man/man1 &&</userinput> 22 <userinput>ln -sf bzip2.1 bunzip2.1 &&</userinput> 23 <userinput>ln -sf bzip2.1 bzcat.1 &&</userinput> 24 <userinput>ln -sf bzip2.1 bzip2recover.1</userinput></screen></para>6 <para><screen><userinput>make -f Makefile-libbz2_so && 7 make bzip2recover libbz2.a && 8 ln -s libbz2.so.1.0.1 libbz2.so && 9 cp bzip2-shared /bin/bzip2 && 10 cp bzip2recover /bin && 11 cp bzip2.1 /usr/share/man/man1 && 12 cp bzlib.h /usr/include && 13 cp -a libbz2.so* /lib && 14 rm /usr/lib/libbz2.a && 15 cp libbz2.a /usr/lib && 16 cd /usr/lib && 17 ln -sf ../../lib/libbz2.so && 18 cd /bin && 19 ln -sf bzip2 bunzip2 && 20 ln -sf bzip2 bzcat && 21 cd /usr/share/man/man1 && 22 ln -sf bzip2.1 bunzip2.1 && 23 ln -sf bzip2.1 bzcat.1 && 24 ln -sf bzip2.1 bzip2recover.1</userinput></screen></para> 25 25 26 26 <para>Although it's not strictly a part of a basic LFS system it's worth -
chapter06/chrootcmd.xml
r2443baa r4d6fc2da 1 <userinput>cd $LFS && </userinput>2 <userinput>chroot $LFS /usr/bin/env -i HOME=/root \</userinput> 3 <userinput> TERM=$TERM /bin/bash --login</userinput>1 <userinput>cd $LFS && 2 chroot $LFS /usr/bin/env -i HOME=/root \ 3 TERM=$TERM /bin/bash --login</userinput> -
chapter06/config-glibc.xml
r2443baa r4d6fc2da 39 39 by running:</para> 40 40 41 <para><screen><userinput>cd /etc && </userinput>42 <userinput>ln -sf ../usr/share/zoneinfo/<tzselect's output> localtime</userinput></screen></para>41 <para><screen><userinput>cd /etc && 42 ln -sf ../usr/share/zoneinfo/<tzselect's output> localtime</userinput></screen></para> 43 43 44 44 <para>tzselect's output can be something like <emphasis>EST5EDT</emphasis> or -
chapter06/create-utmp.xml
r2443baa r4d6fc2da 12 12 following commands:</para> 13 13 14 <para><screen><userinput>touch /var/run/utmp /var/log/wtmp \ </userinput>15 <userinput> /var/log/btmp /var/log/lastlog &&</userinput> 16 <userinput>chmod 644 /var/run/utmp /var/log/wtmp \</userinput> 17 <userinput> /var/log/btmp /var/log/lastlog</userinput></screen></para>14 <para><screen><userinput>touch /var/run/utmp /var/log/wtmp \ 15 /var/log/btmp /var/log/lastlog && 16 chmod 644 /var/run/utmp /var/log/wtmp \ 17 /var/log/btmp /var/log/lastlog</userinput></screen></para> 18 18 19 19 </sect2> -
chapter06/diffutils-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Diffutils by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=/usr && </userinput>7 <userinput>make &&</userinput> 8 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=/usr && 7 make && 8 make install</userinput></screen></para> 9 9 10 10 </sect2> -
chapter06/e2fsprogs-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install E2fsprogs by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=/usr --with-root-prefix="" \ </userinput>7 <userinput> --enable-elf-shlibs &&</userinput> 8 <userinput>make &&</userinput> 9 <userinput>make install &&</userinput> 10 <userinput>make install-libs</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=/usr --with-root-prefix="" \ 7 --enable-elf-shlibs && 8 make && 9 make install && 10 make install-libs</userinput></screen></para> 11 11 12 12 </sect2> -
chapter06/ed-inst.xml
r2443baa r4d6fc2da 9 9 <para>Install Ed by running the following commands:</para> 10 10 11 <para><screen><userinput>cp buf.c buf.c.backup && </userinput>12 <userinput>sed 's/int u/int u, sfd/' buf.c.backup | \</userinput> 13 <userinput> sed '/.*\*mktemp.*/d' | \</userinput> 14 <userinput> sed 's/.*if (mktemp.*/ sfd = mkstemp(sfn);\</userinput> 15 <userinput> if ((sfd == -1) || (sfp = fopen (sfn, "w+")) == NULL)/' > buf.c &&</userinput> 16 <userinput>./configure --prefix=/usr &&</userinput> 17 <userinput>make &&</userinput> 18 <userinput>make install &&</userinput> 19 <userinput>mv /usr/bin/ed /usr/bin/red /bin</userinput></screen></para>11 <para><screen><userinput>cp buf.c buf.c.backup && 12 sed 's/int u/int u, sfd/' buf.c.backup | \ 13 sed '/.*\*mktemp.*/d' | \ 14 sed 's/.*if (mktemp.*/ sfd = mkstemp(sfn);\ 15 if ((sfd == -1) || (sfp = fopen (sfn, "w+")) == NULL)/' > buf.c && 16 ./configure --prefix=/usr && 17 make && 18 make install && 19 mv /usr/bin/ed /usr/bin/red /bin</userinput></screen></para> 20 20 21 21 </sect2> -
chapter06/file-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install File by running the following commands:</para> 5 5 6 <para><screen><userinput>cp readelf.h readelf.h.backup && </userinput>7 <userinput>sed $'/#define __/a \\\n#include <stdint.h>' readelf.h.backup > readelf.h &&</userinput> 8 <userinput>./configure --prefix=/usr --datadir=/usr/share/misc &&</userinput> 9 <userinput>make &&</userinput> 10 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>cp readelf.h readelf.h.backup && 7 sed $'/#define __/a \\\n#include <stdint.h>' readelf.h.backup > readelf.h && 8 ./configure --prefix=/usr --datadir=/usr/share/misc && 9 make && 10 make install</userinput></screen></para> 11 11 12 12 <para>File uses magic numbers to determine a file type. These magic numbers -
chapter06/fileutils-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Fileutils by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=/usr --bindir=/bin \ </userinput>7 <userinput> --libexecdir=/bin &&</userinput> 8 <userinput>make &&</userinput> 9 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=/usr --bindir=/bin \ 7 --libexecdir=/bin && 8 make && 9 make install</userinput></screen></para> 10 10 11 11 </sect2> -
chapter06/findutils-inst.xml
r2443baa r4d6fc2da 7 7 <para>Install Findutils by running the following commands:</para> 8 8 9 <para><screen><userinput>patch -Np1 -i ../findutils-4.1.patch && </userinput>10 <userinput>./configure --prefix=/usr &&</userinput> 11 <userinput>make &&</userinput> 12 <userinput>make libexecdir=/usr/bin install</userinput></screen></para>9 <para><screen><userinput>patch -Np1 -i ../findutils-4.1.patch && 10 ./configure --prefix=/usr && 11 make && 12 make libexecdir=/usr/bin install</userinput></screen></para> 13 13 14 14 </sect2> -
chapter06/flex-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Flex by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=/usr && </userinput>7 <userinput>make &&</userinput> 8 <userinput>make install &&</userinput> 9 <userinput>cd /usr/bin &&</userinput> 10 <userinput>ln -sf flex lex</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=/usr && 7 make && 8 make install && 9 cd /usr/bin && 10 ln -sf flex lex</userinput></screen></para> 11 11 12 12 </sect2> -
chapter06/gcc-inst.xml
r2443baa r4d6fc2da 18 18 who actively work on LFS.</para> 19 19 20 <para><screen><userinput>patch -Np1 -i ../gcc-&gcc-patch-version;.patch && </userinput>21 <userinput>mkdir ../gcc-build &&</userinput> 22 <userinput>cd ../gcc-build &&</userinput> 23 <userinput>../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \</userinput> 24 <userinput> --enable-languages=c,c++ --enable-threads=posix &&</userinput> 25 <userinput>make bootstrap &&</userinput> 26 <userinput>make install</userinput></screen></para>20 <para><screen><userinput>patch -Np1 -i ../gcc-&gcc-patch-version;.patch && 21 mkdir ../gcc-build && 22 cd ../gcc-build && 23 ../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \ 24 --enable-languages=c,c++ --enable-threads=posix && 25 make bootstrap && 26 make install</userinput></screen></para> 27 27 28 28 </sect2> -
chapter06/gettext-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Gettext by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=/usr && </userinput>7 <userinput>make &&</userinput> 8 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=/usr && 7 make && 8 make install</userinput></screen></para> 9 9 10 10 </sect2> -
chapter06/glibc-inst.xml
r2443baa r4d6fc2da 15 15 <para>Install Glibc by running the following commands:</para> 16 16 17 <para><screen><userinput>mknod -m 0666 /dev/null c 1 3 && </userinput>18 <userinput>touch /etc/ld.so.conf &&</userinput> 19 <userinput>cp malloc/Makefile malloc/Makefile.backup &&</userinput> 20 <userinput>sed 's%\$(PERL)%/usr/bin/perl%' malloc/Makefile > tmp~ &&</userinput> 21 <userinput>mv tmp~ malloc/Makefile &&</userinput> 22 <userinput>cp login/Makefile login/Makefile.backup &&</userinput> 23 <userinput>sed 's/root/0/' login/Makefile > tmp~ &&</userinput> 24 <userinput>mv tmp~ login/Makefile &&</userinput> 25 <userinput>mkdir ../glibc-build &&</userinput> 26 <userinput>cd ../glibc-build &&</userinput> 27 <userinput>../glibc-&glibc-version;/configure --prefix=/usr \</userinput> 28 <userinput> --enable-add-ons --libexecdir=/usr/bin &&</userinput> 29 <userinput>cp config.make config.make.backup &&</userinput> 30 <userinput>sed 's/cross-compiling = yes/cross-compiling = no/' \</userinput> 31 <userinput> config.make > tmp~ &&</userinput> 32 <userinput>mv tmp~ config.make &&</userinput> 33 <userinput>make &&</userinput> 34 <userinput>make install &&</userinput> 35 <userinput>make localedata/install-locales &&</userinput> 36 <userinput>exec /bin/bash --login</userinput></screen></para>17 <para><screen><userinput>mknod -m 0666 /dev/null c 1 3 && 18 touch /etc/ld.so.conf && 19 cp malloc/Makefile malloc/Makefile.backup && 20 sed 's%\$(PERL)%/usr/bin/perl%' malloc/Makefile > tmp~ && 21 mv tmp~ malloc/Makefile && 22 cp login/Makefile login/Makefile.backup && 23 sed 's/root/0/' login/Makefile > tmp~ && 24 mv tmp~ login/Makefile && 25 mkdir ../glibc-build && 26 cd ../glibc-build && 27 ../glibc-&glibc-version;/configure --prefix=/usr \ 28 --enable-add-ons --libexecdir=/usr/bin && 29 cp config.make config.make.backup && 30 sed 's/cross-compiling = yes/cross-compiling = no/' \ 31 config.make > tmp~ && 32 mv tmp~ config.make && 33 make && 34 make install && 35 make localedata/install-locales && 36 exec /bin/bash --login</userinput></screen></para> 37 37 38 38 <para>An alternative to running <userinput>make -
chapter06/grep-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Grep by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=/usr && </userinput>7 <userinput>make &&</userinput> 8 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=/usr && 7 make && 8 make install</userinput></screen></para> 9 9 10 10 </sect2> -
chapter06/groff-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Groff by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=/usr && </userinput>7 <userinput>make &&</userinput> 8 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=/usr && 7 make && 8 make install</userinput></screen></para> 9 9 10 10 </sect2> -
chapter06/gzip-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Gzip by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=/usr && </userinput>7 <userinput>make &&</userinput> 8 <userinput>make install &&</userinput> 9 <userinput>cd /usr/bin &&</userinput> 10 <userinput>mv gzip /bin &&</userinput> 11 <userinput>rm gunzip zcat &&</userinput> 12 <userinput>cd /bin &&</userinput> 13 <userinput>ln -sf gzip gunzip &&</userinput> 14 <userinput>ln -sf gzip zcat &&</userinput> 15 <userinput>ln -sf gzip compress &&</userinput> 16 <userinput>ln -sf gunzip uncompress</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=/usr && 7 make && 8 make install && 9 cd /usr/bin && 10 mv gzip /bin && 11 rm gunzip zcat && 12 cd /bin && 13 ln -sf gzip gunzip && 14 ln -sf gzip zcat && 15 ln -sf gzip compress && 16 ln -sf gunzip uncompress</userinput></screen></para> 17 17 18 18 </sect2> -
chapter06/kbd-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Kbd by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure && </userinput>7 <userinput>make &&</userinput> 8 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>./configure && 7 make && 8 make install</userinput></screen></para> 9 9 10 10 <para>When using the loadkeys program from this package, don't use the -
chapter06/less-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Less by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=/usr --bindir=/bin && </userinput>7 <userinput>make &&</userinput> 8 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=/usr --bindir=/bin && 7 make && 8 make install</userinput></screen></para> 9 9 10 10 </sect2> -
chapter06/libtool-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Libtool by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=/usr && </userinput>7 <userinput>make &&</userinput> 8 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=/usr && 7 make && 8 make install</userinput></screen></para> 9 9 10 10 </sect2> -
chapter06/lilo-inst.xml
r2443baa r4d6fc2da 10 10 <para>Install Lilo by running the following commands:</para> 11 11 12 <para><screen><userinput>make && </userinput>13 <userinput>make install</userinput></screen></para>12 <para><screen><userinput>make && 13 make install</userinput></screen></para> 14 14 15 15 <para>It appears that compilation of this package fails on certain machines -
chapter06/m4-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install M4 by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=/usr && </userinput>7 <userinput>make &&</userinput> 8 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=/usr && 7 make && 8 make install</userinput></screen></para> 9 9 10 10 </sect2> -
chapter06/make-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Make by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=/usr && </userinput>7 <userinput>make &&</userinput> 8 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=/usr && 7 make && 8 make install</userinput></screen></para> 9 9 10 10 </sect2> -
chapter06/makedev-inst.xml
r2443baa r4d6fc2da 7 7 <para>Create the device files by running the following commands:</para> 8 8 9 <para><screen><userinput>cp MAKEDEV-&makedev-version; /dev/MAKEDEV && </userinput>10 <userinput>cd /dev &&</userinput> 11 <userinput>chmod 754 MAKEDEV</userinput></screen></para>9 <para><screen><userinput>cp MAKEDEV-&makedev-version; /dev/MAKEDEV && 10 cd /dev && 11 chmod 754 MAKEDEV</userinput></screen></para> 12 12 13 13 <para>Now, depending on whether you are going to use devpts or not, you -
chapter06/man-inst.xml
r2443baa r4d6fc2da 4 4 <para>Run the following commands to install man:</para> 5 5 6 <para><screen><userinput>for i in configure src/Makefile.in src/makewhatis.sh </userinput>7 <userinput>do</userinput> 8 <userinput> cp $i $i.backup &&</userinput> 9 <userinput> sed 's/gawk/awk/g' $i > tmp~ &&</userinput> 10 <userinput> mv tmp~ $i</userinput> 11 <userinput>done &&</userinput> 12 <userinput>chmod 755 configure &&</userinput> 13 <userinput>./configure -default &&</userinput> 14 <userinput>make &&</userinput> 15 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>for i in configure src/Makefile.in src/makewhatis.sh 7 do 8 cp $i $i.backup && 9 sed 's/gawk/awk/g' $i > tmp~ && 10 mv tmp~ $i 11 done && 12 chmod 755 configure && 13 ./configure -default && 14 make && 15 make install</userinput></screen></para> 16 16 17 17 <para>You may want to take a look at the man hint at <ulink -
chapter06/manpages-inst.xml
r2443baa r4d6fc2da 5 5 Install Man-pages by running the following commands:</para> 6 6 7 <para><screen><userinput>patch -Np1 -i ../man-pages-&man-pages-version;.patch && </userinput>8 <userinput>make install</userinput></screen></para>7 <para><screen><userinput>patch -Np1 -i ../man-pages-&man-pages-version;.patch && 8 make install</userinput></screen></para> 9 9 10 10 </sect2> -
chapter06/mawk-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Mawk by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure && </userinput>7 <userinput>make &&</userinput> 8 <userinput>make BINDIR=/usr/bin \</userinput> 9 <userinput> MANDIR=/usr/share/man/man1 install &&</userinput> 10 <userinput>cd /usr/bin &&</userinput> 11 <userinput>ln -sf mawk awk</userinput></screen></para>6 <para><screen><userinput>./configure && 7 make && 8 make BINDIR=/usr/bin \ 9 MANDIR=/usr/share/man/man1 install && 10 cd /usr/bin && 11 ln -sf mawk awk</userinput></screen></para> 12 12 13 13 </sect2> -
chapter06/modutils-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Modutils by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure && </userinput>7 <userinput>make &&</userinput> 8 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>./configure && 7 make && 8 make install</userinput></screen></para> 9 9 10 10 </sect2> -
chapter06/ncurses-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Ncurses by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=/usr --libdir=/lib \ </userinput>7 <userinput> --with-shared --disable-termcap &&</userinput> 8 <userinput>make &&</userinput> 9 <userinput>make install &&</userinput> 10 <userinput>cd /lib &&</userinput> 11 <userinput>mv *.a /usr/lib &&</userinput> 12 <userinput>chmod 755 *.5.2 &&</userinput> 13 <userinput>cd /usr/lib &&</userinput> 14 <userinput>ln -sf libncurses.a libcurses.a &&</userinput> 15 <userinput>ln -sf ../../lib/libncurses.so &&</userinput> 16 <userinput>ln -sf ../../lib/libcurses.so &&</userinput> 17 <userinput>ln -sf ../../lib/libform.so &&</userinput> 18 <userinput>ln -sf ../../lib/libpanel.so &&</userinput> 19 <userinput>ln -sf ../../lib/libmenu.so</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=/usr --libdir=/lib \ 7 --with-shared --disable-termcap && 8 make && 9 make install && 10 cd /lib && 11 mv *.a /usr/lib && 12 chmod 755 *.5.2 && 13 cd /usr/lib && 14 ln -sf libncurses.a libcurses.a && 15 ln -sf ../../lib/libncurses.so && 16 ln -sf ../../lib/libcurses.so && 17 ln -sf ../../lib/libform.so && 18 ln -sf ../../lib/libpanel.so && 19 ln -sf ../../lib/libmenu.so</userinput></screen></para> 20 20 </sect2> 21 21 -
chapter06/netkitbase-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Netkit-base by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure && </userinput>7 <userinput>make &&</userinput> 8 <userinput>make install &&</userinput> 9 <userinput>cd etc.sample &&</userinput> 10 <userinput>cp services protocols /etc</userinput></screen></para>6 <para><screen><userinput>./configure && 7 make && 8 make install && 9 cd etc.sample && 10 cp services protocols /etc</userinput></screen></para> 11 11 12 12 <para>There are other files in the <filename -
chapter06/nettools-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Net-tools by running the following commands:</para> 5 5 6 <para><screen><userinput>make && </userinput>7 <userinput>make update</userinput></screen></para>6 <para><screen><userinput>make && 7 make update</userinput></screen></para> 8 8 9 9 </sect2> -
chapter06/patch-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Patch by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=/usr && </userinput>7 <userinput>make &&</userinput> 8 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=/usr && 7 make && 8 make install</userinput></screen></para> 9 9 10 10 </sect2> -
chapter06/perl-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Perl by running the following commands:</para> 5 5 6 <para><screen><userinput>./Configure -Dprefix=/usr && </userinput>7 <userinput>make &&</userinput> 8 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>./Configure -Dprefix=/usr && 7 make && 8 make install</userinput></screen></para> 9 9 10 10 <para>If you don't want to answer all those questions Perl asks, you can … … 14 14 to perl as well. The commands with these parameters included will be:</para> 15 15 16 <para><screen><userinput>./Configure -Dprefix=/usr -d -e && </userinput>17 <userinput>make &&</userinput> 18 <userinput>make install</userinput></screen></para>16 <para><screen><userinput>./Configure -Dprefix=/usr -d -e && 17 make && 18 make install</userinput></screen></para> 19 19 20 20 </sect2> -
chapter06/procinfo-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Procinfo by running the following commands:</para> 5 5 6 <para><screen><userinput>make LDLIBS=-lncurses && </userinput>7 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>make LDLIBS=-lncurses && 7 make install</userinput></screen></para> 8 8 9 9 </sect2> -
chapter06/procps-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Procps by running the following commands:</para> 5 5 6 <para><screen><userinput>make && </userinput>7 <userinput>make XSCPT='' install &&</userinput> 8 <userinput>mv /usr/bin/kill /bin</userinput></screen></para>6 <para><screen><userinput>make && 7 make XSCPT='' install && 8 mv /usr/bin/kill /bin</userinput></screen></para> 9 9 10 10 </sect2> -
chapter06/psmisc-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Psmisc by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=/usr --exec-prefix=/ && </userinput>7 <userinput>make &&</userinput> 8 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=/usr --exec-prefix=/ && 7 make && 8 make install</userinput></screen></para> 9 9 10 10 <para>psmisc installs the … … 24 24 symlink by running:</para> 25 25 26 <para><screen><userinput>cd /bin </userinput>27 <userinput>ln -s killall pidof</userinput></screen></para>26 <para><screen><userinput>cd /bin 27 ln -s killall pidof</userinput></screen></para> 28 28 29 29 </sect2> -
chapter06/reiserfs-inst.xml
r2443baa r4d6fc2da 6 6 following commands:</para> 7 7 8 <para><screen><userinput>./configure --mandir=/usr/share/man & &</userinput>9 <userinput>make &&</userinput> 10 <userinput>make install</userinput></screen></para>8 <para><screen><userinput>./configure --mandir=/usr/share/man && 9 make && 10 make install</userinput></screen></para> 11 11 12 12 </sect2> -
chapter06/sed-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Sed by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=/usr --bindir=/bin && </userinput>7 <userinput>make &&</userinput> 8 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=/usr --bindir=/bin && 7 make && 8 make install</userinput></screen></para> 9 9 10 10 </sect2> -
chapter06/shadowpwd-inst.xml
r2443baa r4d6fc2da 10 10 following commands:</para> 11 11 12 <para><screen><userinput>cp src/useradd.c src/useradd.c.backup && </userinput>13 <userinput>sed 's/\(.*\) (nflg || \(.*\))\(.*\)/\1\2\3/' \</userinput> 14 <userinput> src/useradd.c > tmp~ &&</userinput> 15 <userinput>mv tmp~ src/useradd.c &&</userinput> 16 <userinput>./configure --prefix=/usr &&</userinput> 17 <userinput>make &&</userinput> 18 <userinput>make install &&</userinput> 19 <userinput>cd etc &&</userinput> 20 <userinput>cp limits login.access /etc &&</userinput> 21 <userinput>sed 's%/var/spool/mail%/var/mail%' login.defs.linux > /etc/login.defs &&</userinput> 22 <userinput>cd /lib &&</userinput> 23 <userinput>mv libshadow.a /usr/lib &&</userinput> 24 <userinput>mv libshadow.la /usr/lib &&</userinput> 25 <userinput>ln -sf libshadow.so.0 libshadow.so &&</userinput> 26 <userinput>cd /usr/lib &&</userinput> 27 <userinput>ln -sf ../../lib/libshadow.so</userinput></screen></para>12 <para><screen><userinput>cp src/useradd.c src/useradd.c.backup && 13 sed 's/\(.*\) (nflg || \(.*\))\(.*\)/\1\2\3/' \ 14 src/useradd.c > tmp~ && 15 mv tmp~ src/useradd.c && 16 ./configure --prefix=/usr && 17 make && 18 make install && 19 cd etc && 20 cp limits login.access /etc && 21 sed 's%/var/spool/mail%/var/mail%' login.defs.linux > /etc/login.defs && 22 cd /lib && 23 mv libshadow.a /usr/lib && 24 mv libshadow.la /usr/lib && 25 ln -sf libshadow.so.0 libshadow.so && 26 cd /usr/lib && 27 ln -sf ../../lib/libshadow.so</userinput></screen></para> 28 28 29 29 </sect2> -
chapter06/shellutils-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Shellutils by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=/usr && </userinput>7 <userinput>make &&</userinput> 8 <userinput>make install &&</userinput> 9 <userinput>cd /usr/bin &&</userinput> 10 <userinput>mv date echo false pwd stty /bin &&</userinput> 11 <userinput>mv su true uname hostname /bin &&</userinput> 12 <userinput>mv chroot ../sbin</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=/usr && 7 make && 8 make install && 9 cd /usr/bin && 10 mv date echo false pwd stty /bin && 11 mv su true uname hostname /bin && 12 mv chroot ../sbin</userinput></screen></para> 13 13 14 14 </sect2> -
chapter06/sysklogd-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Sysklogd by running the following commands:</para> 5 5 6 <para><screen><userinput>make && </userinput>7 <userinput>make install</userinput></screen></para>6 <para><screen><userinput>make && 7 make install</userinput></screen></para> 8 8 9 9 </sect2> -
chapter06/sysvinit-inst.xml
r2443baa r4d6fc2da 12 12 commands. If you don't want to change it, skip it.</para> 13 13 14 <para><screen><userinput>cp src/init.c src/init.c.backup && </userinput>15 <userinput>sed 's/\(.*\)\(Sending processes\)\(.*\)/\1\2 started by init\3/' \</userinput> 16 <userinput> src/init.c > tmp~ &&</userinput> 17 <userinput>mv tmp~ src/init.c</userinput></screen></para>14 <para><screen><userinput>cp src/init.c src/init.c.backup && 15 sed 's/\(.*\)\(Sending processes\)\(.*\)/\1\2 started by init\3/' \ 16 src/init.c > tmp~ && 17 mv tmp~ src/init.c</userinput></screen></para> 18 18 19 19 <para>Install Sysvinit by running the following commands:</para> 20 20 21 <para><screen><userinput>make -C src && </userinput>22 <userinput>make -C src install</userinput></screen></para>21 <para><screen><userinput>make -C src && 22 make -C src install</userinput></screen></para> 23 23 24 24 </sect2> -
chapter06/tar-inst.xml
r2443baa r4d6fc2da 15 15 directory:</para> 16 16 17 <para><screen><userinput>./configure --prefix=/usr --libexecdir=/usr/bin \ </userinput>18 <userinput> --bindir=/bin &&</userinput> 19 <userinput>make &&</userinput> 20 <userinput>make install</userinput></screen></para>17 <para><screen><userinput>./configure --prefix=/usr --libexecdir=/usr/bin \ 18 --bindir=/bin && 19 make && 20 make install</userinput></screen></para> 21 21 22 22 </sect2> -
chapter06/texinfo-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Texinfo by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=/usr && </userinput>7 <userinput>make &&</userinput> 8 <userinput>make install &&</userinput> 9 <userinput>make TEXMF=/usr/share/texmf install-tex</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=/usr && 7 make && 8 make install && 9 make TEXMF=/usr/share/texmf install-tex</userinput></screen></para> 10 10 11 11 </sect2> -
chapter06/textutils-inst.xml
r2443baa r4d6fc2da 4 4 <para>Install Textutils by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=/usr && </userinput>7 <userinput>make &&</userinput> 8 <userinput>make install &&</userinput> 9 <userinput>mv /usr/bin/cat /bin</userinput></screen></para>6 <para><screen><userinput>./configure --prefix=/usr && 7 make && 8 make install && 9 mv /usr/bin/cat /bin</userinput></screen></para> 10 10 11 11 </sect2> -
chapter06/utillinux-inst.xml
r2443baa r4d6fc2da 6 6 util-linux package, FHS-compliant, run the following.</para> 7 7 8 <para><screen><userinput>cp hwclock/hwclock.c hwclock/hwclock.c.backup && </userinput>9 <userinput>sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \</userinput> 10 <userinput> hwclock/hwclock.c > tmp~ &&</userinput> 11 <userinput>mv tmp~ hwclock/hwclock.c &&</userinput> 12 <userinput>mkdir -p /var/lib/hwclock</userinput></screen></para>8 <para><screen><userinput>cp hwclock/hwclock.c hwclock/hwclock.c.backup && 9 sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \ 10 hwclock/hwclock.c > tmp~ && 11 mv tmp~ hwclock/hwclock.c && 12 mkdir -p /var/lib/hwclock</userinput></screen></para> 13 13 14 14 </sect2> … … 19 19 <para>Install Util-Linux by running the following commands:</para> 20 20 21 <para><screen><userinput>./configure && </userinput>22 <userinput>make HAVE_SLN=yes ADD_RAW=yes &&</userinput> 23 <userinput>make HAVE_SLN=yes ADD_RAW=yes install</userinput></screen></para>21 <para><screen><userinput>./configure && 22 make HAVE_SLN=yes ADD_RAW=yes && 23 make HAVE_SLN=yes ADD_RAW=yes install</userinput></screen></para> 24 24 25 25 </sect2> -
chapter06/vim-inst.xml
r2443baa r4d6fc2da 10 10 <para>Install Vim by running the following commands:</para> 11 11 12 <para><screen><userinput>sed '/shUntil\|link shRepeat/{ </userinput>13 <userinput> /shUntil/N</userinput> 14 <userinput> /^/i\</userinput> 15 <userinput> if exists("b:is_kornshell") || exists("b:is_bash")</userinput> 16 <userinput> p</userinput> 17 <userinput> /$/i\</userinput> 18 <userinput> endif</userinput> 19 <userinput> d</userinput> 20 <userinput> }' runtime/syntax/sh.vim > sh.vim.fixed &&</userinput> 21 <userinput>mv sh.vim.fixed runtime/syntax/sh.vim &&</userinput> 22 <userinput>./configure --prefix=/usr &&</userinput> 23 <userinput>make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" &&</userinput> 24 <userinput>make install &&</userinput> 25 <userinput>cd /usr/bin &&</userinput> 26 <userinput>ln -sf vim vi</userinput></screen></para>12 <para><screen><userinput>sed '/shUntil\|link shRepeat/{ 13 /shUntil/N 14 /^/i\ 15 if exists("b:is_kornshell") || exists("b:is_bash") 16 p 17 /$/i\ 18 endif 19 d 20 }' runtime/syntax/sh.vim > sh.vim.fixed && 21 mv sh.vim.fixed runtime/syntax/sh.vim && 22 ./configure --prefix=/usr && 23 make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" && 24 make install && 25 cd /usr/bin && 26 ln -sf vim vi</userinput></screen></para> 27 27 28 28 <para>If you plan on installing the X Window system on your LFS … … 42 42 instead of the one presented above:</para> 43 43 44 <para><screen><userinput>sed '/shUntil\|link shRepeat/{</userinput> 45 <userinput> /shUntil/N</userinput> 46 <userinput> /^/i\</userinput> 47 <userinput> if exists("b:is_kornshell") || 48 exists("b:is_bash")</userinput> 49 <userinput> p</userinput> 50 <userinput> /$/i\</userinput> 51 <userinput> endif</userinput> 52 <userinput> d</userinput> 53 <userinput> }' runtime/syntax/sh.vim > sh.vim.fixed 54 &&</userinput> 55 <userinput>mv sh.vim.fixed runtime/syntax/sh.vim &&</userinput> 56 <userinput>./configure --prefix=/usr --localstatedir=/var/lib/vim &&</userinput> 57 <userinput>make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" 58 &&</userinput> 59 <userinput>make install &&</userinput> 60 <userinput>cd /usr/bin &&</userinput> 61 <userinput>ln -sf vim vi</userinput></screen></para> 44 <para><screen><userinput>sed '/shUntil\|link shRepeat/{ 45 /shUntil/N 46 /^/i\ 47 if exists("b:is_kornshell") || exists("b:is_bash") 48 p 49 /$/i\ 50 endif 51 d 52 }' runtime/syntax/sh.vim > sh.vim.fixed && 53 mv sh.vim.fixed runtime/syntax/sh.vim && 54 ./configure --prefix=/usr --localstatedir=/var/lib/vim && 55 make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" && 56 make install && 57 cd /usr/bin && 58 ln -sf vim vi</userinput></screen></para> 62 59 63 60 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.