Hi,
In this chapter we are going to compile and install Xz package.
Note :
- Please check the version of the package when you compile and install, at the time of writing the package was at version 2.35
- You should be logged in as lfs user, when you perform the actions described here.
- Change directory to the sources folder (/mnt/lfs/sources)
- Please check http://linuxfromscratch.org/lfs/view/stable/chapter06/xz.html for more details.
Unpack the package tarball and change directory.
$ tar -xvf xz-5.2.5.tar.xz
$ cd xz-5.2.5
Preparing the package for compilation.
$ ./configure --prefix=/usr \
--host=$LFS_TGT \
--build=$(build-aux/config.guess) \
--disable-static \
--docdir=/usr/share/doc/xz-5.2.5
Compiling the package.
$ make -j4
Installing the package.
$ make DESTDIR=$LFS install
Make sure that all essential files are in the correct directory
mv -v $LFS/usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat} $LFS/bin
mv -v $LFS/usr/lib/liblzma.so.* $LFS/lib
ln -svf ../../lib/$(readlink $LFS/usr/lib/liblzma.so) $LFS/usr/lib/liblzma.so
No comments:
Post a Comment