Hi,
In this chapter we are going to compile and install Findutils package.
Note :
- Please check the version of the package when you compile and install, at the time of writing the package was at version 4.7.0
- 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/findutils.html for more details.
Unpack the package and change directory.
$ tar -xvf findutils-4.7.0.tar.xz
$ cd findutils-4.7.0
Preparing the package for compilation.
$ ./configure --prefix=/usr \
--host=$LFS_TGT \
--build=$(build-aux/config.guess)
Compiling the package.
$ make -j4
Installing the package.
$ make DESTDIR=$LFS install
Move the executable to its final expected location
$ mv -v $LFS/usr/bin/find $LFS/bin
$ sed -i 's|find:=${BINDIR}|find:=/bin|' $LFS/usr/bin/updatedb
No comments:
Post a Comment