By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,712 Members | 1,958 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,712 IT Pros & Developers. It's quick & easy.

IO::Compress::Gzip problem (CentOS)

P: 83
Im not perl expert with perl, and I am trying to run a server script (that I didnt write).
And perl reports:
Expand|Select|Wrap|Line Numbers
  1. Can't locate IO/Compress/Gzip.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at packet.pl line 5.
  2. BEGIN failed--compilation aborted at packet.pl line 5.
  3. Compilation failed in require at core.pl line 8.
  4.  
I have looked around google, and tried using cpan, and installing the Gzip package. The package already exists though.

And I am clueless and in need of advice.
Sep 10 '09 #1
Share this Question
Share on Google+
7 Replies


numberwhun
Expert Mod 2.5K+
P: 3,503
@Adam01
So, you say that IO::Compress::Gzip is installed? Well, its not finding it in the path. If it is something you previously installed, did the installation complete or error out? I ask because even though the directory may be there in your path, it may not be complete.

What OS are you using?

Regards,

Jeff
Sep 11 '09 #2

P: 83
CentOS vps, linux isnt my primary OS.
I'l check the paths the script is using, and if Gzip actually exists.
Where are the modules located?
(locate doesnt work because of a missing db)
Sep 11 '09 #3

numberwhun
Expert Mod 2.5K+
P: 3,503
@Adam01
The @INC array contains all of the paths where modules would be located (other than those you built and specified that is). You can just write a quick script to print out that variable and see what the path(s) are.

Regards,

Jeff
Sep 11 '09 #4

P: 83
Aha I got it working, it required active perl.
How do you replace the original perl with active perl?
I added activeperl /bin/ to PATH, but it would conflict with the old perl?
Sep 12 '09 #5

numberwhun
Expert Mod 2.5K+
P: 3,503
@Adam01
You will just have to remove the link to the old Linux, that's all..... if you can. What I mean, is do you have administrative access to the machine? If so, then that is what you should do.

Regards,

Jeff
Sep 12 '09 #6

P: 83
It turns out the perl script isnt built for activeperl, (only on win)
So, Im back to the IO:Compress:Gzip problem again.
cpan, sais the module exists, but when I download the newer one, it fails to make it.
Sep 13 '09 #7

numberwhun
Expert Mod 2.5K+
P: 3,503
@Adam01
If that is the case, then you are going to have to go into the build directory and run the make by hand so you can see why it is failing and correct the issue. If its not building, then you have to find out why and fix it.

Regards,

Jeff
Sep 13 '09 #8

Post your reply

Sign in to post your reply or Sign up for a free account.