- Timestamp:
- 05/25/2002 12:19:47 AM (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:
- 1987d72
- Parents:
- 1f61f42
- Location:
- chapter05
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/bash-inst.xml
r1f61f42 r5e2cb65 22 22 23 23 <para><screen><userinput>./configure --enable-static-link \ 24 --prefix=$LFS/ usr --bindir=$LFS/bin--with-curses &&24 --prefix=$LFS/static --with-curses && 25 25 make && 26 make install && 27 ln -sf bash $LFS/bin/sh</userinput></screen></para> 26 make install</userinput></screen></para> 28 27 29 28 <para>If the make install phase ends with something along the lines of</para> … … 47 46 <para>When we tested it with the latest Debian version, the last two 48 47 commands were executed because the install process didn't return with a 49 value larger than 0. But you would do good to check if you have the 50 <filename class="symlink">$LFS/bin/sh</filename> symlink on your LFS 51 partition. If not, run the last two commands manually now.</para> 48 value larger than 0.</para> 52 49 53 50 </sect2> -
chapter05/binutils-inst.xml
r1f61f42 r5e2cb65 14 14 <para><screen><userinput>mkdir ../binutils-build && 15 15 cd ../binutils-build && 16 ../binutils-&binutils-version;/configure --prefix=$LFS/ usr--disable-nls &&17 make tooldir=$LFS/ usrLDFLAGS=-all-static &&18 make tooldir=$LFS/ usrinstall</userinput></screen></para>16 ../binutils-&binutils-version;/configure --prefix=$LFS/static --disable-nls && 17 make tooldir=$LFS/static LDFLAGS=-all-static && 18 make tooldir=$LFS/static install</userinput></screen></para> 19 19 20 20 </sect2> -
chapter05/bzip2-inst.xml
r1f61f42 r5e2cb65 5 5 6 6 <para><screen><userinput>make CC="gcc -static" && 7 make PREFIX=$LFS/usr install && 8 mv $LFS/usr/bin/{bzcat,bunzip2,bzip2,bzip2recover} $LFS/bin && 9 cp $LFS/usr/bin/{bzless,bzmore} $LFS/bin && 10 rm $LFS/usr/bin/{bzless,bzmore}</userinput></screen></para> 7 make PREFIX=$LFS/static install</userinput></screen></para> 11 8 12 9 <para>Although it's not strictly a part of a basic LFS system it's worth -
chapter05/chapter05.xml
r1f61f42 r5e2cb65 5 5 &c5-introduction; 6 6 &c5-whystatic; 7 &c5-creatingstaticdir; 7 8 &c5-installasuser; 8 &c5-creatingdirs;9 9 &c5-bash; 10 10 &c5-binutils; … … 12 12 &c5-diffutils; 13 13 &c5-fileutils; 14 &c5-findutils; 14 15 &c5-gawk; 15 16 &c5-gcc; 16 17 &c5-grep; 17 18 &c5-gzip; 18 &c5-kernel;19 19 &c5-make; 20 20 &c5-patch; … … 24 24 &c5-texinfo; 25 25 &c5-textutils; 26 &c5-pwdgroup; 27 &c5-proc; 26 &c5-utillinux; 28 27 29 28 </chapter> -
chapter05/diffutils-inst.xml
r1f61f42 r5e2cb65 5 5 6 6 <para><screen><userinput>CPPFLAGS=-Dre_max_failures=re_max_failures2 \ 7 ./configure --prefix=$LFS/ usr--disable-nls &&7 ./configure --prefix=$LFS/static --disable-nls && 8 8 make LDFLAGS=-static && 9 9 make install</userinput></screen></para> -
chapter05/fileutils-inst.xml
r1f61f42 r5e2cb65 29 29 <para>Install Fileutils by running the following commands:</para> 30 30 31 <para><screen><userinput>./configure --disable-nls \ 32 --prefix=$LFS/usr --bindir=$LFS/bin && 31 <para><screen><userinput>./configure --disable-nls --prefix=$LFS/static && 33 32 make LDFLAGS=-static && 34 make install && 35 ln -sf ../../bin/install $LFS/usr/bin</userinput></screen></para> 33 make install</userinput></screen></para> 36 34 37 35 <para>Once you have installed Fileutils, you can test whether the -
chapter05/gawk-inst.xml
r1f61f42 r5e2cb65 19 19 > awklib/Makefile.in && 20 20 CPPFLAGS=-Dre_max_failures=re_max_failures2 \ 21 ./configure --prefix=$LFS/ usr--disable-nls \22 --libexecdir=$LFS/ usr/bin &&21 ./configure --prefix=$LFS/static --disable-nls \ 22 --libexecdir=$LFS/static/bin && 23 23 make LDFLAGS=-static && 24 24 make install</userinput></screen></para> -
chapter05/gcc-inst.xml
r1f61f42 r5e2cb65 18 18 mkdir ../gcc-build && 19 19 cd ../gcc-build && 20 ../gcc-&gcc-version;/configure --prefix=/ usr--enable-languages=c,c++ \20 ../gcc-&gcc-version;/configure --prefix=/static --enable-languages=c,c++ \ 21 21 --disable-nls --disable-shared --enable-threads=posix && 22 22 make BOOT_LDFLAGS=-static bootstrap && 23 make prefix=$LFS/usr install && 24 ln -sf ../usr/bin/cpp $LFS/lib && 25 ln -sf ../bin/cpp $LFS/usr/lib && 26 ln -sf gcc $LFS/usr/bin/cc && 27 rmdir $LFS/usr/*-gnu/include && 28 rmdir $LFS/usr/*-gnu</userinput></screen></para> 23 make prefix=$LFS/static install && 24 ln -s gcc $LFS/static/bin/cc && 25 rmdir $LFS/static/*-gnu/include && 26 rmdir $LFS/static/*-gnu</userinput></screen></para> 29 27 30 28 </sect2> -
chapter05/grep-inst.xml
r1f61f42 r5e2cb65 5 5 6 6 <para><screen><userinput>CPPFLAGS=-Dre_max_failures=re_max_failures2 \ 7 ./configure --prefix=$LFS/ usr --bindir=$LFS/bin\8 --disable- nls --disable-perl-regexp &&7 ./configure --prefix=$LFS/static --disable-nls \ 8 --disable-perl-regexp && 9 9 make LDFLAGS=-static && 10 10 make install</userinput></screen></para> -
chapter05/gzip-inst.xml
r1f61f42 r5e2cb65 4 4 <para>Install Gzip by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=$LFS/ usr&&6 <para><screen><userinput>./configure --prefix=$LFS/static && 7 7 make LDFLAGS=-static && 8 make install && 9 cp $LFS/usr/bin/{gunzip,gzip} $LFS/bin && 10 rm $LFS/usr/bin/{gunzip,gzip}</userinput></screen></para> 8 make install</userinput></screen></para> 11 9 12 10 </sect2> -
chapter05/installasuser.xml
r1f61f42 r5e2cb65 17 17 passwd lfs</userinput></screen></para> 18 18 19 <para>Now it's time to change the permissions on your LFS partitions20 so user "lfs" will have write access to it. Run the following command 21 as root to change the ownership of the LFS partition to user "lfs":</para>19 <para>Now we need to give proper permissions to the <filename 20 class="directory">$LFS/static</filename> directory so user "lfs" can write 21 to it:</para> 22 22 23 <para><screen><userinput>chown -R lfs $LFS </userinput></screen></para>23 <para><screen><userinput>chown -R lfs $LFS/static</userinput></screen></para> 24 24 25 25 <para>Now you can login as user "lfs". You can do this two ways: either -
chapter05/introduction.xml
r1f61f42 r5e2cb65 19 19 compiler, and you're going to need a shell to install a shell and that 20 20 compiler.</para> 21 22 <para>All the files from this chapter will be installed under the <filename 23 class="directory">$LFS/static</filename> directory. By doing it this way, 24 we keep the installation from this chapter seperate from the final 25 installation in the next chapter. Everything done here is only temporarily 26 so we don't want it to pollute the to-be LFS system.</para> 21 27 22 28 <para>The key to learning what makes Linux tick is to know exactly what packages -
chapter05/make-inst.xml
r1f61f42 r5e2cb65 4 4 <para>Install Make 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/static --disable-nls && 7 7 make LDFLAGS=-static && 8 8 make install</userinput></screen></para> … … 10 10 <para>During the make install phase you will see this warning:</para> 11 11 12 <blockquote><screen>chgrp: changing group of `/mnt/lfs/ usr/bin/make': Operation not permitted13 /mnt/lfs/ usr/bin/make needs to be owned by group kmem and setgid;12 <blockquote><screen>chgrp: changing group of `/mnt/lfs/static/bin/make': Operation not permitted 13 /mnt/lfs/static/bin/make needs to be owned by group kmem and setgid; 14 14 otherwise the `-l' option will probably not work. You may need special 15 privileges to complete the installation of /mnt/lfs/ usr/bin/make.</screen></blockquote>15 privileges to complete the installation of /mnt/lfs/static/bin/make.</screen></blockquote> 16 16 17 17 <para>You can safely ignore this warning. make doesn't need to be owned by -
chapter05/patch-inst.xml
r1f61f42 r5e2cb65 5 5 6 6 <para><screen><userinput>CPPFLAGS=-D_GNU_SOURCE \ 7 ./configure --prefix=$LFS/ usr&&7 ./configure --prefix=$LFS/static && 8 8 make LDFLAGS=-static && 9 9 make install</userinput></screen></para> -
chapter05/sed-inst.xml
r1f61f42 r5e2cb65 5 5 6 6 <para><screen><userinput>CPPFLAGS=-Dre_max_failures=re_max_failures2 \ 7 ./configure --prefix=$LFS/ usr --bindir=$LFS/bin&&7 ./configure --prefix=$LFS/static && 8 8 make LDFLAGS=-static && 9 9 make install</userinput></screen></para> -
chapter05/shellutils-inst.xml
r1f61f42 r5e2cb65 4 4 <para>Install Sh-utils by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=$LFS/ usr\6 <para><screen><userinput>./configure --prefix=$LFS/static \ 7 7 --disable-nls && 8 8 make LDFLAGS=-static && 9 make install && 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> 9 make install</userinput></screen></para> 13 10 14 11 <para>During the make install stage you will see the following warning:</para> -
chapter05/tar-inst.xml
r1f61f42 r5e2cb65 13 13 <para>Install Tar by running the following commands:</para> 14 14 15 <para><screen><userinput>./configure --prefix=$LFS/usr \ 16 --disable-nls --libexecdir=$LFS/usr/bin \ 17 --bindir=$LFS/bin && 15 <para><screen><userinput>./configure --prefix=$LFS/static \ 16 --disable-nls --libexecdir=$LFS/static/bin && 18 17 make LDFLAGS=-static && 19 18 make install</userinput></screen></para> -
chapter05/texinfo-inst.xml
r1f61f42 r5e2cb65 4 4 <para>Install Texinfo by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=$LFS/ usr\6 <para><screen><userinput>./configure --prefix=$LFS/static \ 7 7 --disable-nls && 8 8 make LDFLAGS=-static && -
chapter05/textutils-inst.xml
r1f61f42 r5e2cb65 4 4 <para>Install Textutils by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=$LFS/ usr\6 <para><screen><userinput>./configure --prefix=$LFS/static \ 7 7 --disable-nls && 8 8 make LDFLAGS=-static && 9 make install && 10 mv $LFS/usr/bin/{cat,head} $LFS/bin</userinput></screen></para> 9 make install</userinput></screen></para> 11 10 12 11 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.