NavigationUser loginSpam?See spam posts on this site? If so, please don't reply to the spam! Instead, just report the URL to the webmaster. Cost of War |
cpan not working ... 'Undefined subroutine &Compress::Zlib::gzopen called ..'On the freshly installed debian4, cpan gives me following error: Running make for M/MS/MSERGEANT/XML-Parser-2.34.tar.gz How do I fix this ? This is freshly installed debian4 and I Yakov |
cpan not working ...
You need to find out what software is required to do all your PERL work. Perhaps you just need to install 'zlibc'? To be safe you really need to check what is required by the PERL scripts - you may need to install a lot more than just a simple compression library.
experiencing the same failure
hello together,
i've an old sles8 here (slox4 on it), running a perl 5.8.0 ago. now i installed the latest stable 5.8.8 and i'm getting a similar failure as you described above:
Catching error: 'Undefined subroutine &Compress::Zlib::gzopen called at /usr/local/lib/perl5/5.8.8/CPAN/Tarzip.pm line 103.
' at /usr/local/lib/perl5/5.8.8/CPAN.pm line 274
CPAN::shell() called at /usr/local/bin/cpan line 198
did you solve your problem? what was it? has anyone else any ideas what's probably going wrong on my machine? 5.8.0 worked fine except updating spamassassin, so that was the reason for updating perl.
greetings
fritz
experiencing the same failure
The scripts may be written for the 'default' config/compile of PERL. On Debian (in fact most systems), PERL is not put into the /usr/local/ directory but the /usr directory (/usr/{bin,lib,include}). So the first thing to check is that perl is being invoked correctly. The next thing to do is to actually look at the file which is failing and see what line isn't working; you can usually figure out what's gone wrong from there.
cpan not working ...
I had the same trouble on another distro -- the solution (for me) was to delete all the Compress::Zlib files (or at least files under my perl installation containing the word "Compress" or "Zlib") and just restart CPAN and install what I needed. That way, a fresh Compress::Zlib (and whatever else I deleted) was downloaded from CPAN and installed.
The command I used to delete all the Compress::Zlib files was:
rm -rf `find /usr/lib/perl5/ | grep Compress | grep Zlib`
Note: my distro installs all its Perl stuff under /usr/lib/perl5, so you may need to look in multiple locations in Debian, as I know it installs some things under /usr and others under /usr/local
'Undefined subroutine &Compress::Zlib::gzopen called ..'
Try running 'cpan -r'
It'll take a while.