2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Bzip2</title>
|
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>Install Bzip2 by running the following commands:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-10-13 16:29:53 +01:00
|
|
|
<para><screen><userinput>make CC="gcc -static -s" &&
|
2002-05-25 01:19:47 +01:00
|
|
|
make PREFIX=$LFS/static install</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-08-29 20:15:20 +01:00
|
|
|
<para>Although it's not strictly a part of a basic LFS system it's worth
|
|
|
|
mentioning that a patch for Tar can be downloaded which enables the tar
|
|
|
|
program to compress and uncompress using bzip2/bunzip2 easily. With a
|
2002-09-23 20:02:43 +01:00
|
|
|
plain tar, you have to use constructions like
|
|
|
|
<userinput>bzcat file.tar.bz | tar -xv</userinput> or
|
|
|
|
<userinput>tar --use-compress-prog=bunzip2 -xvf file.tar.bz2</userinput>
|
|
|
|
to use bzip2 and bunzip2 with tar. This patch provides the
|
|
|
|
<userinput>-j</userinput> option so you can unpack a bzip2'ed archive
|
|
|
|
with <userinput>tar -xvfj file.tar.bz2</userinput>. Applying this patch
|
|
|
|
will be mentioned later on when the Tar package is installed.</para>
|
2001-08-29 20:15:20 +01:00
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect2>
|
|
|
|
|