Perl Errors during CPanel Install

usmanbsd

Registered
Feb 19, 2013
3
0
1
cPanel Access Level
Root Administrator
After CPanel finished installing, I could not find it running on 2086 or 2087 and when i restart cpanel service I see it compiling packages and it gets stuck at rrdtool install with error about module ExtUtils-MakeMaker.


Now when I try to install it with command
/scripts/perlinstaller --force ExtUtils::MakeMaker


Checking if you have DirHandle 0 ... Yes (1.03)
Building ExtUtils-MakeMaker-6.64 ... make: *** No rule to make target `/usr/lib64/perl5/CORE/config.h', needed by `Makefile'. Stop.
FAIL
! Installing ExtUtils::MakeMaker failed. See /home/.cpanm/build.log for details.
System Expect failed with non-zero exit status: 1

CPAN fallback mode is active!
Installer: cpan: Not Available: Perl Expect (Could not load expect perl module: Can't locate IO/Tty.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/cpanel/Cpanel/cPCPAN/Install.pm line 64.
)
Method: Using System Expect, Installer: cpan
spawn /usr/local/cpanel/scripts/realperlinstaller --force ExtUtils::MakeMaker
Can't locate CPAN.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/cpanel/scripts/realperlinstaller line 28.
BEGIN failed--compilation aborted at /usr/local/cpanel/scripts/realperlinstaller line 28.
System Expect failed with non-zero exit status: 2

All available perl module install methods have failed

And if I try to install CPAN with command /scripts/perlinstaller --force CPAN

Checking if you have DirHandle 0 ... Yes (1.03)
Building ExtUtils-MakeMaker-6.64 ... make: *** No rule to make target `/usr/lib64/perl5/CORE/config.h', needed by `Makefile'. Stop.
FAIL
! Installing ExtUtils::MakeMaker failed. See /home/.cpanm/build.log for details.
! Bailing out the installation for CPAN-1.9800. Retry with --prompt or --force.
System Expect failed with non-zero exit status: 1

CPAN fallback mode is active!
Installer: cpan: Not Available: Perl Expect (Could not load expect perl module: Can't locate IO/Tty.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/cpanel/Cpanel/cPCPAN/Install.pm line 64.
)
Method: Using System Expect, Installer: cpan
spawn /usr/local/cpanel/scripts/realperlinstaller --force CPAN
Can't locate CPAN.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/cpanel/scripts/realperlinstaller line 28.
BEGIN failed--compilation aborted at /usr/local/cpanel/scripts/realperlinstaller line 28.
System Expect failed with non-zero exit status: 2

All available perl module install methods have failed

I have also tried
/scripts/checkperlmodules --force
/scripts/fixperl


/usr/loca/bin/perl in linked to /usr/bin/perl

Perl version and OS are below

# cat /etc/redhat-release
CentOS release 6.3 (Final)

# rpm -qa|grep perl
perl-Pod-Escapes-1.04-127.el6.x86_64
perl-Pod-Simple-3.13-127.el6.x86_64
perl-libs-5.10.1-127.el6.x86_64
perl-Module-Pluggable-3.90-127.el6.x86_64
perl-5.10.1-127.el6.x86_64
perl-version-0.77-127.el6.x86_64
perl-URI-1.40-2.el6.noarch


Any quick help will be really appreciated.
Before the install I added those exceptions in yum.conf and I am installing stable release.



Regards
usman
 

usmanbsd

Registered
Feb 19, 2013
3
0
1
cPanel Access Level
Root Administrator
On another same system, before the installation I installed perl-devel using yum and it also installed some perl modules as dependencies.

After that CPanel installed fine, Was it ok to install perl-devel using yum prior to install? Or it can break system?

Regards
usman