Problem with Perl and cPanel Update (perl is needed by...)

mattin

Member
Feb 10, 2013
11
0
1
Bratislava, Slovakia
cPanel Access Level
Root Administrator
Twitter
Hello all,

I have a crucial problem with perl on my cPanel (11.36.0) server. I have moved to amazon so I want to use S3 storage as mounted drive, because of f3s need Perl with multithreaded enabled I build my own perl binaries on centos from perl.org with multithreading. I know that cPanel from 11.36 using its own perl so I thought it will not be a problem. But it completely broke my cPanel... Now I have cPanel partially fixed. I removed all perl binaries (/usr/local/bin/perl and also ln /usr/bin/perl). I added ln -s for perl in bin's pointing to /usr/local/cPanel/3rdparty/perl/514/bin/perl and also added PATH for the same dir.

It looks like now cPanel is fully working, but when I want to do upgrade or force reinstall of cPanel (its same for WHM upgrade, scripts/upcp or updatenow.static) I get dependency error with perl.

Code:
[20130312.182400]   All files Staged
[20130312.182400]   Testing if the newly downloaded RPMS can be installed without conflict
[20130312.182400]   Testing RPM transaction
[20130312.182400]   error: Failed dependencies:
[20130312.182400]       perl is needed by MySQL55-test-5.5.30-1.cp1136.x86_64
[20130312.182400] W Exit Code: 7
[20130312.182400] ***** FATAL: Test install failed: error: Failed dependencies:
[20130312.182400]       perl is needed by MySQL55-test-5.5.30-1.cp1136.x86_64
[20130312.182400]   The Administrator will be notified to review this output when this script completes
[20130312.182400] ***** FATAL: Error testing if the RPMs will install: Died at /usr/local/cpanel/scripts/updatenow.static line 12521.
[20130312.182400]   see http://go.cpanel.net/rpmcheckfailed for more information
[20130312.182400]   The Administrator will be notified to review this output when this script completes
[20130312.182400] E Detected events which require user notification during updatenow. Will send iContact the log
Notification => [email protected] via EMAIL [level => 1]
[20130312.182400]   Removing staged files and directories for binaries/linux-x86_64, cpanel
[20130312.182400]   Removing staged files and directories for x3
[20130312.182400]   Removing staged files and directories for x3mail
Can anybody help me how to revert this to original state and fix this issue? Thanks!
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,488
35
158
cPanel Access Level
DataCenter Provider
Please don't symlink system perl to cPanel perl. If you remove the perl excludes from /etc/yum.conf and run

Code:
 /usr/local/cpanel/scripts/check_cpanel_rpms --fix
It should take care of the problem
 

mattin

Member
Feb 10, 2013
11
0
1
Bratislava, Slovakia
cPanel Access Level
Root Administrator
Twitter
Oh that mighty cpanel scripts :). I don't have it on my server, but i downloaded whole scripts directory from another cpanel server with same version, run it. And it works like a charm! Update was done without problems. I removed symlinks and reinstall system perl. Looks like everything is working. Thank you! :)