README 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. This is the README for bzip2, a block-sorting file compressor, version
  2. 1.0. This version is fully compatible with the previous public
  3. releases, bzip2-0.1pl2, bzip2-0.9.0 and bzip2-0.9.5.
  4. bzip2-1.0 is distributed under a BSD-style license. For details,
  5. see the file LICENSE.
  6. Complete documentation is available in Postscript form (manual.ps) or
  7. html (manual_toc.html). A plain-text version of the manual page is
  8. available as bzip2.txt. A statement about Y2K issues is now included
  9. in the file Y2K_INFO.
  10. HOW TO BUILD -- UNIX
  11. Type `make'. This builds the library libbz2.a and then the
  12. programs bzip2 and bzip2recover. Six self-tests are run.
  13. If the self-tests complete ok, carry on to installation:
  14. To install in /usr/bin, /usr/lib, /usr/man and /usr/include, type
  15. make install
  16. To install somewhere else, eg, /xxx/yyy/{bin,lib,man,include}, type
  17. make install PREFIX=/xxx/yyy
  18. If you are (justifiably) paranoid and want to see what 'make install'
  19. is going to do, you can first do
  20. make -n install or
  21. make -n install PREFIX=/xxx/yyy respectively.
  22. The -n instructs make to show the commands it would execute, but
  23. not actually execute them.
  24. HOW TO BUILD -- UNIX, shared library libbz2.so.
  25. Do 'make -f Makefile-libbz2_so'. This Makefile seems to work for
  26. Linux-ELF (RedHat 5.2 on an x86 box), with gcc. I make no claims
  27. that it works for any other platform, though I suspect it probably
  28. will work for most platforms employing both ELF and gcc.
  29. bzip2-shared, a client of the shared library, is also build, but
  30. not self-tested. So I suggest you also build using the normal
  31. Makefile, since that conducts a self-test.
  32. Important note for people upgrading .so's from 0.9.0/0.9.5 to
  33. version 1.0. All the functions in the library have been renamed,
  34. from (eg) bzCompress to BZ2_bzCompress, to avoid namespace pollution.
  35. Unfortunately this means that the libbz2.so created by
  36. Makefile-libbz2_so will not work with any program which used an
  37. older version of the library. Sorry. I do encourage library
  38. clients to make the effort to upgrade to use version 1.0, since
  39. it is both faster and more robust than previous versions.
  40. HOW TO BUILD -- Windows 95, NT, DOS, Mac, etc.
  41. It's difficult for me to support compilation on all these platforms.
  42. My approach is to collect binaries for these platforms, and put them
  43. on the master web page (http://sourceware.cygnus.com/bzip2). Look
  44. there. However (FWIW), bzip2-1.0 is very standard ANSI C and should
  45. compile unmodified with MS Visual C. For Win32, there is one
  46. important caveat: in bzip2.c, you must set BZ_UNIX to 0 and
  47. BZ_LCCWIN32 to 1 before building. If you have difficulties building,
  48. you might want to read README.COMPILATION.PROBLEMS.
  49. VALIDATION
  50. Correct operation, in the sense that a compressed file can always be
  51. decompressed to reproduce the original, is obviously of paramount
  52. importance. To validate bzip2, I used a modified version of Mark
  53. Nelson's churn program. Churn is an automated test driver which
  54. recursively traverses a directory structure, using bzip2 to compress
  55. and then decompress each file it encounters, and checking that the
  56. decompressed data is the same as the original. There are more details
  57. in Section 4 of the user guide.
  58. Please read and be aware of the following:
  59. WARNING:
  60. This program (attempts to) compress data by performing several
  61. non-trivial transformations on it. Unless you are 100% familiar
  62. with *all* the algorithms contained herein, and with the
  63. consequences of modifying them, you should NOT meddle with the
  64. compression or decompression machinery. Incorrect changes can and
  65. very likely *will* lead to disastrous loss of data.
  66. DISCLAIMER:
  67. I TAKE NO RESPONSIBILITY FOR ANY LOSS OF DATA ARISING FROM THE
  68. USE OF THIS PROGRAM, HOWSOEVER CAUSED.
  69. Every compression of a file implies an assumption that the
  70. compressed file can be decompressed to reproduce the original.
  71. Great efforts in design, coding and testing have been made to
  72. ensure that this program works correctly. However, the complexity
  73. of the algorithms, and, in particular, the presence of various
  74. special cases in the code which occur with very low but non-zero
  75. probability make it impossible to rule out the possibility of bugs
  76. remaining in the program. DO NOT COMPRESS ANY DATA WITH THIS
  77. PROGRAM UNLESS YOU ARE PREPARED TO ACCEPT THE POSSIBILITY, HOWEVER
  78. SMALL, THAT THE DATA WILL NOT BE RECOVERABLE.
  79. That is not to say this program is inherently unreliable. Indeed,
  80. I very much hope the opposite is true. bzip2 has been carefully
  81. constructed and extensively tested.
  82. PATENTS:
  83. To the best of my knowledge, bzip2 does not use any patented
  84. algorithms. However, I do not have the resources available to
  85. carry out a full patent search. Therefore I cannot give any
  86. guarantee of the above statement.
  87. End of legalities.
  88. WHAT'S NEW IN 0.9.0 (as compared to 0.1pl2) ?
  89. * Approx 10% faster compression, 30% faster decompression
  90. * -t (test mode) is a lot quicker
  91. * Can decompress concatenated compressed files
  92. * Programming interface, so programs can directly read/write .bz2 files
  93. * Less restrictive (BSD-style) licensing
  94. * Flag handling more compatible with GNU gzip
  95. * Much more documentation, i.e., a proper user manual
  96. * Hopefully, improved portability (at least of the library)
  97. WHAT'S NEW IN 0.9.5 ?
  98. * Compression speed is much less sensitive to the input
  99. data than in previous versions. Specifically, the very
  100. slow performance caused by repetitive data is fixed.
  101. * Many small improvements in file and flag handling.
  102. * A Y2K statement.
  103. WHAT'S NEW IN 1.0
  104. See the CHANGES file.
  105. I hope you find bzip2 useful. Feel free to contact me at
  106. jseward@acm.org
  107. if you have any suggestions or queries. Many people mailed me with
  108. comments, suggestions and patches after the releases of bzip-0.15,
  109. bzip-0.21, bzip2-0.1pl2 and bzip2-0.9.0, and the changes in bzip2 are
  110. largely a result of this feedback. I thank you for your comments.
  111. At least for the time being, bzip2's "home" is (or can be reached via)
  112. http://www.muraroa.demon.co.uk.
  113. Julian Seward
  114. jseward@acm.org
  115. Cambridge, UK
  116. 18 July 1996 (version 0.15)
  117. 25 August 1996 (version 0.21)
  118. 7 August 1997 (bzip2, version 0.1)
  119. 29 August 1997 (bzip2, version 0.1pl2)
  120. 23 August 1998 (bzip2, version 0.9.0)
  121. 8 June 1999 (bzip2, version 0.9.5)
  122. 4 Sept 1999 (bzip2, version 0.9.5d)
  123. 5 May 2000 (bzip2, version 1.0pre8)