bzip2 [ Home | Documentation | Downloads ]

2. Getting bzip2

2.1. bzip2-HOWTO in your Language

French: Arnaud Launay maintains an online version, or you can download a Postscript version. Arnaud can be contacted by electronic mail at asl@launay.org.

Other Languages: This HOWTO has been translated into quite a few languages. Your best bet is to search online, eg. "bzip2 <your-language>". A good starting place is www.ibiblio.org.

2.2. Getting precompiled binaries

There are various precompiled binaries on the bzip2 website: http://www.bzip.org/downloads.html.

2.3. Getting the sources

The bzip2 website has a list of source tarballs. See http://www.bzip.org/downloads.html.

2.4. Compiling bzip2 for your machine

If you have gcc 2.7.*: change the line that reads:

CFLAGS = -O3 -fomit-frame-pointer -funroll-loops

to

CFLAGS = -O2 -fomit-frame-pointer

that is, replace -O3 with -O2 and drop the -funroll-loops. You may also wish to add any -m* flags (for example, like -m486) you use when compiling kernels.

Avoiding -funroll-loops is the most important part, since this will cause many gcc 2.7's to generate wrong code, and all gcc 2.7's to generate slower and larger code. For other compilers (lcc, egcs, gcc 2.8.x) the default CFLAGS are fine.

After that, just make it and install it per the README.


Copyright © 1996 - 2017  julian@bzip.org

Hosting kindly donated by Mythic Beasts