473,387 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 5893
numberwhun
3,509 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,509 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,509 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,509 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

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

Similar topics

0
by: Matt Ittigson | last post by:
I'm getting the following error(s) running perlcc and can't find any explanation or work around. I'm including the errors and the script itself. I get the same errors on a cygwin+Win2k box as a...
25
by: Xah Lee | last post by:
Python Doc Problem Example: gzip Xah Lee, 20050831 Today i need to use Python to compress/decompress gzip files. Since i've read the official Python tutorial 8 months ago, have spent 30...
15
by: BuddyWork | last post by:
Hello, Are there a class within the Framework that support zip which Microsoft has written? I'm aware of the open source SharpLibZip. Thanks
3
by: Marc Gravell | last post by:
It might just be my tired eyes, but I can't see what is wrong in the following: I have a byte array filled with random data (with a fixed seed to make reproducable); I then compress and...
6
by: Adriano | last post by:
Can anyone recommend a simple way to compress/decomress a String in .NET 1.1 ? I have a random string of 70 characters, the output from a DES3 encryption, and I wish to reduce the lengh of it, ...
4
by: John | last post by:
Hi Is there a way in vb.net to zip files? Thanks Regards
0
by: vampire1986 | last post by:
Hi all. I have project compress file using C#. I'm using name space IO.Compression and i saw this code on Internet but it is compress to file bigger than source file. Can you help me, please.Thanks...
6
by: pooppoop | last post by:
Hi, and thanks for viewing my post. i have an odd result when trying to compress and decompress a string. it seems that when i replace the Zero's in the input stream it works, if not the string...
5
by: DR | last post by:
Why is its substantialy slower to load 50GB of gzipped file (20GB gzipped file) then loading 50GB unzipped data? im using System.IO.Compression.GZipStream and its not maxing out the cpu while...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.