I get the following error when trying to build anything in CPAN: "Undefined subroutine &Compress::Zlib::gzopen"
I am wondering, is there any possible way, without editing CPAN.pm, to tell CPAN to use gzip command rather than gzip functions in Compress::Zlib?
In the CPAN.pm I see this:
if ($CPAN::META->has_inst("Compress::Zlib")) {
my $gz = Compress::Zlib::gzopen($file,"rb") or
die "Could not gzopen $file";
$ret = bless {GZ => $gz}, $class;
} else {
my $pipe = "$CPAN::Config->{gzip} --decompress --stdout $file |";
my $fh = FileHandle->new($pipe) or die "Could not pipe[$pipe]: $!"
+;
binmode $fh;
$ret = bless {FH => $fh}, $class;
}
$ret;
Which tells me that it sees if Compression::Zlib is installed, and if so it uses functions from there, but if not it will use gzip as configured in CPAN config file. In MyConfig.pm I have gzip's path, so I'd rather use it. I do not have root access on this machine, so I need ways to figure this out without root access.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.