- Timestamp:
- 05/02/2002 08:15:02 PM (22 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, 12.2, 12.2-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, 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/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- f109c01
- Parents:
- 9ef08736
- Location:
- chapter05
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/bash-exp.xml
r9ef08736 r3f12743 29 29 there.</para> 30 30 31 <para><userinput>ln -sf bash sh:</userinput> This command creates the sh32 symlink that points to bash. Most scripts run themselves via 'sh' 33 (invoked by the #!/bin/sh as the first line in the scripts) which 34 in vokes a special bash mode. Bash will then behave (as closely as35 possible) as the original Bourne shell.</para>31 <para><userinput>ln -sf bash $LFS/bin/sh:</userinput> This command creates 32 the <filename class="symlink">sh</filename> symlink that points to bash. Most 33 scripts run themselves via 'sh' (invoked by the #!/bin/sh as the first line 34 in the scripts) which invokes a special bash mode. Bash will then behave 35 (as closely as possible) as the original Bourne shell.</para> 36 36 37 37 <para>The <userinput>&&</userinput>'s at the end of every line cause -
chapter05/bash-inst.xml
r9ef08736 r3f12743 16 16 following commands as user root:</para> 17 17 18 <para><screen><userinput>cd /usr/lib && 19 ln -s libncurses.a libcurses.a</userinput></screen></para> 18 <para><screen><userinput>ln -s libncurses.a /usr/lib/libcurses.a</userinput></screen></para> 20 19 21 20 <para>Now we can continue. Install Bash by running the following 22 21 commands:</para> 23 22 24 <para><screen><userinput>./configure --enable-static-link --prefix=$LFS/usr\25 --bindir=$LFS/bin --with-curses &&23 <para><screen><userinput>./configure --enable-static-link \ 24 --prefix=$LFS/usr --bindir=$LFS/bin --with-curses && 26 25 make && 27 26 make install && 28 cd $LFS/bin && 29 ln -sf bash sh</userinput></screen></para> 27 ln -sf bash $LFS/bin/sh</userinput></screen></para> 30 28 31 29 <para>If the make install phase ends with something along the lines of</para> -
chapter05/bzip2-inst.xml
r9ef08736 r3f12743 6 6 <para><screen><userinput>make CC="gcc -static" && 7 7 make PREFIX=$LFS/usr install && 8 cd $LFS/usr/bin && 9 mv bzcat bunzip2 bzip2 bzip2recover bzless bzmore $LFS/bin</userinput></screen></para> 8 mv $LFS/usr/bin/{bzcat,bunzip2,bzip2,bzip2recover,bzless,bzmore} $LFS/bin</userinput></screen></para> 10 9 11 10 <para>Although it's not strictly a part of a basic LFS system it's worth -
chapter05/creatingdirs.xml
r9ef08736 r3f12743 11 11 mkdir -p bin boot dev/pts etc/opt home lib mnt proc root sbin tmp var opt && 12 12 for dirname in $LFS/usr $LFS/usr/local 13 do14 mkdir $dirname15 cd $dirname16 mkdir bin etc include lib sbin share src17 ln -s share/man18 ln -s share/doc19 ln -s share/info20 cd $dirname/share21 mkdir dict doc info locale man nls misc terminfo zoneinfo22 cd $dirname/share/man23 mkdir man{1,2,3,4,5,6,7,8}13 do 14 mkdir $dirname 15 cd $dirname 16 mkdir bin etc include lib sbin share src 17 ln -s share/man 18 ln -s share/doc 19 ln -s share/info 20 cd $dirname/share 21 mkdir dict doc info locale man nls misc terminfo zoneinfo 22 cd $dirname/share/man 23 mkdir man{1,2,3,4,5,6,7,8} 24 24 done && 25 25 cd $LFS/var && -
chapter05/fileutils-exp.xml
r9ef08736 r3f12743 8 8 <para><userinput>cp lib/Makefile.in lib/Makefile.in.backup && 9 9 sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \ 10 -e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \11 lib/Makefile.in.backup > lib/Makefile.in:</userinput>10 -e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \ 11 lib/Makefile.in.backup > lib/Makefile.in:</userinput> 12 12 This is used to fix a problem with building fileutils statically on glibc 2.2.3 13 13 systems. If this isn't done, then there is the possibility of all of the -
chapter05/fileutils-inst.xml
r9ef08736 r3f12743 24 24 <para><screen><userinput>cp lib/Makefile.in lib/Makefile.in.backup && 25 25 sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \ 26 -e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \27 lib/Makefile.in.backup > lib/Makefile.in</userinput></screen></para>26 -e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \ 27 lib/Makefile.in.backup > lib/Makefile.in</userinput></screen></para> 28 28 29 29 <para>Install Fileutils by running the following commands:</para> 30 30 31 31 <para><screen><userinput>./configure --disable-nls \ 32 --prefix=$LFS/usr --bindir=$LFS/bin &&32 --prefix=$LFS/usr --bindir=$LFS/bin && 33 33 make LDFLAGS=-static && 34 34 make install && 35 cd $LFS/usr/bin && 36 ln -sf ../../bin/install</userinput></screen></para> 35 ln -sf ../../bin/install $LFS/usr/bin</userinput></screen></para> 37 36 38 37 <para>Once you have installed Fileutils, you can test whether the -
chapter05/gawk-inst.xml
r9ef08736 r3f12743 17 17 sed -e '/^datadir/s/awk/gawk/' \ 18 18 -e '/^libexecdir/s%/awk%%' awklib/Makefile.in.backup \ 19 & gt; awklib/Makefile.in &&19 > awklib/Makefile.in && 20 20 CPPFLAGS=-Dre_max_failures=re_max_failures2 \ 21 21 ./configure --prefix=$LFS/usr --disable-nls \ 22 --libexecdir=$LFS/usr/bin &&22 --libexecdir=$LFS/usr/bin && 23 23 make LDFLAGS=-static && 24 24 make install</userinput></screen></para> -
chapter05/gcc-inst.xml
r9ef08736 r3f12743 22 22 make BOOT_LDFLAGS=-static bootstrap && 23 23 make prefix=$LFS/usr install && 24 cd $LFS/lib && 25 ln -sf ../usr/bin/cpp && 26 cd $LFS/usr/lib && 27 ln -sf ../bin/cpp && 28 cd $LFS/usr/bin && 29 ln -sf gcc cc && 24 ln -sf ../usr/bin/cpp $LFS/lib && 25 ln -sf ../bin/cpp $LFS/usr/lib && 26 ln -sf gcc $LFS/usr/bin/cc && 30 27 rmdir $LFS/usr/*-gnu/include && 31 28 rmdir $LFS/usr/*-gnu</userinput></screen></para> -
chapter05/grep-inst.xml
r9ef08736 r3f12743 6 6 <para><screen><userinput>CPPFLAGS=-Dre_max_failures=re_max_failures2 \ 7 7 ./configure --prefix=$LFS/usr --bindir=$LFS/bin \ 8 --disable-nls --disable-perl-regexp &&8 --disable-nls --disable-perl-regexp && 9 9 make LDFLAGS=-static && 10 10 make install</userinput></screen></para> -
chapter05/shellutils-inst.xml
r9ef08736 r3f12743 4 4 <para>Install Sh-utils by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls && 6 <para><screen><userinput>./configure --prefix=$LFS/usr \ 7 --disable-nls && 7 8 make LDFLAGS=-static && 8 9 make install && 9 cd $LFS/usr/bin && 10 mv basename date echo false hostname $LFS/bin && 11 mv pwd sleep stty test true uname $LFS/bin && 12 mv chroot ../sbin</userinput></screen></para> 10 mv $LFS/usr/bin/{basename,date,echo,false,hostname} $LFS/bin && 11 mv $LFS/usr/bin/{pwd,sleep,stty,test,true,uname} $LFS/bin && 12 mv $LFS/usr/bin/chroot $LFS/usr/sbin</userinput></screen></para> 13 13 14 14 <para>During the make install stage you will see the following warning:</para> -
chapter05/tar-inst.xml
r9ef08736 r3f12743 13 13 <para>Install Tar by running the following commands:</para> 14 14 15 <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls \ 16 --libexecdir=$LFS/usr/bin --bindir=$LFS/bin && 15 <para><screen><userinput>./configure --prefix=$LFS/usr \ 16 --disable-nls --libexecdir=$LFS/usr/bin \ 17 --bindir=$LFS/bin && 17 18 make LDFLAGS=-static && 18 19 make install</userinput></screen></para> -
chapter05/texinfo-inst.xml
r9ef08736 r3f12743 4 4 <para>Install Texinfo by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls && 6 <para><screen><userinput>./configure --prefix=$LFS/usr \ 7 --disable-nls && 7 8 make LDFLAGS=-static && 8 9 make install</userinput></screen></para> -
chapter05/textutils-inst.xml
r9ef08736 r3f12743 4 4 <para>Install Textutils by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls && 6 <para><screen><userinput>./configure --prefix=$LFS/usr \ 7 --disable-nls && 7 8 make LDFLAGS=-static && 8 9 make install && 9 mv $LFS/usr/bin/ cat $LFS/usr/bin/head$LFS/bin</userinput></screen></para>10 mv $LFS/usr/bin/{cat,head} $LFS/bin</userinput></screen></para> 10 11 11 12 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.