Frank Jance

Member
Jan 13, 2018
8
0
1
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
 

Frank Jance

Member
Jan 13, 2018
8
0
1
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463

Frank Jance

Member
Jan 13, 2018
8
0
1
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
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.
Hello,

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

Thank you.