lldeepakll

Well-Known Member
May 20, 2012
85
3
58
India
cPanel Access Level
Root Administrator
Hi,

I am getting below error while running easyapache on server.

-- Begin opt 'Apache 2.2' --
!! Failed to install CPAN Perl module(s) Crypt::PasswdMD5 !!

Can anyone please help how can I solve this issue.

Thanks
 

sunmacet

Active Member
Jan 24, 2009
27
8
53
cPanel Access Level
Root Administrator
I am getting the same error for Apache 2.4.

-- Begin opt 'Apache 2.4' --
!! Failed to install CPAN Perl module(s) Crypt::PasswdMD5 !!

Any advice?

Thank you!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello :)

Please run the following command to install the missing Perl modules:

Code:
# /usr/local/cpanel/bin/cpanm -n Digest::SHA1 Crypt::PasswdMD5
This should resolve the issue, however you may need to take additional steps if the issue persists. This includes:

1. Temporarily update /etc/yum.conf and temporarily remove 'perl-*' from the "exclude=" line.

2. Run the following command:

Code:
# yum install perl-CPAN
3. Add the 'perl-*' back into yum.conf.

We do have an internal case open to address this issue. For reference, the case number is 64015.

Thank you.
 

ZZPlab

Member
Mar 20, 2013
8
1
3
cPanel Access Level
Root Administrator
I get this error:
Code:
/usr/local/cpanel/bin/cpanm -n Digest::SHA1 Crypt::PasswdMD5
Testing connection speed...(using fast method)....Done
Ping:0 (ticks) Testing connection speed to cpan.weepee.org using pureperl...(cached .. 62600.00 bytes/s)...Done
Ping:0 (ticks) Testing connection speed to archive.cs.uu.nl using pureperl...(cached .. 59100.00 bytes/s)...Done
Ping:0 (ticks) Testing connection speed to mirror.netcologne.de using pureperl...(cached .. 59000.00 bytes/s)...Done
Ping:0 (ticks) Testing connection speed to cpan.mirror.versatel.nl using pureperl...(cached .. 58400.00 bytes/s)...Done
Ping:0 (ticks) Testing connection speed to mirror.leaseweb.com using pureperl...(cached .. 28000.00 bytes/s)...Done
Five usable mirrors located
Ping:9 (ticks) Testing connection speed to 209.188.92.54 using pureperl...(using cached speed)...Done
Ping:8 (ticks) Testing connection speed to 67.205.110.4 using pureperl...(using cached speed)...Done
Ping:8 (ticks) Testing connection speed to 208.74.125.42 using pureperl...(using cached speed)...Done
Three usable fallback mirrors located
Fetching [url=http://cpan.weepee.org/index.html]The Comprehensive Perl Archive Network - www.cpan.org[/url] (connected:0).......(request attempt 1/12)...Using dns cache file /root/.HttpRequest/cpan.weepee.org......searching for mirrors (mirror search attempt 1/3)...Ping:1 (ticks) Testing connection speed to 91.208.12.236 using pureperl...test failed...Done
Ping:1 (ticks) Testing connection speed to 91.208.12.235 using pureperl...test failed...Done
...0 usable mirrors located. (less then expected)......mirror search failed......(request attempt 2/12)...Resolving cpan.weepee.org...(resolve attempt 1/65)......searching for mirrors (mirror search attempt 2/3)...Ping:1 (ticks) Testing connection speed to 91.208.12.236 using pureperl...test failed...Done
Ping:1 (ticks) Testing connection speed to 91.208.12.235 using pureperl...test failed...Done
...0 usable mirrors located. (less then expected)......mirror search failed......(request attempt 3/12)...Resolving cpan.weepee.org...(resolve attempt 1/65)......searching for mirrors (mirror search attempt 3/3)...Ping:1 (ticks) Testing connection speed to 91.208.12.236 using pureperl...test failed...Done
Ping:1 (ticks) Testing connection speed to 91.208.12.235 using pureperl...test failed...Done
...0 usable mirrors located. (less then expected)......mirror search failed......(request attempt 4/12)...Resolving cpan.weepee.org...(resolve attempt 1/65)...cpan.weepee.org did not have any working mirrors.  Please check your internet connection or dns server. at /usr/local/cpanel/Cpanel/HttpRequest.pm line 603.
I removed 'PERL':
1. Temporarily update /etc/yum.conf and temporarily remove 'perl-*' from the "exclude=" line.
2. I did: yum install perl-CPAN
I get the error:
No package perl-CPAN available.

How to solve this?
 

KurtN.

Well-Known Member
Jan 29, 2013
95
1
83
cPanel Access Level
Root Administrator
What's the output of the following commands?
Code:
cat /etc/redhat-release
grep mirrorlist /etc/yum.repos.d/CentOS-Base.repo
grep = /etc/yum.conf
 
Last edited:

ZZPlab

Member
Mar 20, 2013
8
1
3
cPanel Access Level
Root Administrator
cat /etc/redhat-release
Code:
CentOS release 5.9 (Final)
grep mirrorlist /etc/yum.repos.d/CentOS-Base.repo
Code:
# If the mirrorlist= does not work for you, as a fall back you can try the 
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
grep = /etc/yum.conf
Code:
exclude=apache* bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* mysql* nsd* perl* php* proftpd* pure-ftpd* ruby* spamassassin* squirrelmail*
tolerant=1
errorlevel=1
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1h
# installonly_limit = 3
 

KurtN.

Well-Known Member
Jan 29, 2013
95
1
83
cPanel Access Level
Root Administrator
Yes, it does exist. File contents are empty.
Well, I'm a bit concerned by the fact that your original quote said that it was having a difficult time using CPAN to install a module. The following was in the output of your last error when you ran cpanm.
Please check your internet connection or dns server. at /usr/local/cpanel/Cpanel/HttpRequest.pm line 603.
However, could you please run this command:
Code:
/usr/local/cpanel/scripts/perlinstaller Digest::SHA1
 

ZZPlab

Member
Mar 20, 2013
8
1
3
cPanel Access Level
Root Administrator
This worked ok:
Code:
/usr/local/cpanel/scripts/perlinstaller Digest::SHA1
Then I tried again:
Code:
/usr/local/cpanel/bin/cpanm -n Digest::SHA1 Crypt::PasswdMD5
This worked ok now.

Then cPanel::Easy Apache > worked fine now.
Issue solved. Thanks!
 

arvid3nel

Member
Apr 2, 2013
14
1
53
cPanel Access Level
Root Administrator
I am getting the same error and the above recommendation doesn't seem to work.

Original error (while executing easyApache update 2.2.23 > 2.2.24, Easy::Apache v3.18.11)
Code:
-- Begin opt 'Apache 2.2' --
!! Failed to install CPAN Perl module(s) Crypt::PasswdMD5 !!
I executed the # yum install perl-CPAN as described in #3 and I got:
Code:
Updated:
  perl-CPAN.x86_64 0:1.9402-130.el6_4
The # /usr/local/cpanel/bin/cpanm -n Digest::SHA1 Crypt::PasswdMD5 gives me the same errors:
Code:
Testing connection speed...(using fast method)...Done
Ping:1 (ticks) Testing connection speed to cpan.weepee.org using pureperl...(cached .. 62500.00 bytes/s)...Done
Ping:1 (ticks) Testing connection speed to mirror.leaseweb.com using pureperl...(cached .. 56000.00 bytes/s)...Done
Ping:1 (ticks) Testing connection speed to mirror.ox.ac.uk using pureperl...(cached .. 30500.00 bytes/s)...Done
Ping:0 (ticks) Testing connection speed to mirror.netcologne.de using pureperl...(cached .. 29500.00 bytes/s)...Done
Ping:1 (ticks) Testing connection speed to mirror.bytemark.co.uk using pureperl...(cached .. 20666.67 bytes/s)...Done
Five usable mirrors located
Ping:8 (ticks) Testing connection speed to 208.74.125.42 using pureperl...(using cached speed)...Done
Ping:9 (ticks) Testing connection speed to 69.72.212.11 using pureperl...(using cached speed)...Done
Ping:8 (ticks) Testing connection speed to 67.205.110.4 using pureperl...(using cached speed)...Done
Three usable fallback mirrors located
Fetching http://cpan.weepee.org/index.html (connected:0).......(request attempt 1/12)...Using dns cache file /root/.HttpRequest/cpan.weepee.org......searching for mirrors (mirror search attempt 1/3)...Ping:1 (ticks) Testing connection speed to 91.208.12.236 using pureperl...test failed...Done
Ping:1 (ticks) Testing connection speed to 91.208.12.235 using pureperl...test failed...Done
...0 usable mirrors located. (less then expected)......mirror search failed......(request attempt 2/12)...Resolving cpan.weepee.org...(resolve attempt 1/65)......searching for mirrors (mirror search attempt 2/3)...Ping:1 (ticks) Testing connection speed to 91.208.12.236 using pureperl...test failed...Done
Ping:1 (ticks) Testing connection speed to 91.208.12.235 using pureperl...test failed...Done
...0 usable mirrors located. (less then expected)......mirror search failed......(request attempt 3/12)...Resolving cpan.weepee.org...(resolve attempt 1/65)......searching for mirrors (mirror search attempt 3/3)...Ping:1 (ticks) Testing connection speed to 91.208.12.236 using pureperl...test failed...Done
Ping:1 (ticks) Testing connection speed to 91.208.12.235 using pureperl...test failed...Done
...0 usable mirrors located. (less then expected)......mirror search failed......(request attempt 4/12)...Resolving cpan.weepee.org...(resolve attempt 1/65)...cpan.weepee.org did not have any working mirrors.  Please check your internet connection or dns server. at /usr/local/cpanel/Cpanel/HttpRequest.pm line 603.
and the /usr/local/cpanel/scripts/perlinstaller Digest::SHA1 command failed too giving the following:

Code:
info [perlinstaller] /root/.cpanel/datastore/Cpanel::Sys::Compiler::test_compile_gcc
Checking C compiler....C compiler (/usr/bin/gcc) OK (cached Tue Apr  2 00:33:17 2013)
Tuned C compiler not available because it is not enabled....Done
CPAN fallback is disabled since /var/cpanel/conserve_memory exists, and cpanm is available.
Installer: cpanm: 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: cpanm
spawn /usr/local/cpanel/bin/cpanm --notest --notest --verbose --perl=/scripts/cpan_sandbox/x86_64/perl Digest::SHA1
You have make /usr/bin/make
Falling back to HTTP::Tiny 0.009
You have /bin/tar: tar (GNU tar) 1.23
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.


My OS version cat /etc/redhat-release :
Code:
CentOS release 6.4 (Final)
grep mirrorlist /etc/yum.repos.d/CentOS-Base.repo
Code:
# If the mirrorlist= does not work for you, as a fall back you can try the
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
grep = /etc/yum.conf
Code:
exclude=apache* bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* mysql* nsd* perl* php* proftpd* pure-ftpd* ruby* spamassassin* squirrelmail*
tolerant=1
errorlevel=1
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release
# metadata_expire=90m
The /var/cpanel/conserve_memory file exists and is empty.
 

KurtN.

Well-Known Member
Jan 29, 2013
95
1
83
cPanel Access Level
Root Administrator
Hi arvid3nel,

Please run the following commands:
Code:
ls -l /usr/bin/perl /usr/local/bin/perl
rpm -qf /usr/bin/perl
/usr/bin/perl -v
/usr/local/bin/perl -v
 

arvid3nel

Member
Apr 2, 2013
14
1
53
cPanel Access Level
Root Administrator
Hi Kurt, thank you for your reply

I did run the commands you indicated and I am copying the results:

ls -l /usr/bin/perl /usr/local/bin/perl

Code:
-rwxr-xr-x 2 root root  6912 Mar 26 21:55 /usr/bin/perl*
-rwxr-xr-x 2 root root 17152 Jan 10 19:46 /usr/local/bin/perl*
rpm -qf /usr/bin/perl

Code:
perl-5.10.1-130.el6_4.x86_64
/usr/bin/perl -v
Code:
This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi

Copyright 1987-2009, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

/usr/local/bin/perl -v
Code:
This is perl, v5.8.8 built for x86_64-linux
Copyright 1987-2006, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
 

KurtN.

Well-Known Member
Jan 29, 2013
95
1
83
cPanel Access Level
Root Administrator
EasyApache is now using the system Perl. /usr/local/bin/perl, if I recall, is a remnant of the older cPanel Perl (<11.34).

Try moving your /usr/local/bin/perl out of the way.

Code:
mv /usr/local/bin/perl /usr/local/bin/perl.bak
ln -s /usr/bin/perl /usr/local/bin/perl
Afterwards, run this command:
Code:
/usr/local/cpanel/scripts/perlinstaller Digest::SHA1 Crypt::PasswdMD5
If this command works for you, then EasyApache should work for you, since that's all it does to install necessary Perl modules.
 

arvid3nel

Member
Apr 2, 2013
14
1
53
cPanel Access Level
Root Administrator
I did move / replace the old perl but I still get the same "failed" result.
(And EasyApache fails with the same error message.)

# ls -l /usr/bin/perl /usr/local/bin/perl
Code:
-rwxr-xr-x 2 root root 6912 Mar 26 21:55 /usr/bin/perl*
lrwxrwxrwx 1 root root   13 Apr  3 19:10 /usr/local/bin/perl -> /usr/bin/perl*

/usr/local/cpanel/scripts/perlinstaller Digest::SHA1 Crypt::PasswdMD5
gives me the following result:
Code:
info [perlinstaller] /root/.cpanel/datastore/Cpanel::Sys::Compiler::test_compile_gcc
Checking C compiler....C compiler (/usr/bin/gcc) OK (cached Wed Apr  3 19:10:47 2013)
Tuned C compiler not available because it is not enabled....Done
CPAN fallback is disabled since /var/cpanel/conserve_memory exists, and cpanm is available.
Installer: cpanm: 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: cpanm
spawn /usr/local/cpanel/bin/cpanm --notest --notest --verbose --perl=/scripts/cpan_sandbox/x86_64/perl Digest::SHA1 Crypt::PasswdMD5
You have make /usr/bin/make
Falling back to HTTP::Tiny 0.009
You have /bin/tar: tar (GNU tar) 1.23
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
You have Cpanel::HttpRequest 2.1
Testing connection speed...(using fast method)...Done
Ping:1 (ticks) Testing connection speed to cpan.weepee.org using pureperl...(cached .. 62600.00 bytes/s)...Done
Ping:0 (ticks) Testing connection speed to mirror.netcologne.de using pureperl...(cached .. 59000.00 bytes/s)...Done
Ping:1 (ticks) Testing connection speed to mirror.leaseweb.com using pureperl...(cached .. 56000.00 bytes/s)...Done
Ping:1 (ticks) Testing connection speed to mirror.bytemark.co.uk using pureperl...(cached .. 31000.00 bytes/s)...Done
Ping:1 (ticks) Testing connection speed to mirror.ox.ac.uk using pureperl...(cached .. 30500.00 bytes/s)...Done
Five usable mirrors located
Ping:8 (ticks) Testing connection speed to 67.205.110.4 using pureperl...(using cached speed)...Done
Ping:8 (ticks) Testing connection speed to 69.72.212.11 using pureperl...(using cached speed)...Done
Ping:8 (ticks) Testing connection speed to 208.74.125.42 using pureperl...(using cached speed)...Done
Three usable fallback mirrors located
Fetching http://cpan.weepee.org/index.html (connected:0).......(request attempt 1/12)...Using dns cache file /root/.HttpRequest/cpan.weepee.org......searching for mirrors (mirror search attempt 1/3)...Ping:1 (ticks) Testing connection speed to 91.208.12.236 using pureperl...test failed...Done
Ping:1 (ticks) Testing connection speed to 91.208.12.235 using pureperl...test failed...Done
...0 usable mirrors located. (less then expected)......mirror search failed......(request attempt 2/12)...Resolving cpan.weepee.org...(resolve attempt 1/65)......searching for mirrors (mirror search attempt 2/3)...Ping:1 (ticks) Testing connection speed to 91.208.12.236 using pureperl...test failed...Done
Ping:1 (ticks) Testing connection speed to 91.208.12.235 using pureperl...test failed...Done
...0 usable mirrors located. (less then expected)......mirror search failed......(request attempt 3/12)...Resolving cpan.weepee.org...(resolve attempt 1/65)......searching for mirrors (mirror search attempt 3/3)...Ping:1 (ticks) Testing connection speed to 91.208.12.236 using pureperl...test failed...Done
Ping:1 (ticks) Testing connection speed to 91.208.12.235 using pureperl...test failed...Done
...0 usable mirrors located. (less then expected)......mirror search failed......(request attempt 4/12)...Resolving cpan.weepee.org...(resolve attempt 1/65)...cpan.weepee.org did not have any working mirrors.  Please check your internet connection or dns server. at /usr/local/cpanel/Cpanel/HttpRequest.pm line 603.
System Expect failed with non-zero exit status: 25

All available perl module install methods have failed
 

KurtN.

Well-Known Member
Jan 29, 2013
95
1
83
cPanel Access Level
Root Administrator
At this point, it's probably best to submit a ticket to support.
We could continue this back and forth, but you'll definitely get more (and better) support than what you're getting from me.