Update: I finally got this working. Details are at the bottom of Re^2: How do you compile PerlIO::gzip for AS Perl 5.10?

I've got code that reads and processes the contents of gzip files. It needs to run on both AS Perl 5.10 and AS Perl 5.8. When I originally wrote it and 5.8 was the latest Perl, I used PerlIO::gzip obtained from ppm and life was good. Now that I have to support both 5.10 and 5.8 I thought I'd just ppm install PerlIO::gzip for 5.10, but no such luck. It's not there on the PPM repos I kinow about. My attempts to download and build it with CPAN using all the normal mechanisms that work for other modules don't work for this module. My suspicion is that it's a c-lib and/or c-header issues; like I don't have the right gzip lib/header version installed on my workstation.

So all that leads to this question - has anyone ever compiled PerlIO::gzip for perl 5.10 for Windows versions of perl? If so, what was the magic incantation you used to achieve success?

Now, in attempt to keep the responses on topic, let me address some tangents that might come to a fellow monk's mind: Yes, I can use PerlIO::via::gzip, but 1. it won't work under Perl 5.8, so I have to complicate my code and keep two different gzip handling modules around, 2. PerlIO::via::gzip has a number of dependencies whereas PerlIO::gzip does not, and 3(ish). I suspect, but could be wrong, that since it's a via module PerlIO::via::gzip will run slower than PerlIO::gzip. None of these are showstoppers, but I'd prefer to keep this system as simple and fast as possible.

Thanks !

--DrWhy

"If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."


In reply to How do you compile PerlIO::gzip for AS Perl 5.10? by DrWhy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.