Debian Codegraph @

README

raw
1
2 Compress-Raw-Bzip2
3
4 Version 2.224
5
6 28 August 2026
7
8
9 Copyright (c) 2005-2026 Paul Marquess. All rights reserved.
10 This program is free software; you can redistribute it
11 and/or modify it under the same terms as Perl itself.
12
13 The directory bzip2-src contains a subset of the
14 source files copied directly from bzip2 version 1.0.8.
15 These files are Copyright(C) 1996-2019 Julian Seward.
16 See the file bzip2-src/LICENSE for licence details for these files.
17 Full source for the bzip2 library is available at
18 https://sourceware.org/bzip2/
19
20 Note that some of the bzip2 source files have been modified
21 to allow them to build with a C++ compiler
22 and/or silence compiler warnings.
23 The file bzip2-src/bzip2.patch contains the patch
24 that was used to modify the original source.
25
26 DESCRIPTION
27 -----------
28
29 Compress-Raw-Bzip2 provides the interface to the bzip2 library for the modules
30 IO::Compress::Bzip2 and IO::Compress::Bunzip2.
31
32 PREREQUISITES
33 -------------
34
35 Before you can build Compress-Raw-Bzip2 you need to have the following
36 installed on your system:
37
38 * A C compiler
39
40 * Perl 5.008 or better.
41
42 BUILDING THE MODULE
43 -------------------
44
45 Assuming you have met all the prerequisites, the module can now be built
46 using this sequence of commands:
47
48 perl Makefile.PL
49 make
50 make test
51
52 INSTALLATION
53 ------------
54
55 To install Compress-Raw-Bzip2, run the command below:
56
57 make install
58
59 TROUBLESHOOTING
60 ---------------
61
62 Solaris build fails with "language optional software package not installed"
63 ---------------------------------------------------------------------------
64
65 If you are trying to build this module under Solaris and you get an
66 error message like this
67
68 /usr/ucb/cc: language optional software package not installed
69
70 it means that Perl cannot find the C compiler on your system. The cryptic
71 message is just Sun's way of telling you that you haven't bought their
72 C compiler.
73
74 When you build a Perl module that needs a C compiler, the Perl build
75 system tries to use the same C compiler that was used to build perl
76 itself. In this case your Perl binary was built with a C compiler that
77 lived in /usr/ucb.
78
79 To continue with building this module, you need to get a C compiler,
80 or tell Perl where your C compiler is, if you already have one.
81
82 Assuming you have now got a C compiler, what you do next will be dependent
83 on what C compiler you have installed. If you have just installed Sun's
84 C compiler, you shouldn't have to do anything. Just try rebuilding
85 this module.
86
87 If you have installed another C compiler, say gcc, you have to tell perl
88 how to use it instead of /usr/ucb/cc.
89
90 This set of options seems to work if you want to use gcc. Your mileage
91 may vary.
92
93 perl Makefile.PL CC=gcc CCCDLFLAGS=-fPIC OPTIMIZE=" "
94 make test
95
96 If that doesn't work for you, it's time to make changes to the Makefile
97 by hand. Good luck!
98
99 Solaris build fails with "gcc: unrecognized option `-KPIC'"
100 -----------------------------------------------------------
101
102 You are running Solaris and you get an error like this when you try to
103 build this Perl module
104
105 gcc: unrecognized option `-KPIC'
106
107 This symptom usually means that you are using a Perl binary that has been
108 built with the Sun C compiler, but you are using gcc to build this module.
109
110 When Perl builds modules that need a C compiler, it will attempt to use
111 the same C compiler and command line options that was used to build perl
112 itself. In this case "-KPIC" is a valid option for the Sun C compiler,
113 but not for gcc. The equivalent option for gcc is "-fPIC".
114
115 The solution is either:
116
117 1. Build both Perl and this module with the same C compiler, either
118 by using the Sun C compiler for both or gcc for both.
119
120 2. Try generating the Makefile for this module like this perl
121
122 perl Makefile.PL CC=gcc CCCDLFLAGS=-fPIC OPTIMIZE=" " LD=gcc
123 make test
124
125 This second option seems to work when mixing a Perl binary built
126 with the Sun C compiler and this module built with gcc. Your
127 mileage may vary.
128
129 HP-UX Notes
130 -----------
131
132 I've had a report that when building Compress-Raw-Bzip2 under HP-UX that it
133 is necessary to have first built the bzip2 library with the -fpic
134 option.
135
136 SUPPORT
137 -------
138
139 General feedback/questions/bug reports should be sent to
140 https://github.com/pmqs/Compress-Raw-Bzip2/issues
141
142 FEEDBACK
143 --------
144
145 How to report a problem with Compress-Raw-Bzip2.
146
147 To help me help you, I need all of the following information:
148
149 1. The Versions of everything relevant.
150 This includes:
151
152 a. The *complete* output from running this
153
154 perl -V
155
156 Do not edit the output in any way.
157 Note, I want you to run "perl -V" and NOT "perl -v".
158
159 If your perl does not understand the "-V" option it is too
160 old. This module needs Perl version 5.004 or better.
161
162 b. The version of Compress-Raw-Bzip2 you have.
163 If you have successfully installed Compress-Raw-Bzip2, this one-liner
164 will tell you:
165
166 perl -MCompress::Raw::Bzip2 -e 'print qq[ver $Compress::Raw::Bzip2::VERSION\n]'
167
168 If you are running windows use this
169
170 perl -MCompress::Raw::Bzip2 -e "print qq[ver $Compress::Raw::Bzip2::VERSION\n]"
171
172 If you haven't installed Compress-Raw-Bzip2 then search Compress::Raw::Bzip2.pm
173 for a line like this:
174
175 $VERSION = "2.224" ;
176
177 c. The version of bzip2 you have used.
178 If you have successfully installed Compress-Raw-Bzip2, this one-liner
179 will tell you:
180
181 perl -MCompress::Raw::Bzip2 -e "print q[bzip2 ver ]. Compress::Raw::Bzip2::ZLIB_VERSION.qq[\n]"
182
183 If not, look at the beginning of the file zlib.h.
184
185 2. If you are having problems building Compress-Raw-Bzip2, send me a
186 complete log of what happened. Start by unpacking the Compress-Raw-Bzip2
187 module into a fresh directory and keep a log of all the steps, including
188 the setting of configuration environment variables (if applicable).
189
190 [edit config.in or set environment variables, if necessary]
191 perl Makefile.PL
192 make
193 make test TEST_VERBOSE=1
194
195 Paul Marquess <[email protected]>