469,352 Members | 2,107 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

IO::Compress::Gzip problem (CentOS)

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
7 5456
numberwhun
3,503 Expert Mod 2GB
@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
Adam01
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
3,503 Expert Mod 2GB
@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
Adam01
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
3,503 Expert Mod 2GB
@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
Adam01
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
3,503 Expert Mod 2GB
@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.

Similar topics

reply views Thread by Matt Ittigson | last post: by
15 posts views Thread by BuddyWork | last post: by
3 posts views Thread by Marc Gravell | last post: by
6 posts views Thread by Adriano | last post: by
4 posts views Thread by John | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.