roba

Member
Jan 20, 2004
12
0
151
Prague, CZ
cPanel Access Level
Root Administrator
I've never worked with SSH before and don't know the command to login as root. :eek:
I've figured out to use Terminal on my Mac OS X , but have no clue what to enter in order to even connect to my server so I can make it to the upgrade commands.
Could someone help me out getting started? :)
If you can do it from windows, then use Putty as your SSH client. I don't know any SSH client for X, but you can check list here and download some.

Once you have SSH client installed, all you have to do (usually) is to enter name of host you want to connect to - that will be main IP address of your server. Connection method is SSH-2, port is usually 22.

When you connect, server asks you for username, enter root and then your password. Now you are in and you can execute commands needed for Perl upgrade. Just follow instructions from cPanel's auto email:

The version of perl you are running (v5.8.7) is too old. There are known problems that cannot be worked around with this version of perl. It is HIGHLY recommended that you upgrade to v5.8.8 or later. Any module install failures should be ignored until perl has been upgraded as some modules will not be able to install with this version of perl.

You can ensure that each installed module gets carried over to
the updated Perl build with the use of the "autobundle" CPAN feature.

You can create a bundle of the currently installed modules
by executing the following while logged in via SSH as root:

perl -MCPAN -e 'autobundle'

Once completed, you should see the following output before getting
returned to the shell:

'Wrote bundle file /home/.cpan/Bundle/Snapshot_2007_08_16_00.pm'

Once you've made note of this file name, you can proceed with the update.

On linux based systems, you should be able to update Perl using
the installer provided at layer1.cpanel.net:

cd /root
wget http://layer1.cpanel.net/perl588installer.tar.gz
tar -zxf perl588installer.tar.gz
cd perl588installer
./install

On FreeBSD based systems, you will need to install Perl from ports.

This will take a few minutes, so take a coffee break and check
the status when you return. Once the update has completed, you
can install all previously installed modules from the CPAN bundle
by executing the following (with the bundle name adjusted to the
name of the bundle generated earlier):

perl -MCPAN -e 'install Bundle::Snapshot_2007_08_16_00'

This should install each of the modules present in the bundle,
assuming there are no issues during the installation (dependencies,
network, etc).

Once this has completed, execute the following to ensure that all modules
required by cPanel are installed, and restart cPanel:

/usr/local/cpanel/bin/checkperlmodules
/usr/local/cpanel/startup
Now wait and prey to all Gods for error-less result. :D
 
Last edited:

felix220

Active Member
Aug 12, 2001
29
0
301
module errors

As of this weekend we're getting this msg below from multiple servers.. where the Perl upgrade has already been done. It applies to 3 modules.

Does anyone know if we need to go through each server and deal with this manually or is there an automagic solution. Had to happen on USA holiday of course when tech people are absent :)


------------------
Subject: [checkperlmodules] The perl module IO::Uncompress::Gunzip could not be installed.
------------------
Subject: [checkperlmodules] The perl module IO::Compress::Gzip could not be installed.
-----------------
Subject: [checkperlmodules] The perl module Archive::Zip could not be installed.


This module is required by cPanel, and the system may not function correctly until it is installed, and functional. Below is the results of the auto-install attempt:


Test Run
==============
IO::Compress::Base version 2.006 required--this is only version 2.005 at /usr/lib/perl5/site_perl/5.8.8/IO/Compress/RawDeflate.pm line 10.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/IO/Compress/RawDeflate.pm line 10.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/IO/Compress/Gzip.pm line 11.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/IO/Compress/Gzip.pm line 11.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Compress/Zlib.pm line 13.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Compress/Zlib.pm line 13.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Archive/Zip.pm line 24.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Archive/Zip.pm line 24.
Compilation failed in require at - line 1.
BEGIN failed--compilation aborted at - line 1.
 

SonicGT

Registered
Mar 15, 2007
2
0
151
As of this weekend we're getting this msg below from multiple servers.. where the Perl upgrade has already been done. It applies to 3 modules.

Does anyone know if we need to go through each server and deal with this manually or is there an automagic solution. Had to happen on USA holiday of course when tech people are absent :)


------------------
Subject: [checkperlmodules] The perl module IO::Uncompress::Gunzip could not be installed.
------------------
Subject: [checkperlmodules] The perl module IO::Compress::Gzip could not be installed.
-----------------
Subject: [checkperlmodules] The perl module Archive::Zip could not be installed.


This module is required by cPanel, and the system may not function correctly until it is installed, and functional. Below is the results of the auto-install attempt:


Test Run
==============
IO::Compress::Base version 2.006 required--this is only version 2.005 at /usr/lib/perl5/site_perl/5.8.8/IO/Compress/RawDeflate.pm line 10.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/IO/Compress/RawDeflate.pm line 10.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/IO/Compress/Gzip.pm line 11.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/IO/Compress/Gzip.pm line 11.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Compress/Zlib.pm line 13.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Compress/Zlib.pm line 13.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Archive/Zip.pm line 24.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Archive/Zip.pm line 24.
Compilation failed in require at - line 1.
BEGIN failed--compilation aborted at - line 1.

I'm getting the same errors with my newly installed perl
 

roba

Member
Jan 20, 2004
12
0
151
Prague, CZ
cPanel Access Level
Root Administrator
These errors can be fixed by this:

Code:
wget http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/IO-Compress-Base-2.006.tar.gz
gzip -dc IO-Compress-Base-2.006.tar.gz | tar -xof -
cd IO-Compress-Base-2.006
perl Makefile.PL
make
make test
make install
/scripts/checkperlmodules
It was posted in another thread - thanks!, works like a charm. :D
 

darkmavis

Registered
Jun 4, 2007
2
0
151
Not works!
Code:
=> `IO-Compress-Base-2.006.tar'
Risoluzione di cpan.panu.it in corso... 81.208.22.71
Connessione a cpan.panu.it|81.208.22.71:80... connesso.
HTTP richiesta inviata, aspetto la risposta... 404 Not Found
10:03:41 ERRORE 404: Not Found.
Now i'm unable to edit any dns zone...
 

felix220

Active Member
Aug 12, 2001
29
0
301
new error

all previous done and working but now a new error..

Subject: [checkperlmodules] The perl module Net::FTPSSL could not be installed.

will this be autofixed also?
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,481
35
208
cPanel Access Level
DataCenter Provider
This is probably a bit overkill, but try:

Code:
/scripts/autorepair io_compress_gzip
/scripts/perlinstaller --force Net::SSLeay
/scripts/checkperlmodules
 

soulmaster

Active Member
Mar 27, 2007
25
0
151
Please tell me where I can find your apache src

helo
i upgraded perl to version 5.8.8
after upgrade i run perl -MCPAN -e 'install Bundle::Snapshot_2007_09_04_00'
during execution of this command it gave me the following message:
Please tell me where I can find your apache src

so where can i find apache source ?

Regards D.S
 

koolcards

Well-Known Member
Oct 8, 2003
146
0
166
Tampa, Fl
all previous done and working but now a new error..

Subject: [checkperlmodules] The perl module Net::FTPSSL could not be installed.

will this be autofixed also?

http://forums.cpanel.net/showthread.php?t=70633
cpanelnick says:

rm /home/.cpcpan/modules.version /home/.cpcpan/modules.versions
/scripts/perlinstaller --force Net::SSLeay


soulmaster said:
so where can i find apache source ?

/home/cpins/installd/buildapache/apache_1.3.<xx>/src

or do what I did and skip it by striking a <return> :cool:
 
Last edited:

HappymanUK

Well-Known Member
May 3, 2003
255
1
168
helo
i upgraded perl to version 5.8.8
after upgrade i run perl -MCPAN -e 'install Bundle::Snapshot_2007_09_04_00'
during execution of this command it gave me the following message:
Please tell me where I can find your apache src

so where can i find apache source ?

Regards D.S
Same problem here - Any ideas ??

Thanks
Daniel
 

HappymanUK

Well-Known Member
May 3, 2003
255
1
168
I believe the location is actually:

/home/cpapachebuild/buildapache/apache_1.3.37/src

I entered this, and got further. However I am now getting the following:

Code:
will write error_log to: t/logs/error_log
letting apache warm up...\c
done
/usr/bin/perl t/TEST 0
still waiting for server to warm up...............not ok
server failed to start! (please examine t/logs/error_log) at t/TEST line 95.
make: *** [run_tests] Error 255
  GOZER/mod_perl-1.30.tar.gz
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force
Running make for T/TI/TIMB/GoferTransport-http-1.012.tar.gz
  Has already been unwrapped into directory /home/.cpan/build/GoferTransport-http-1.012-tzjkIR

  CPAN.pm: Going to build T/TI/TIMB/GoferTransport-http-1.012.tar.gz

Warning: Prerequisite 'Apache::Util => 0' for 'T/TI/TIMB/GoferTransport-http-1.012.tar.gz' failed when processing 'G/GO/GOZER/mod_perl-1.30.tar.gz' with 'make_test => NO'. Continuing, but chances to succeed are limited.
cp lib/DBD/Gofer/Transport/http.pm blib/lib/DBD/Gofer/Transport/http.pm
cp lib/DBI/Gofer/Transport/mod_perl.pm blib/lib/DBI/Gofer/Transport/mod_perl.pm
Manifying blib/man3/DBD::Gofer::Transport::http.3
Manifying blib/man3/DBI::Gofer::Transport::mod_perl.3
  TIMB/GoferTransport-http-1.012.tar.gz
  /usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00.load.........ok 1/2
t/00.load.........NOK 2/2#   Failed test 'use DBI::Gofer::Transport::mod_perl;'
#   at t/00.load.t line 5.
#     Tried to use 'DBI::Gofer::Transport::mod_perl'.
#     Error:  Can't locate Apache/Constants.pm in @INC (@INC contains: /home/.cpan/build/GoferTransport-http-1.012-tzjkIR/blib/lib /home/.cpan/build/GoferTransport-http-1.012-tzjkIR/blib/arch /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl . /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl .) at /home/.cpan/build/GoferTransport-http-1.012-tzjkIR/blib/lib/DBI/Gofer/Transport/mod_perl.pm line 36.
# BEGIN failed--compilation aborted at t/00.load.t line 5.
# Compilation failed in require at (eval 15) line 2.
# BEGIN failed--compilation aborted at (eval 15) line 2.
# Testing DBD::Gofer::Transport::http 0.009533
Use of uninitialized value in concatenation (.) or string at t/00.load.t line 9.
# Testing DBI::Gofer::Transport::mod_perl
# Looks like you failed 1 test of 2.
t/00.load.........dubious
        Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 2
        Failed 1/2 tests, 50.00% okay
t/perlcritic......skipped
        all skipped: developer-only tests
t/pod-coverage....skipped
        all skipped: Test::Pod::Coverage 1.04 required for testing POD coverage
t/pod.............ok
Failed Test Stat Wstat Total Fail  List of Failed
-------------------------------------------------------------------------------
t/00.load.t    1   256     2    1  2
2 tests skipped.
Failed 1/4 test scripts. 1/4 subtests failed.
Files=4, Tests=4,  0 wallclock secs ( 0.26 cusr +  0.02 csys =  0.28 CPU)
Failed 1/4 test programs. 1/4 subtests failed.
make: *** [test_dynamic] Error 255
  TIMB/GoferTransport-http-1.012.tar.gz
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force
[email protected] [~/perl588installer]#
Any one got any ideas ??

Thanks
Daniel
 

SunDanceKid

Member
Dec 26, 2005
19
0
151
Need a little help

I just tried the first part of the Cpanel emal

You can create a bundle of the currently installed modules
by executing the following while logged in via SSH as root:

perl -MCPAN -e 'autobundle'
It ran for a little bit and I got the following error:
Going to read /home/.cpan/sources/modules/02packages.details.txt
CPAN: Compress::Zlip loaded OK (v2.001)
Can't locate object method "new" via package "IO::Uncompress::GunZip" at user/lib/perl15/site_perl/5.8.7/Compress/Zlib.pm line 140
I'm completely lost now. Any help would be MUCH appreciated.
 

knipper

Well-Known Member
Sep 4, 2001
107
0
316
Mail Problems after upgrade

Hey gang...

Sorry If I missed a solution somewhere in another thread as I have followed all the links and done all the steps as previously mentioned but am still having a problem.

I ran the steps earlier in the thread about 24 hours ago to update pearl to 5.8.8 and thought all was well. This AM, I noticed I had several e-mails from yesterday afternoon during the install that there were problems. I then noticed I had not gotten my normal overnight cpanel status e-mails (Including the pearl update message I had been getting).
Then checked several accounts for mail... and realized none was getting through for any of the domains.

SO... I came back to this thread, followed the links and performed the steps for repair I thought may solve the problem, but to no avail. I am still not getting mail.

I have done the following:
/scripts/autorepair io_compress_gzip
/usr/local/cpanel/bin/checkperlmodules
/scripts/upcp


Any help would be greatly appreciated!
 

knipper

Well-Known Member
Sep 4, 2001
107
0
316
OK some addL info

I started poking around via WHM, and noticed that during an update to Cpanel 11 my custom exim configuration was kept, and cpanel update did not change it. but was using my original exim.conf file. I assume when I made the changes to pearl yesterday it somehow broke exim in some way. I updated my exim file, but when I went to FTP to get the copy of the file to transfer to my local machine, I am also unable to now FTP to any of the domains on the server.

Ugh.

I attemped to find some documentation on the CPanel 11 update, but I am unable to view the PDF without getting an error.

Today just seems to not be my day!

Any suggestions or assistance is appreciated! Just point me the right direction!
 

knipper

Well-Known Member
Sep 4, 2001
107
0
316
OK... Same as the poster above it appears my Pearl install did not go completly through.

I also get the error:
Can't locate object method "new" via package "IO::Uncompress::GunZip" at user/lib/perl15/site_perl/5.8.7/Compress/Zlib.pm line 140

I have followed previous suggestions to repair... being:
/scripts/autorepair io_compress_gzip

I was using clamAV via pearl and during a reinstall, I get the same error shown above.

Suggestions?

PS... when I check pearl it does state 5.8.8
 

lehels

Well-Known Member
Jul 10, 2006
91
0
156
DNSOnly CGI PERL [upgrade] problem

On this Configuration:
WHM 11.2.0 cPanel 11.11.0-DNS16984
CENTOS Enterprise 4.5 i686 - WHM X v3.1.0

On perl Upgrade > 5.8.8

Expat.c:2857: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2857: error: syntax error before "parser"
Expat.xs:2167: error: `cbv' undeclared (first use in this function)
Expat.xs:2167: error: syntax error before ')' token
Expat.c: In function `XS_XML__Parser__Expat_SkipUntil':
Expat.c:2884: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2884: error: syntax error before "parser"
Expat.xs:2179: error: `cbv' undeclared (first use in this function)
Expat.xs:2179: error: syntax error before ')' token
Expat.c: In function `XS_XML__Parser__Expat_Do_External_Parse':
Expat.c:2912: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2912: error: syntax error before "parser"
Expat.xs:2194: error: `cbv' undeclared (first use in this function)
Expat.xs:2194: error: syntax error before ')' token
Expat.xs:2197: error: `parser' undeclared (first use in this function)
make[1]: *** [Expat.o] Error 1
make[1]: Leaving directory `/home/.cpan/build/XML-Parser-2.34-nhBv4L/Expat'
make: *** [subdirs] Error 2


MSERGEANT/XML-Parser-2.34.tar.gz
/usr/bin/make -- NOT OK
CPAN: YAML loaded ok (v0.65)
Running make install
Make had returned bad status, install seems impossible
perlmod--Install done
Tested 51, 50 ok, 1 failed.


What would this mean,

I also add: that .CGI-s not work in WHM [DNSOnly],
like: cmq, cmm, csf

" perl --version

This is perl, v5.8.8 built for i686-linux"


ON accessing CSF through WHM:
/usr/local/cpanel/logs/error.log shows:

Can't locate Whostmgr/AcctInfo.pm in @INC (@INC contains: /usr/local/cpanel /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl . /usr/local/cpanel/whostmgr/docroot/cgi) at /usr/local/cpanel/whostmgr/docroot/cgi/whmlib.pm line 11.
BEGIN failed--compilation aborted at /usr/local/cpanel/whostmgr/docroot/cgi/whmlib.pm line 11.
Compilation failed in require at ./cgi/addon_csf.cgi line 14.
BEGIN failed--compilation aborted at ./cgi/addon_csf.cgi line 14.
 
Last edited: