Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 13 of 13
  1. #1
    New Coder
    Join Date
    Nov 2010
    Posts
    38
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Perl error Can't locate Exporter.pm running any perl scripts ?

    I was in the process of upgrading a bugzilla install to the latest version on a cPanel server and now all perl scripts are producing errors like the below:

    Code:
    Can't locate Exporter.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/5.8.8/Carp.pm line 193.
    Compilation failed in require at /usr/lib/perl5/5.8.8/warnings.pm line 134.
    BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/warnings.pm line 134.
    Compilation failed in require at /usr/lib/perl5/5.8.8/File/Basename.pm line 52.
    BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/File/Basename.pm line 52.
    Compilation failed in require at ./checksetup.pl line 47.
    BEGIN failed--compilation aborted at ./checksetup.pl line 47.
    I cant even download Perl and reinstall as i get similar errors doing the install:

    Code:
    /usr/src/perl588installer]# ./install
    Can't locate Exporter.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/Cwd.pm line 171.
    BEGIN failed--compilation aborted at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/Cwd.pm line 171.
    Compilation failed in require at ./install line 7.
    BEGIN failed--compilation aborted at ./install line 7.

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by fuzioneer View Post
    I was in the process of upgrading a bugzilla install to the latest version on a cPanel server and now all perl scripts are producing errors like the below:

    Code:
    Can't locate Exporter.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/5.8.8/Carp.pm line 193.
    Compilation failed in require at /usr/lib/perl5/5.8.8/warnings.pm line 134.
    BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/warnings.pm line 134.
    Compilation failed in require at /usr/lib/perl5/5.8.8/File/Basename.pm line 52.
    BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/File/Basename.pm line 52.
    Compilation failed in require at ./checksetup.pl line 47.
    BEGIN failed--compilation aborted at ./checksetup.pl line 47.
    I cant even download Perl and reinstall as i get similar errors doing the install:

    Code:
    /usr/src/perl588installer]# ./install
    Can't locate Exporter.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/Cwd.pm line 171.
    BEGIN failed--compilation aborted at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/Cwd.pm line 171.
    Compilation failed in require at ./install line 7.
    BEGIN failed--compilation aborted at ./install line 7.
    what linux distro you use? you have a package manager? which one?
    the path or perl version seems to be the problem.

    best regards

  • #3
    New Coder
    Join Date
    Nov 2010
    Posts
    38
    Thanks
    6
    Thanked 0 Times in 0 Posts
    centos 5.5 x64

  • #4
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by fuzioneer View Post
    centos 5.5 x64
    why don't you use rpm or yum to install/uninstall? i don't remeber about yum but rpm have same flags which can be used to fix/force broken things.

    best regards

  • #5
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,872
    Thanks
    2
    Thanked 164 Times in 159 Posts
    Your perl installation is broken. Exporter.pm is a core module.

    Since your perl installation is already broken and 5.8.8 is fairly old, my recommendation is to upgrade by doing a complete fresh build from source of 5.12. Next best option, which is actually easier, would be to install the new version via yum.

  • #6
    New Coder
    Join Date
    Nov 2010
    Posts
    38
    Thanks
    6
    Thanked 0 Times in 0 Posts
    I managed to repair it to a degree by finding Exporter.pm and adding the path to it in my .bashrc i.e.

    PERL5LIB = /pathtoexporter.pm

    this then appended it to the INC path variable within Perl

    I still have a few issues that I am working through but at least perl runs now

  • #7
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    fusioneer, were you able to get things working?
    I am having the exact same problem, also after trying to install Bugzilla.

    I am a noob and do not know where to find .bashrc

    Any help would be appreciated. Thx!

  • #8
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by labrat View Post
    fusioneer, were you able to get things working?
    I am having the exact same problem, also after trying to install Bugzilla.

    I am a noob and do not know where to find .bashrc

    Any help would be appreciated. Thx!
    if you are root is in the /root/ directory, if not is in /home/yourusername/

    Edit: if you don't know how/where to find it how do you expect to change it and to solve your problems?
    another thing, what is the connection between .bashrc and your broken system?


    best regards
    Last edited by oesxyl; 04-13-2011 at 08:31 AM.

  • #9
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The connection is that fusioneer stated that he was able to run some scripts by updating the path to include the location of Exporter.pm

    I tried:
    cd /usr/local/src && wget -N http://httpupdate.cpanel.net/perl588installer.tar.gz && tar -xzvf perl588installer.tar.gz && chown -vhR 0:0 perl588installer && cd perl588installer && ./install

    But that gave me the same error.
    Can't locate Exporter.pm in @INC
    It seems my copy of Exporter.pm is corrupt.

  • #10
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by labrat View Post
    The connection is that fusioneer stated that he was able to run some scripts by updating the path to include the location of Exporter.pm
    and why do you need to change this in .bashrc ?
    - man bash will explain you how to use export to do same thing and the biggest difference is that after you logout and login again you don't have .bashrc messed someway.
    - man perlrun will tell you how to pass same info to the perl interpreter using -I flag.( same effect for logout/login)

    I tried:
    cd /usr/local/src && wget -N http://httpupdate.cpanel.net/perl588installer.tar.gz && tar -xzvf perl588installer.tar.gz && chown -vhR 0:0 perl588installer && cd perl588installer && ./install
    this will mess the system harder for two reasons:
    - you use a broken perl to build the package
    - perl have no idea what other dependences you need so will complain again about same problem
    use your package manager to install/dezinstall and/or build packages, yum, rpm, apt whatever.

    But that gave me the same error.
    Can't locate Exporter.pm in @INC
    It seems my copy of Exporter.pm is corrupt.
    1. that doesn't mean is corrupt, mean that can't be find
    2. is a text file with code inside, can becorrupt only if is truncated someway or something/somebody write something inside.

    best regards

  • #11
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy

    Thanks for the advice.

    I actually found another copy of Exporter.pm in another directory and moved it into a directory that was being searched. This allowed me to run some scripts but cPanel still isn't working.

    I'll try a few things and see where I end up.

    And all for the sake of trying to add Bugzilla... Ugh.

    Worst case, I'll be up for the next few days reinstalling the system from scratch along with about 40 sites. Super UGH.

  • #12
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by labrat View Post
    Thanks for the advice.

    I actually found another copy of Exporter.pm in another directory and moved it into a directory that was being searched. This allowed me to run some scripts but cPanel still isn't working.

    I'll try a few things and see where I end up.

    And all for the sake of trying to add Bugzilla... Ugh.

    Worst case, I'll be up for the next few days reinstalling the system from scratch along with about 40 sites. Super UGH.
    read the man page for the package manager there are different flags so you can fix/dezinstall broken packages.
    i have the feeling that you don't use to make backups since it take few days to reinstall, is a bad habit.

    good luck and best regards

  • #13
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by oesxyl View Post
    good luck and best regards

    Thank you! I am back in business and still determined to get bugzilla working. Lol!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •