Connecting Tech Pros Worldwide Help | Site Map

IO::Compress::Gzip problem (CentOS)

Member
 
Join Date: Aug 2008
Location: South essex, England
Posts: 82
#1: Sep 10 '09
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.
numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,565
#2: Sep 11 '09

re: IO::Compress::Gzip problem (CentOS)


Quote:

Originally Posted by Adam01 View Post

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.

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
Member
 
Join Date: Aug 2008
Location: South essex, England
Posts: 82
#3: Sep 11 '09

re: IO::Compress::Gzip problem (CentOS)


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)
numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,565
#4: Sep 11 '09

re: IO::Compress::Gzip problem (CentOS)


Quote:

Originally Posted by Adam01 View Post

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)

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
Member
 
Join Date: Aug 2008
Location: South essex, England
Posts: 82
#5: Sep 12 '09

re: IO::Compress::Gzip problem (CentOS)


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?
numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,565
#6: Sep 13 '09

re: IO::Compress::Gzip problem (CentOS)


Quote:

Originally Posted by Adam01 View Post

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?

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
Member
 
Join Date: Aug 2008
Location: South essex, England
Posts: 82
#7: Sep 13 '09

re: IO::Compress::Gzip problem (CentOS)


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.
numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,565
#8: Sep 13 '09

re: IO::Compress::Gzip problem (CentOS)


Quote:

Originally Posted by Adam01 View Post

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.

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
Reply