2
This is the README for bzip2, a block-sorting file compressor, version
3
1.0. This version is fully compatible with the previous public
4
releases, bzip2-0.1pl2, bzip2-0.9.0 and bzip2-0.9.5.
6
bzip2-1.0 is distributed under a BSD-style license. For details,
9
Complete documentation is available in Postscript form (manual.ps) or
10
html (manual_toc.html). A plain-text version of the manual page is
11
available as bzip2.txt. A statement about Y2K issues is now included
2
This is the README for bzip2/libzip2.
3
This version is fully compatible with the previous public releases.
5
------------------------------------------------------------------
6
This file is part of bzip2/libbzip2, a program and library for
7
lossless, block-sorting data compression.
9
bzip2/libbzip2 version 1.0.5 of 10 December 2007
10
Copyright (C) 1996-2007 Julian Seward <jseward@bzip.org>
12
Please read the WARNING, DISCLAIMER and PATENTS sections in this file.
14
This program is released under the terms of the license contained
16
------------------------------------------------------------------
18
Complete documentation is available in Postscript form (manual.ps),
19
PDF (manual.pdf) or html (manual.html). A plain-text version of the
20
manual page is available as bzip2.txt.
15
23
HOW TO BUILD -- UNIX
17
Type `make'. This builds the library libbz2.a and then the
18
programs bzip2 and bzip2recover. Six self-tests are run.
19
If the self-tests complete ok, carry on to installation:
21
To install in /usr/bin, /usr/lib, /usr/man and /usr/include, type
25
Type 'make'. This builds the library libbz2.a and then the programs
26
bzip2 and bzip2recover. Six self-tests are run. If the self-tests
27
complete ok, carry on to installation:
29
To install in /usr/local/bin, /usr/local/lib, /usr/local/man and
30
/usr/local/include, type
23
To install somewhere else, eg, /xxx/yyy/{bin,lib,man,include}, type
34
To install somewhere else, eg, /xxx/yyy/{bin,lib,man,include}, type
24
36
make install PREFIX=/xxx/yyy
25
38
If you are (justifiably) paranoid and want to see what 'make install'
26
39
is going to do, you can first do
28
42
make -n install PREFIX=/xxx/yyy respectively.
29
The -n instructs make to show the commands it would execute, but
30
not actually execute them.
44
The -n instructs make to show the commands it would execute, but not
45
actually execute them.
33
48
HOW TO BUILD -- UNIX, shared library libbz2.so.
35
50
Do 'make -f Makefile-libbz2_so'. This Makefile seems to work for
36
Linux-ELF (RedHat 5.2 on an x86 box), with gcc. I make no claims
51
Linux-ELF (RedHat 7.2 on an x86 box), with gcc. I make no claims
37
52
that it works for any other platform, though I suspect it probably
38
53
will work for most platforms employing both ELF and gcc.
40
bzip2-shared, a client of the shared library, is also build, but
41
not self-tested. So I suggest you also build using the normal
42
Makefile, since that conducts a self-test.
55
bzip2-shared, a client of the shared library, is also built, but not
56
self-tested. So I suggest you also build using the normal Makefile,
57
since that conducts a self-test. A second reason to prefer the
58
version statically linked to the library is that, on x86 platforms,
59
building shared objects makes a valuable register (%ebx) unavailable
60
to gcc, resulting in a slowdown of 10%-20%, at least for bzip2.
44
Important note for people upgrading .so's from 0.9.0/0.9.5 to
45
version 1.0. All the functions in the library have been renamed,
46
from (eg) bzCompress to BZ2_bzCompress, to avoid namespace pollution.
62
Important note for people upgrading .so's from 0.9.0/0.9.5 to version
63
1.0.X. All the functions in the library have been renamed, from (eg)
64
bzCompress to BZ2_bzCompress, to avoid namespace pollution.
47
65
Unfortunately this means that the libbz2.so created by
48
Makefile-libbz2_so will not work with any program which used an
49
older version of the library. Sorry. I do encourage library
50
clients to make the effort to upgrade to use version 1.0, since
51
it is both faster and more robust than previous versions.
66
Makefile-libbz2_so will not work with any program which used an older
67
version of the library. I do encourage library clients to make the
68
effort to upgrade to use version 1.0, since it is both faster and more
69
robust than previous versions.
54
72
HOW TO BUILD -- Windows 95, NT, DOS, Mac, etc.
56
74
It's difficult for me to support compilation on all these platforms.
57
75
My approach is to collect binaries for these platforms, and put them
58
on the master web page (http://sourceware.cygnus.com/bzip2). Look
59
there. However (FWIW), bzip2-1.0 is very standard ANSI C and should
60
compile unmodified with MS Visual C. For Win32, there is one
61
important caveat: in bzip2.c, you must set BZ_UNIX to 0 and
62
BZ_LCCWIN32 to 1 before building. If you have difficulties building,
63
you might want to read README.COMPILATION.PROBLEMS.
76
on the master web site (http://www.bzip.org). Look there. However
77
(FWIW), bzip2-1.0.X is very standard ANSI C and should compile
78
unmodified with MS Visual C. If you have difficulties building, you
79
might want to read README.COMPILATION.PROBLEMS.
81
At least using MS Visual C++ 6, you can build from the unmodified
82
sources by issuing, in a command shell:
86
(you may need to first run the MSVC-provided script VCVARS32.BAT
87
so as to set up paths to the MSVC tools correctly).
83
This program (attempts to) compress data by performing several
84
non-trivial transformations on it. Unless you are 100% familiar
85
with *all* the algorithms contained herein, and with the
86
consequences of modifying them, you should NOT meddle with the
87
compression or decompression machinery. Incorrect changes can and
88
very likely *will* lead to disastrous loss of data.
106
This program and library (attempts to) compress data by
107
performing several non-trivial transformations on it.
108
Unless you are 100% familiar with *all* the algorithms
109
contained herein, and with the consequences of modifying them,
110
you should NOT meddle with the compression or decompression
111
machinery. Incorrect changes can and very likely *will*
112
lead to disastrous loss of data.
93
117
I TAKE NO RESPONSIBILITY FOR ANY LOSS OF DATA ARISING FROM THE
94
USE OF THIS PROGRAM, HOWSOEVER CAUSED.
118
USE OF THIS PROGRAM/LIBRARY, HOWSOEVER CAUSED.
96
120
Every compression of a file implies an assumption that the
97
121
compressed file can be decompressed to reproduce the original.
138
161
* Many small improvements in file and flag handling.
139
162
* A Y2K statement.
143
See the CHANGES file.
164
WHAT'S NEW IN 1.0.0 ?
166
See the CHANGES file.
168
WHAT'S NEW IN 1.0.2 ?
170
See the CHANGES file.
172
WHAT'S NEW IN 1.0.3 ?
174
See the CHANGES file.
176
WHAT'S NEW IN 1.0.4 ?
178
See the CHANGES file.
180
WHAT'S NEW IN 1.0.5 ?
182
See the CHANGES file.
145
185
I hope you find bzip2 useful. Feel free to contact me at
147
187
if you have any suggestions or queries. Many people mailed me with
148
188
comments, suggestions and patches after the releases of bzip-0.15,
149
bzip-0.21, bzip2-0.1pl2 and bzip2-0.9.0, and the changes in bzip2 are
150
largely a result of this feedback. I thank you for your comments.
189
bzip-0.21, and bzip2 versions 0.1pl2, 0.9.0, 0.9.5, 1.0.0, 1.0.1,
190
1.0.2 and 1.0.3, and the changes in bzip2 are largely a result of this
191
feedback. I thank you for your comments.
152
At least for the time being, bzip2's "home" is (or can be reached via)
153
http://www.muraroa.demon.co.uk.
193
bzip2's "home" is http://www.bzip.org/
159
18 July 1996 (version 0.15)
160
25 August 1996 (version 0.21)
161
7 August 1997 (bzip2, version 0.1)
162
29 August 1997 (bzip2, version 0.1pl2)
163
23 August 1998 (bzip2, version 0.9.0)
164
8 June 1999 (bzip2, version 0.9.5)
165
4 Sept 1999 (bzip2, version 0.9.5d)
166
5 May 2000 (bzip2, version 1.0pre8)
199
18 July 1996 (version 0.15)
200
25 August 1996 (version 0.21)
201
7 August 1997 (bzip2, version 0.1)
202
29 August 1997 (bzip2, version 0.1pl2)
203
23 August 1998 (bzip2, version 0.9.0)
204
8 June 1999 (bzip2, version 0.9.5)
205
4 Sept 1999 (bzip2, version 0.9.5d)
206
5 May 2000 (bzip2, version 1.0pre8)
207
30 December 2001 (bzip2, version 1.0.2pre1)
208
15 February 2005 (bzip2, version 1.0.3)
209
20 December 2006 (bzip2, version 1.0.4)
210
10 December 2007 (bzip2, version 1.0.5)