IO::Compress::Gzip problem (CentOS)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Adam01
    New Member
    • Aug 2008
    • 83

    IO::Compress::Gzip problem (CentOS)

    Im not perl expert with perl, and I am trying to run a server script (that I didnt write).
    And perl reports:
    Code:
    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.
    BEGIN failed--compilation aborted at packet.pl line 5.
    Compilation failed in require at core.pl line 8.
    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.
    Last edited by numberwhun; Sep 11 '09, 05:27 AM. Reason: Please use code tags!
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    Originally posted by Adam01
    Im not perl expert with perl, and I am trying to run a server script (that I didnt write).
    And perl reports:
    Code:
    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.
    BEGIN failed--compilation aborted at packet.pl line 5.
    Compilation failed in require at core.pl line 8.
    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::G zip 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

    Comment

    • Adam01
      New Member
      • Aug 2008
      • 83

      #3
      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)

      Comment

      • numberwhun
        Recognized Expert Moderator Specialist
        • May 2007
        • 3467

        #4
        Originally posted by Adam01
        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

        Comment

        • Adam01
          New Member
          • Aug 2008
          • 83

          #5
          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?

          Comment

          • numberwhun
            Recognized Expert Moderator Specialist
            • May 2007
            • 3467

            #6
            Originally posted by Adam01
            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

            Comment

            • Adam01
              New Member
              • Aug 2008
              • 83

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

              Comment

              • numberwhun
                Recognized Expert Moderator Specialist
                • May 2007
                • 3467

                #8
                Originally posted by Adam01
                It turns out the perl script isnt built for activeperl, (only on win)
                So, Im back to the IO:Compress:Gzi p 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

                Comment

                Working...