bzip2-inst.xml 947 B

123456789101112131415161718192021
  1. <sect2>
  2. <title>Installation of Bzip2</title>
  3. <para>Install Bzip2 by running the following commands:</para>
  4. <para><screen><userinput>make CC="gcc -static" &amp;&amp;</userinput>
  5. <userinput>make PREFIX=$LFS/usr install &amp;&amp;</userinput>
  6. <userinput>cd $LFS/usr/bin &amp;&amp;</userinput>
  7. <userinput>mv bzcat bunzip2 bzip2 bzip2recover $LFS/bin</userinput></screen></para>
  8. <para>Although it's not strictly a part of a basic LFS system it's worth
  9. mentioning that a patch for Tar can be downloaded which enables the tar
  10. program to compress and uncompress using bzip2/bunzip2 easily. With a
  11. plain tar, you have to use constructions like bzcat file.tar.bz|tar
  12. xv or tar --use-compress-prog=bunzip2 -xvf file.tar.bz2 to use bzip2 and
  13. bunzip2 with tar. This patch provides the -j option so you can unpack a
  14. Bzip2 archive with tar xvfj file.tar.bz2. Applying this patch will be
  15. mentioned later on when the Tar package is installed.</para>
  16. </sect2>