Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member nitromax's Avatar
    Join Date
    Feb 2002
    Posts
    189

    Default Strange Perl Error Message...

    I am trying to run a very simple cgi script in the /usr/local/cpanel/base/3rdparty directory, and for some reason I am getting the following error message:

    ------------------------------------------------------
    Can't locate Carp/Heavy.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i686-linux /usr/lib/perl5/ERLVER /usr/lib/perl5/site_perl/5.6.0/i686-linux /usr/lib/perl5/site_perl/ERLVER /usr/lib/perl5/site_perl/5.6.0/i686-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl . /usr/lib/perl5/5.6.0/i686-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i686-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/5.6.0/Carp.pm line 109.
    -------------------------------------------------------

    The strange thing is that, as far as I know, Perl 5.6.0 has NEVER been installed on this server. So how is it that my script is trying to access the Carp/Heavy.pm file in the /5.6.0/i686-linux directory? That directory or version of perl is NOT on the server.

    Is there a fix for this? If not, how do I get CPanel to look at the right perl directory? (I call the script like this: http://domain.com:2082/3rdparty/script.cgi). My other scripts in this directory seem to work fine so far.

    When I type perl -v at the command line it says I have 5.6.1 i686-linux installed, and the Carp/Heavy.pm files do reside and work in the /5.6.1/i686-linux directory. So if I can get CPanel pointing to the right directory I should be good to go.

    Please help!
    Chad E. Roadhouse

  2. #2
    Member
    Join Date
    Aug 2001
    Posts
    839

    Default

    Your perl environment must be really screwed, it should at least look at both 5.6.0 and 5.6.1 as far as a path, both simultaneously.

    For a quick fix, just copy the Carp/Heavy structure into /usr/lib/perl5/5.6.0, to solve it.

    (so these are the same)
    /usr/lib/perl5/5.6.0/Carp/Heavy.pm
    /usr/lib/perl5/5.6.0/Exporter/Heavy.pm
    /usr/lib/perl5/5.6.1/Carp/Heavy.pm
    /usr/lib/perl5/5.6.1/Exporter/Heavy.pm

    After that.....
    I would probably take layer1's perl561 installer and run it again and see what kind of insane things are going on - it should give you some direction at least, if it doesn't solve the issue.
    ..............................


    http://www.fastservers.net/

    travis@fastservers.net
    ..............................

  3. #3
    Member nitromax's Avatar
    Join Date
    Feb 2002
    Posts
    189

    Default Well, it's better... but no go...

    I copied those over like you mentioned, and it no longer displays the error shown at the top of this post. But now it's showing this error message:


    open2: exec of ./3rdparty/cp-cgi/maxadmin.cgi failed at cpaneld.pl line 712


    Another quick question... Does the perl561 installer automatically install all of the perl modules that CPanel needs? Or is there a seperate utility to install all of those modules at once?
    Chad E. Roadhouse

  4. #4
    bdraco
    Guest

    Default

    [quote:9f6df35c9b][i:9f6df35c9b]Originally posted by nitromax[/i:9f6df35c9b]

    I copied those over like you mentioned, and it no longer displays the error shown at the top of this post. But now it's showing this error message:


    open2: exec of ./3rdparty/cp-cgi/maxadmin.cgi failed at cpaneld.pl line 712


    Another quick question... Does the perl561 installer automatically install all of the perl modules that CPanel needs? Or is there a seperate utility to install all of those modules at once?[/quote:9f6df35c9b]

    Try running that script with the -w switch from the command line

  5. #5
    Member nitromax's Avatar
    Join Date
    Feb 2002
    Posts
    189

    Default Ok... I'm having a bad day... I apologize!

    Well, I tried your suggestion to run the -w, and the #$%^& script was not even in the directory!!! I had been running the script from a directory with a similar name, but I changed the link in the control panel to point to the 3rdparty directory instead. I thought I had copied all those scripts over, but apparently not.

    cp file to directory... problem solved. I know... I'm an idiot! I seem t be having one of those years.

    Thanks
    Chad E. Roadhouse

Similar Threads & Tags
Similar threads

  1. Strange Message in /var/log/message
    By IRCBrasil in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 01-31-2007, 04:05 AM
  2. Strange EXIM message
    By Alexandre Duran in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-23-2005, 11:01 AM
  3. Strange message!
    By mickalo in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-06-2004, 10:06 PM
  4. Adding Perl Module - Error Message?
    By torwill in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-13-2002, 11:36 AM
  5. strange message
    By totalufo in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-24-2002, 03:34 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube