PPM wont install packages undefined gzopen

Posted by arafeandur on 2007-03-08 12:35
Forums: PPM | OS: Windows XP Pro

I just upgraded to Compress:Zlib 2.004 and now whenever I try to install packages in PPM, I get:

ppm> install 21
Package 21:
====================
Install 'IO-Compress-Zlib' version 2.004 in ActivePerl 5.8.7.815.
====================
Downloaded 105566 bytes.
Error: Undefined subroutine &Compress::Zlib::gzopen called at
C:/Perl/site/lib/IO/Zlib.pm line 440, <$__ANONIO__> line 198.

It looks like my system is effectively broken.

Any clues on how to resolve this? I checked, and Compress::Zlib *is* installed.

Ah
arafeandur | Thu, 2007-03-08 12:38

I loaded up zlib.pm in Komodo, and it looks like IO::Compress:Gzip is missing.

I'm going to try manually downloading and unzipping it.

arafeandur | Mon, 2007-03-12 08:27

Doesn't look like I can *find* a downloadable zlib.

Has *anyone* else experienced this problem?

Undefined subroutine &Compress::Zlib::gzopen called at C:/Perl/site/lib/IO/Zlib.pm line 440, <$__ANONIO__> line 453.

arafeandur | Mon, 2007-03-12 09:55

Ok, I don't know *how* to fix this, but uninstalling ActivePerl, build 817 and installing the latest build (820) fixed it. The newest ppm (ppm4) is able to install packages just fine. It even retained all the packages I already had installed. Painless.

Good job, Active State!

kevinw
ActiveState Staff
Mon, 2007-03-12 12:22

I'm happy to hear you found a solution!

If you're upgrading between versions with the same minor version (5.6.0 to 5.6.1 or 5.8.7 to 5.8.8, for example) you just need to:

  • remove ActivePerl using the Add/Remove Programs control panel (on Windows only)
  • delete all files and directories in the ActivePerl installation directory except the site directory and its contents (all platforms)
  • install the new ActivePerl into the same directory

All of the modules installed by PPM are kept in the site directory and its subdirectories, so those will be kept and brought into the PPM configuration at installation time.

Cheers,

kjw

arafeandur | Mon, 2007-03-12 12:48

Thanks for the tip.

Is there a list of PPM4 repositories anywhere?

Is PPM4 backwards compatible with PPM3 repositories?

kevinw
ActiveState Staff
Mon, 2007-03-12 12:52

PPM 4 is backwards-compatible with existing repositories, so there isn't a separate list of respositories needed. Just keep using your favourite repositories and everything should work just fine.

Cheers,

kjw

Casteele | Sun, 2007-08-19 20:55

Hi,

I'm having the same problem.. But uninstalling 817 w/ppm3 and installing 820 w/ppm4 is NOT an option for me at this time. Does anyone know what the problem is, and how to solve it? I have looked at both the Archive::Tar and Compress::Zlib PM's, and gzopen does indeed exist within the zlib module, but perl can't seem to find it!

weinerk | Tue, 2007-09-04 21:24

I had the same problem
I resolved it by installing the latest IO-Compress-Base

http://search.cpan.org/~pmqs/IO-Compress-Base-2.006/