Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Restoring System Perl Modules

Discussion in 'General Discussion' started by Frank Jance, Jan 13, 2018.

  1. Frank Jance

    Frank Jance Member

    Joined:
    Jan 13, 2018
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Well, I hate to have this be my first post here, but I have a problem of my own making. I believe I may have over-written some system Perl (5.8.8) modules. I had installed perlbrew to be able to use Perl 5.26.1 and when I couldn't get it to install a module, I used the wrong command path for cpanm which overwrote(?) some of the system modules. I need to see if there's an easy way to restore the system modules back to what they were before. I don't know if this would have helped, but Backup Configuration wasn't enabled before today since this is a newer account.

    Here's what's happening. I'm trying to run a script that simply prints out @INC and this is what I get:

    # /home/user/scripts/print_inc_list.pl
    Attempt to reload List/Util.pm aborted.
    Compilation failed in require at /home/user/perl5/lib/perl5/x86_64-linux/Scalar/Util.pm line 23.
    Compilation failed in require at /home/user/perl5/lib/perl5/Moo.pm line 14.
    BEGIN failed--compilation aborted at /home/user/perl5/lib/perl5/Moo.pm line 14.
    Compilation failed in require at /home/user/perl5/lib/perl5/Email/Sender/Simple.pm line 4.
    BEGIN failed--compilation aborted at /home/user/perl5/lib/perl5/Email/Sender/Simple.pm line 4.
    Compilation failed in require at /home/user/scripts/../perl/Modules/EmailSender.pm line 12.
    BEGIN failed--compilation aborted at /home/user/scripts/../perl/Modules/EmailSender.pm line 12.
    Compilation failed in require at /home/user/scripts/inc_list_latest.pl line 8.
    BEGIN failed--compilation aborted at /home/user/scripts/inc_list_latest.pl line 8.


    If it is a problem with the modules, as I suspect, I don't know how many were inadvertently updated. Do I need to completely reinstall cPanel, or is there a less invasive way to fix this situation?

    Thanks,
    Frank

    CENTOS 6.9 virtuozzo v68.0.23
     
  2. Frank Jance

    Frank Jance Member

    Joined:
    Jan 13, 2018
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    I could still use some help with this. Since I posted, I did a force reinstall at Home > Cpanel > Upgrade to Latest Version. That didn't help me. And just today, I upgraded to v68.0.26 but that didn't solve my problem either, so I must have changed something at a low level that an update can't touch.

    Is there a way to fix this without doing a complete erase and install?

    Thanks,
    Frank

    CENTOS 6.9 virtuozzo v68.0.26
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Frank Jance

    Frank Jance Member

    Joined:
    Jan 13, 2018
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Thanks for getting back to me, Michael. I followed the instructions from your 2nd link, first deleting /home/.cpan/ then running cpan> o conf init. Neither one worked. Then I stumbled across this link:

    https://askubuntu.com/questions/537963/several-perl-packages-including-cpan-and-re-pl-not-working-after-upgrade-from


    which recommended re-naming the /home/user/perl5 directory and that seems to have solved the problem. I'm having to reinstall every module that I had installed before, but at least I'm not getting that error anymore.

    Frank
     
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I'm glad to see that solved the issue. Let us know if you have any additional questions.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice