Update Compression modules to version 2.012
[p5sagit/p5-mst-13.2.git] / ext / Compress / Zlib / README
CommitLineData
642e522c 1
80e5fcd6 2 Compress-Zlib
f4c6fd49 3
e11a3f9e 4 Version 2.012
25f0751f 5
e11a3f9e 6 15th July 2008
642e522c 7
d54256af 8 Copyright (c) 1995-2008 Paul Marquess. All rights reserved.
25f0751f 9 This program is free software; you can redistribute it
10 and/or modify it under the same terms as Perl itself.
f4c6fd49 11
f4c6fd49 12DESCRIPTION
13-----------
14
25f0751f 15This module provides a Perl interface to the zlib compression library.
f4c6fd49 16
f4c6fd49 17PREREQUISITES
18-------------
19
80e5fcd6 20Before you can build Compress-Zlib you need to have the following
f4c6fd49 21installed on your system:
22
f4c6fd49 23 * Perl 5.004 or better.
25f0751f 24 * Compress::Raw::Zlib
80e5fcd6 25 * IO::Compress::Gzip
25f0751f 26
f4c6fd49 27BUILDING THE MODULE
28-------------------
29
30Assuming you have met all the prerequisites, the module can now be built
31using this sequence of commands:
32
33 perl Makefile.PL
34 make
35 make test
36
f4c6fd49 37INSTALLATION
38------------
39
80e5fcd6 40To install Compress-Zlib, run the command below:
f4c6fd49 41
42 make install
43
f4c6fd49 44TROUBLESHOOTING
45---------------
46
47Undefined Symbol gzsetparams
48----------------------------
49
80e5fcd6 50If you get the error shown below when you run the Compress-Zlib test
25f0751f 51harness it probably means you are running a copy of zlib that is
52version 1.0.5 or older.
f4c6fd49 53
54t/01version.........Can't load 'blib/arch/auto/Compress/Zlib/Zlib.so' for
25f0751f 55 module Compress::Raw::Zlib: blib/arch/auto/Compress/Raw/Zlib/Zlib.so:
f4c6fd49 56 undefined symbol: gzsetparams at ...
57
58There are two ways to fix this problem:
59
60 1. Upgrade to the latest version of zlib.
61
62 2. Edit config.in and set the OLD_ZLIB variable to True.
63
f4c6fd49 64Test Harness 01version fails
65----------------------------
25f0751f 66If the 01version test harness fails, and the problem isn't covered by the
67scenario above, it probably means that you have two versions of
68zlib installed on your system.
f4c6fd49 69
70Run the command below to see if this is indeed the case
71
72 make test TEST_VERBOSE=1 TEST_FILES=t/01version.t
73
74Try removing the one you don't want to use and rebuild.
75
f4c6fd49 76FEEDBACK
77--------
78
80e5fcd6 79How to report a problem with Compress-Zlib.
f4c6fd49 80
81To help me help you, I need all of the following information:
82
25f0751f 83 1. The Versions of everything relevant.
84 This includes:
85
86 a. The *complete* output from running this
87
88 perl -V
89
90 Do not edit the output in any way.
91 Note, I want you to run "perl -V" and NOT "perl -v".
92
93 If your perl does not understand the "-V" option it is too
94 old. This module needs Perl version 5.004 or better.
95
80e5fcd6 96 b. The version of Compress-Zlib you have.
97 If you have successfully installed Compress-Zlib, this one-liner
25f0751f 98 will tell you:
f4c6fd49 99
25f0751f 100 perl -MCompress::Zlib -e 'print qq[ver $Compress::Zlib::VERSION\n]'
f4c6fd49 101
25f0751f 102 If you are running windows use this
f4c6fd49 103
25f0751f 104 perl -MCompress::Zlib -e "print qq[ver $Compress::Zlib::VERSION\n]"
f4c6fd49 105
80e5fcd6 106 If you haven't installed Compress-Zlib then search Compress::Zlib.pm
25f0751f 107 for a line like this:
f4c6fd49 108
e11a3f9e 109 $VERSION = "2.012" ;
f4c6fd49 110
80e5fcd6 111 2. If you are having problems building Compress-Zlib, send me a
112 complete log of what happened. Start by unpacking the Compress-Zlib
f4c6fd49 113 module into a fresh directory and keep a log of all the steps
114
115 [edit config.in, if necessary]
116 perl Makefile.PL
117 make
118 make test TEST_VERBOSE=1
119
f4c6fd49 120Paul Marquess <pmqs@cpan.org>