Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I need to install Compress::Zlib into my lib folder on my web site because, well, my host doesn't have it. The problem is, all the versions are a version I can't work with (sorry for my lack of terminology).

Can someone make it or find a copy of this module where all I need to do is tranfer the package over to my web directory?

Replies are listed 'Best First'.
Re: installable Compress::Zlib
by jweed (Chaplain) on Feb 04, 2005 at 07:24 UTC
Re: installable Compress::Zlib
by Corion (Patriarch) on Feb 04, 2005 at 07:14 UTC

    No. Compress::Zlib contains a binary component that needs to be compiled with exactly the same C compiler that your Perl was compiled with. Without knowing the operating system, Perl version and C compiler of your host, it is not possible to create a ready-to-install version for you.

    If you have shell access on your host, the following command typed in the terminal will output all necessary information:

    perl -V

    If you don't have shell access, you will need to upload a CGI script that does the equivalent. I haven't done much CGI programming lately, so I don't have the easy method for this handy - the following untested code should do in a CGI what perl -V does on the commandline:

    #!/usr/bin/perl -wT use strict; use Config(myconfig); print "Content-Type: text/plain\r\n\r\n"; print myconfig();