Changeset 3f12743
- 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, 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/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- f109c01
- Parents:
- 9ef08736
- Files:
-
- 41 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter01/changelog.xml
r9ef08736 r3f12743 27 27 28 28 </para></listitem> 29 30 <listitem><para>May 2nd, 2002 [gerard]: Chapter 06 - Procps: Changed the 31 two single quotes to two double quotes (the two single quotes can be 32 mistaken for one double quote which will cause an error).</para></listitem> 33 34 <listitem><para>May 2nd, 2002 [gerard]: Changed the 35 <userinput>cd dir && ln -sf</userinput> commands to one single command 36 (such as <userinput>ln -sf bash $LFS/bin/sh</userinput> Same goes for 37 <userinput>cd dir && mv/cp</userinput> constructions which are now replaced 38 with constructions like 39 <userinput>mv $LFS/usr/bin/{bzcat,bzip2} $LFS/bin</userinput></para></listitem> 29 40 30 41 <listitem><para>May 2nd, 2002 [markh]: Removed the "Removing old NSS -
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> -
chapter06/bash-inst.xml
r9ef08736 r3f12743 5 5 6 6 <para><screen><userinput>./configure --prefix=/usr --with-curses \ 7 --bindir=/bin &&7 --bindir=/bin && 8 8 make && 9 9 make install && 10 cd /bin && 11 ln -sf bash sh && 10 ln -sf bash /bin/sh && 12 11 exec /bin/bash --login</userinput></screen></para> 13 12 -
chapter06/bzip2-inst.xml
r9ef08736 r3f12743 11 11 ln -s libbz2.so.1.0 libbz2.so && 12 12 cp -a libbz2.so* /lib && 13 cd /usr/lib && 14 ln -sf ../../lib/libbz2.so && 15 cd /usr/bin && 16 rm bunzip2 bzcat bzip2 && 17 rm /bin/bzless /bin/bzmore && 18 mv bzip2recover bzless bzmore /bin && 19 cd /bin && 20 ln -sf bzip2 bunzip2 && 21 ln -sf bzip2 bzcat</userinput></screen></para> 13 ln -sf ../../lib/libbz2.so $LFS/usr/lib&& 14 rm /usr/bin/{bunzip2,bzcat,bzip2} && 15 rm /bin/{bzless,bzmore} && 16 mv /usr/bin/{bzip2recover,bzless,bzmore} /bin && 17 ln -sf bzip2 /bin/bunzip2 && 18 ln -sf bzip2 /bin/bzcat</userinput></screen></para> 22 19 23 20 -
chapter06/changingowner.xml
r9ef08736 r3f12743 7 7 Run the following commands to do so:</para> 8 8 9 <para><screen><userinput>cd / && 10 chown 0.0 . proc && 11 chown -R 0.0 bin boot dev etc home lib mnt opt root sbin tmp usr var</userinput></screen></para> 9 <para><screen><userinput>chown 0.0 / /proc && 10 chown -R 0.0 /{bin,boot,dev,etc,home,lib,mnt,opt,root,sbin,tmp,usr,var}</userinput></screen></para> 12 11 13 12 <para>Depending on the filesystem you created on the LFS partition, you may 14 13 have a /lost+found directory. If so, run:</para> 15 14 16 <para><screen><userinput>chown 0.0 lost+found</userinput></screen></para>15 <para><screen><userinput>chown 0.0 /lost+found</userinput></screen></para> 17 16 18 17 <para>These commands will change the ownership of the root partition and -
chapter06/chroot.xml
r9ef08736 r3f12743 20 20 present, such as CFLAGS or CXXFLAGS, you need to set them again.</para> 21 21 22 <para>The reason we do <userinput>cd $LFS</userinput> before running the23 <userinput>chroot</userinput> command is that older sh-utils packages24 have a chroot program which doesn't do the cd by itself, therefore25 meaning that we have to perform it manually. While this isn't an issue26 with most modern distributions, it does no harm anyways and ensures that27 the command works for everyone.</para>28 29 22 <para>Now that we are inside a chroot'ed environment, we can continue to 30 23 install all the basic system software. You have to make sure all the -
chapter06/chrootcmd.xml
r9ef08736 r3f12743 1 <userinput>cd $LFS && 2 chroot $LFS /usr/bin/env -i HOME=/root \ 3 TERM=$TERM /bin/bash --login</userinput> 1 <userinput>chroot $LFS /usr/bin/env -i HOME=/root \ 2 TERM=$TERM /bin/bash --login</userinput> -
chapter06/config-glibc.xml
r9ef08736 r3f12743 39 39 by running:</para> 40 40 41 <para><screen><userinput>cd /etc && 42 ln -sf ../usr/share/zoneinfo/<tzselect's output> localtime</userinput></screen></para> 41 <para><screen><userinput>ln -sf ../usr/share/zoneinfo/<tzselect's output> /etc/localtime</userinput></screen></para> 43 42 44 43 <para>tzselect's output can be something like <emphasis>EST5EDT</emphasis> or … … 47 46 <para>The symlink you'd create with that information would be:</para> 48 47 49 <para><screen><userinput>ln -sf ../usr/share/zoneinfo/EST5EDT localtime</userinput></screen></para>48 <para><screen><userinput>ln -sf ../usr/share/zoneinfo/EST5EDT /etc/localtime</userinput></screen></para> 50 49 51 50 <para>Or:</para> 52 51 53 <para><screen><userinput>ln -sf ../usr/share/zoneinfo/Canada/Eastern localtime </userinput></screen></para>52 <para><screen><userinput>ln -sf ../usr/share/zoneinfo/Canada/Eastern /etc/localtime </userinput></screen></para> 54 53 55 54 </sect2> -
chapter06/config-keyboard.xml
r9ef08736 r3f12743 9 9 symlink by running the following commands:</para> 10 10 11 <para><screen><userinput>cd /usr/share/kbd/keymaps && 12 ln -s <path/to/keymap> defkeymap.map.gz</userinput></screen></para> 11 <para><screen><userinput>ln -s <path/to/keymap> /usr/share/kbd/keymaps/defkeymap.map.gz</userinput></screen></para> 13 12 14 13 <para>Replace <path/to/keymap> with the your keyboard's map file. For 15 14 example, if you have a Dutch keyboard, you would run:</para> 16 15 17 <para><screen><userinput>ln -s i386/qwerty/nl.map.gz defkeymap.map.gz</userinput></screen></para>16 <para><screen><userinput>ln -s i386/qwerty/nl.map.gz /usr/share/kbd/keymaps/defkeymap.map.gz</userinput></screen></para> 18 17 19 18 <para>An second option to configure your keyboard's layout is to compile … … 31 30 32 31 <para><screen><userinput>loadkeys -m /usr/share/kbd/keymaps/defkeymap.map.gz > \ 33 /usr/src/linux/drivers/char/defkeymap.c</userinput></screen></para>32 /usr/src/linux/drivers/char/defkeymap.c</userinput></screen></para> 34 33 35 34 </sect2> -
chapter06/e2fsprogs-inst.xml
r9ef08736 r3f12743 7 7 cd ../e2fsprogs-build && 8 8 ../e2fsprogs-&e2fsprogs-version;/configure --prefix=/usr --with-root-prefix="" \ 9 --enable-elf-shlibs &&9 --enable-elf-shlibs && 10 10 make && 11 11 make install && -
chapter06/ed-inst.xml
r9ef08736 r3f12743 11 11 <para><screen><userinput>cp buf.c buf.c.backup && 12 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 &&13 sed '/.*\*mktemp.*/d' | \ 14 sed 's/.*if (mktemp.*/ sfd = mkstemp(sfn);\ 15 if ((sfd == -1) || (sfp = fopen (sfn, "w+")) == NULL)/' > buf.c && 16 16 ./configure --prefix=/usr && 17 17 make && -
chapter06/fileutils-inst.xml
r9ef08736 r3f12743 7 7 make && 8 8 make install && 9 cd /usr/bin && 10 ln -sf ../../bin/install</userinput></screen></para> 9 ln -sf ../../bin/install /usr/bin</userinput></screen></para> 11 10 12 11 </sect2> -
chapter06/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 ./configure --prefix=/usr --libexecdir=/usr/bin && 21 21 make && -
chapter06/gcc-inst.xml
r9ef08736 r3f12743 27 27 cd ../gcc-build && 28 28 ../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \ 29 --enable-languages=c,c++ --enable-threads=posix &&29 --enable-languages=c,c++ --enable-threads=posix && 30 30 make bootstrap && 31 31 make install && 32 cd /lib && 33 ln -sf ../usr/bin/cpp && 34 cd /usr/lib && 35 ln -sf ../bin/cpp && 36 cd /usr/bin && 37 ln -sf gcc cc && 32 ln -sf ../usr/bin/cpp /lib && 33 ln -sf ../bin/cpp /usr/lib && 34 ln -sf gcc /usr/bin/cc && 38 35 rmdir /usr/*-gnu/include && 39 36 rmdir /usr/*-gnu</userinput></screen></para> -
chapter06/glibc-inst.xml
r9ef08736 r3f12743 26 26 touch /etc/ld.so.conf && 27 27 cp malloc/Makefile malloc/Makefile.backup && 28 sed 's%\$(PERL)%/usr/bin/perl%' malloc/Makefile.backup > malloc/Makefile && 28 sed 's%\$(PERL)%/usr/bin/perl%' \ 29 malloc/Makefile.backup > malloc/Makefile && 29 30 cp login/Makefile login/Makefile.backup && 30 31 sed 's/root/0/' login/Makefile.backup > login/Makefile && … … 32 33 cd ../glibc-build && 33 34 ../glibc-&glibc-version;/configure --prefix=/usr \ 34 --enable-add-ons --libexecdir=/usr/bin &&35 --enable-add-ons --libexecdir=/usr/bin && 35 36 echo "cross-compiling = no" > configparms && 36 37 make && -
chapter06/groff-inst.xml
r9ef08736 r3f12743 7 7 make && 8 8 make install && 9 cd /usr/bin && 10 ln -s soelim zsoelim && 11 ln -s eqn geqn && 12 ln -s tbl gtbl</userinput></screen></para> 9 ln -s soelim /usr/bin/zsoelim && 10 ln -s eqn /usr/bin/geqn && 11 ln -s tbl /usr/bin/gtbl</userinput></screen></para> 13 12 14 13 </sect2> -
chapter06/gzip-inst.xml
r9ef08736 r3f12743 9 9 make && 10 10 make install && 11 cd /usr/bin && 12 mv gzip /bin && 13 rm gunzip zcat && 14 cd /bin && 15 ln -sf gzip gunzip && 16 ln -sf gzip zcat && 17 ln -sf gunzip uncompress</userinput></screen></para> 11 mv /usr/bin/gzip /bin && 12 rm /usr/bin/{gunzip,zcat} && 13 ln -sf gzip /bin/gunzip && 14 ln -sf gzip /bin/zcat && 15 ln -sf gunzip /bin/uncompress</userinput></screen></para> 18 16 19 17 </sect2> -
chapter06/ncurses-exp.xml
r9ef08736 r3f12743 8 8 termcap fall back support.</para> 9 9 10 <para><userinput> cd /lib && mv*.a /usr/lib :</userinput> This10 <para><userinput>mv /lib/*.a /usr/lib :</userinput> This 11 11 moves all of the static ncurses library files from /lib to /usr/lib. 12 12 /lib should only contain the shared files which are essential to the -
chapter06/ncurses-inst.xml
r9ef08736 r3f12743 5 5 6 6 <para><screen><userinput>./configure --prefix=/usr --libdir=/lib \ 7 --with-shared --disable-termcap &&7 --with-shared --disable-termcap && 8 8 make && 9 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> 10 mv /lib/*.a /usr/lib && 11 chmod 755 /lib/*.5.2 && 12 ln -sf libncurses.a /usr/lib/libcurses.a && 13 ln -sf ../../lib/libncurses.so /usr/lib && 14 ln -sf ../../lib/libcurses.so /usr/lib && 15 ln -sf ../../lib/libform.so /usr/lib && 16 ln -sf ../../lib/libpanel.so /usr/lib && 17 ln -sf ../../lib/libmenu.so /usr/lib</userinput></screen></para> 20 18 </sect2> 21 19 -
chapter06/netkitbase-inst.xml
r9ef08736 r3f12743 7 7 make && 8 8 make install && 9 cd etc.sample && 10 cp services protocols /etc</userinput></screen></para> 9 cp etc.sample/{services,protocols} /etc</userinput></screen></para> 11 10 12 11 <para>There are other files in the <filename -
chapter06/procps-inst.xml
r9ef08736 r3f12743 5 5 6 6 <para><screen><userinput>make && 7 make XSCPT= ''install &&7 make XSCPT="" install && 8 8 mv /usr/bin/kill /bin</userinput></screen></para> 9 9 -
chapter06/psmisc-inst.xml
r9ef08736 r3f12743 4 4 <para>Install Psmisc by running the following commands:</para> 5 5 6 <para><screen><userinput>./configure --prefix=/usr --exec-prefix=/ && 6 <para><screen><userinput>./configure --prefix=/usr \ 7 --exec-prefix=/ && 7 8 make && 8 9 make install</userinput></screen></para> … … 24 25 symlink by running:</para> 25 26 26 <para><screen><userinput>cd /bin 27 ln -s killall pidof</userinput></screen></para> 27 <para><screen><userinput>ln -s killall /bin/pidof</userinput></screen></para> 28 28 29 29 </sect2> -
chapter06/shadowpwd-inst.xml
r9ef08736 r3f12743 13 13 make && 14 14 make install && 15 cd etc && 16 cp limits login.access /etc && 17 sed 's%/var/spool/mail%/var/mail%' login.defs.linux > /etc/login.defs && 18 cd /usr/sbin && 19 ln -sf vipw vigr && 15 cp etc/{limits,login.access} /etc && 16 sed 's%/var/spool/mail%/var/mail%' \ 17 etc/login.defs.linux > /etc/login.defs && 18 ln -sf vipw /usr/bin/vigr && 20 19 rm /bin/vipw && 21 20 mv /bin/sg /usr/bin && 22 cd /lib && 23 mv libmisc.*a libshadow.*a /usr/lib && 24 cd /usr/lib && 25 ln -s ../../lib/libshadow.so</userinput></screen></para> 21 mv /lib/{libmisc.*a,libshadow.*a} /usr/lib && 22 ln -s ../../lib/libshadow.so /usr/lib</userinput></screen></para> 26 23 27 24 </sect2> -
chapter06/shellutils-inst.xml
r9ef08736 r3f12743 7 7 make && 8 8 make install && 9 cd /usr/bin && 10 mv basename date echo false hostname /bin && 11 mv pwd sleep stty su test true uname /bin && 12 mv chroot ../sbin</userinput></screen></para> 9 mv /usr/bin/{basename,date,echo,false,hostname} /bin && 10 mv /usr/bin/{pwd,sleep,stty,su,test,true,uname} /bin && 11 mv /usr/bin/chroot /usr/sbin</userinput></screen></para> 13 12 14 13 </sect2> … … 24 23 <filename class="directory">/bin</filename> directory:</para> 25 24 26 <para><screen><userinput>cd /bin && 27 ln -sf test [</userinput></screen></para> 25 <para><screen><userinput>ln -sf test /bin/[</userinput></screen></para> 28 26 29 27 </sect2> -
chapter06/sysvinit-inst.xml
r9ef08736 r3f12743 14 14 <para><screen><userinput>cp src/init.c src/init.c.backup && 15 15 sed 's/\(.*\)\(Sending processes\)\(.*\)/\1\2 started by init\3/' \ 16 src/init.c.backup > src/init.c</userinput></screen></para>16 src/init.c.backup > src/init.c</userinput></screen></para> 17 17 18 18 <para>Install Sysvinit by running the following commands:</para> -
chapter06/tar-inst.xml
r9ef08736 r3f12743 15 15 directory:</para> 16 16 17 <para><screen><userinput>./configure --prefix=/usr --libexecdir=/usr/bin\18 --bindir=/bin &&17 <para><screen><userinput>./configure --prefix=/usr \ 18 --libexecdir=/usr/bin --bindir=/bin && 19 19 make && 20 20 make install</userinput></screen></para> -
chapter06/textutils-inst.xml
r9ef08736 r3f12743 7 7 make && 8 8 make install && 9 mv /usr/bin/ cat /usr/bin/head/bin</userinput></screen></para>9 mv /usr/bin/{cat,head} /bin</userinput></screen></para> 10 10 11 11 </sect2> -
chapter06/utillinux-inst.xml
r9ef08736 r3f12743 8 8 <para><screen><userinput>cp hwclock/hwclock.c hwclock/hwclock.c.backup && 9 9 sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \ 10 hwclock/hwclock.c.backup > hwclock/hwclock.c &&10 hwclock/hwclock.c.backup > hwclock/hwclock.c && 11 11 mkdir -p /var/lib/hwclock</userinput></screen></para> 12 12 -
chapter06/vim-inst.xml
r9ef08736 r3f12743 13 13 make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" && 14 14 make install && 15 cd /usr/bin && 16 ln -sf vim vi</userinput></screen></para> 15 ln -sf vim /usr/bin/vi</userinput></screen></para> 17 16 18 17 <para>If you plan on installing the X Window system on your LFS … … 35 34 make CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\" && 36 35 make install && 37 cd /usr/bin && 38 ln -sf vim vi</userinput></screen></para> 36 ln -sf vim /usr/bin/vi</userinput></screen></para> 39 37 40 38 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.