LFS on Ubuntu(7) 一時的環境の構築 (Findutils-4.4
LFSユーザになる
yoshiring@the-world:~$ su lfs
パスワード:
lfs@the-world:/home/yoshiring$ echo $LFS
/mnt/lfs
$ cd $LFS/sources
Findutils のインストール
$ tar zxvf findutils-4.4.2.tar.gz
$ cd findutils-4.4.2
$ ./configure --prefix=/tools
$ make
$ make install
Gawk のインストール
$ tar jxf gawk-3.1.7.tar.bz2
$ cd gawk-3.1.7
$ ./configure --prefix=/tools
$ make
$ make install
Gettext-0.17 のインストール
$ tar zxvf gettext-0.17.tar.gz
cd gettext-0.17/gettext-tools
$ ./configure --prefix=/tools --disable-shared
$ make -C gnulib-lib
$ make -C src msgfmt
$ cp -v src/msgfmt /tools/bin
Grep のインストール
$ tar jxf grep-2.5.4.tar.bz2
$ cd grep-2.5.4
$ ./configure --prefix=/tools \
--disable-perl-regexp \
--without-included-regex
$ make
$ make install
Gzip のインストール
$ tar zxvf gzip-1.4.tar.gz
$ cd gzip-1.4
$ ./configure --prefix=/tools
$ make
$ make install
M4-1.4.13
Make-3.81
Patch-2.6.1
Perl-5.10.1
Sed-4.2.1
Tar-1.22
Texinfo-4.13a
ストリップ
必須ではない為、省略
所有者の変更
# vi .bashrc
LFS=/mnt/lfs
# source .bashrc
# chown -R root:root $LFS/tools