Linux From Scratch (LFS) --- Step by Step with VirtualBox

(V054a-20210617). Linux From Scratch (LFS) --- Step by Step with VirtualBox. This site is managed by VauLSMorg (vlsm.org) since 2020. May the fork() be with Jolan Tru! --- operatingsystems (@T) vlsm dot org.

View on GitHub

HOME ABOUT WEB GITHUB TOP BOTTOM PREV NEXT


LFS: Chapter 8 part 31 - 40

Virtual Box Guest LFS-08-31



Enter CHROOT

cd /sources/


Gettext-0.21

tar xvf gettext-0.21.tar.xz
cd gettext-0.21/

./configure --prefix=/usr    \
            --disable-static \
            --docdir=/usr/share/doc/gettext-0.21

time make

make check

make install
chmod -v 0755 /usr/lib/preloadable_libintl.so

cd ../
rm -rfv gettext-0.21/


Bison-3.7.5

tar xvf bison-3.7.5.tar.xz
cd bison-3.7.5/

./configure --prefix=/usr --docdir=/usr/share/doc/bison-3.7.5

time make

make check

make install

cd ../
rm -rfv bison-3.7.5/


Grep-3.6

tar xvf grep-3.6.tar.xz
cd grep-3.6/

./configure --prefix=/usr --bindir=/bin

time make

make check

make install

cd ../
rm -rfv grep-3.6/


Bash-5.1

tar xvf bash-5.1.tar.gz
cd bash-5.1/

sed -i  '/^bashline.o:.*shmbchar.h/a bashline.o: ${DEFDIR}/builtext.h' Makefile.in

./configure --prefix=/usr                    \
            --docdir=/usr/share/doc/bash-5.1 \
            --without-bash-malloc            \
            --with-installed-readline

time make

chown -Rv tester .

su tester << EOF
PATH=$PATH make tests < $(tty)
EOF

make install
mv -vf /usr/bin/bash /bin

exec /bin/bash --login +h

cd ../
rm -rfv bash-5.1/


Libtool-2.4.6

tar xvf libtool-2.4.6.tar.xz
cd libtool-2.4.6/

./configure --prefix=/usr

time make

make check TESTSUITEFLAGS=-j6

make install 

rm -fv /usr/lib/libltdl.a

cd ..
rm -rfv libtool-2.4.6/


GDBM-1.19

tar xvf gdbm-1.19.tar.gz
cd gdbm-1.19/

./configure --prefix=/usr    \
            --disable-static \
            --enable-libgdbm-compat

time make

make check

make install

cd ../
rm -rfv gdbm-1.19/


Gperf-3.1

tar xvf gperf-3.1.tar.gz
cd gperf-3.1/

./configure --prefix=/usr --docdir=/usr/share/doc/gperf-3.1

time make

make -j1 check

make install

cd ../
rm -rfv gperf-3.1/


Expat-2.2.10

tar xvf expat-2.2.10.tar.xz
cd expat-2.2.10/

./configure --prefix=/usr    \
            --disable-static \
            --docdir=/usr/share/doc/expat-2.2.10

time make

make check

make install

install -v -m644 doc/*.{html,png,css} /usr/share/doc/expat-2.2.10

cd  ../
rm -rfv expat-2.2.10/


Inetutils-2.0

tar xvf inetutils-2.0.tar.xz
cd inetutils-2.0/

./configure --prefix=/usr        \
            --localstatedir=/var \
            --disable-logger     \
            --disable-whois      \
            --disable-rcp        \
            --disable-rexec      \
            --disable-rlogin     \
            --disable-rsh        \
            --disable-servers

time make

make check

make install

mv -v /usr/bin/{hostname,ping,ping6,traceroute} /bin
mv -v /usr/bin/ifconfig /sbin

cd ../
rm -rfv inetutils-2.0/


Perl-5.32.1

tar xvf perl-5.32.1.tar.xz
cd perl-5.32.1/

export BUILD_ZLIB=False
export BUILD_BZIP2=0

sh Configure -des                                         \
             -Dprefix=/usr                                \
             -Dvendorprefix=/usr                          \
             -Dprivlib=/usr/lib/perl5/5.32/core_perl      \
             -Darchlib=/usr/lib/perl5/5.32/core_perl      \
             -Dsitelib=/usr/lib/perl5/5.32/site_perl      \
             -Dsitearch=/usr/lib/perl5/5.32/site_perl     \
             -Dvendorlib=/usr/lib/perl5/5.32/vendor_perl  \
             -Dvendorarch=/usr/lib/perl5/5.32/vendor_perl \
             -Dman1dir=/usr/share/man/man1                \
             -Dman3dir=/usr/share/man/man3                \
             -Dpager="/usr/bin/less -isR"                 \
             -Duseshrplib                                 \
             -Dusethreads

time make

make check

make install
unset BUILD_ZLIB BUILD_BZIP2

cd ../
rm -rfv perl-5.32.1/


Exit CHROOT

exit


Done

poweroff


ENDOFPAGE

HOME ABOUT WEB GITHUB TOP BOTTOM PREV NEXT