Gzipのビルド
Gzipは、データの圧縮・伸長のためのコマンドおよびライブラリ群です。
gzip コマンド、gunzip コマンド、zcat コマンドなどが含まれます。
ソースファイルの展開
ソースファイルを展開します。
cd $MYLINUX/sources
tar xvf gzip-1.6.tar.xz
cd gzip-1.6
cd $MYLINUX/sources
![](/images/crlf-large.jpg)
tar xvf gzip-1.6.tar.xz
![](/images/crlf-large.jpg)
cd gzip-1.6
![](/images/crlf-large.jpg)
configure
configureを実行します。
./configure \
--prefix=/tools > ../../logs/configurelog.gzip 2>&1
./configure \
![](/images/crlf-large.jpg)
--prefix=/tools > ../../logs/configurelog.gzip 2>&1
![](/images/crlf-large.jpg)
configureが終了したら、ログファイルに出力された内容を参照し、正常に終了したことを確認します。
cat ../../logs/configurelog.gzip
cat ../../logs/configurelog.gzip
![](/images/crlf-large.jpg)
ビルド
ビルドを実行します。
make
make
![](/images/crlf-large.jpg)
ビルドが終了したら、画面に出力された内容を参照し、正常に終了したことを確認します。
インストール
インストールを行います。
make install
make install
![](/images/crlf-large.jpg)
インストールが終了したら、画面に出力された内容を参照し、正常に終了したことを確認します。
後始末
ディスクを圧迫しないよう、ビルド用のディレクトリを削除します。
cd ..
rm -fr gzip-1.6
cd ..
![](/images/crlf-large.jpg)
rm -fr gzip-1.6
![](/images/crlf-large.jpg)