I'm not sure who set up the server that I've been tasked with refreshing, but the Perl modules are all messed up. I've spent several hours reading up on fixes for Perl problems with relation to cPanel and though I've tried everything I can find, I haven't come across anything that fixes this particular brand of aggravating issue.
I would like to reinstall perl from source (from http://layer2.cpanel.net/perl588installer.tar.gz, as recommended by several articles and posts in this forum), but I get the following error:
Additionally (and as expected), I can't use cpan to install the module. Also, all of the SelectSaver.pm files that I've tried have produced the same result.
I have cPanel/WHM version 11.30.5.6 running on CENTOS 5.7 i686 (virtuozzo)
/scripts/perlinstaller and /scripts/checkperlmodules fail with the exact same error. Clearly SelectSaver, which appears to be a module that handles file handles, is quite important and is a prerequisite for these other Perl scripts.
I rarely have to post in a forum to get help with issues, so this is indeed a somewhat desperate plea for assistance (I'm going insane with this one).
Below is my perl -V output:
Thanks! Let me know if there's any other information you need.
I would like to reinstall perl from source (from http://layer2.cpanel.net/perl588installer.tar.gz, as recommended by several articles and posts in this forum), but I get the following error:
Code:
String found where operator expected at /usr/local/cpanel/SelectSaver.pm line 42, near "croak 'usage: new SelectSaver [FILEHANDLE]'"
(Do you need to predeclare croak?)
syntax error at /usr/local/cpanel/SelectSaver.pm line 42, near "croak 'usage: new SelectSaver [FILEHANDLE]'"
Compilation failed in require at /usr/local/cpanel/IO/Handle.pm line 265.
BEGIN failed--compilation aborted at /usr/local/cpanel/IO/Handle.pm line 265.
Compilation failed in require at /usr/local/cpanel/Socket.pm line 11.
BEGIN failed--compilation aborted at /usr/local/cpanel/Socket.pm line 11.
Compilation failed in require at /usr/local/cpanel/Cpanel/HttpRequest.pm line 10.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/HttpRequest.pm line 10.
Compilation failed in require at /scripts/cpfetch line 9.
BEGIN failed--compilation aborted at /scripts/cpfetch line 9.
Unable to retrieve Perl source at ./install line 52.
I have cPanel/WHM version 11.30.5.6 running on CENTOS 5.7 i686 (virtuozzo)
/scripts/perlinstaller and /scripts/checkperlmodules fail with the exact same error. Clearly SelectSaver, which appears to be a module that handles file handles, is quite important and is a prerequisite for these other Perl scripts.
I rarely have to post in a forum to get help with issues, so this is indeed a somewhat desperate plea for assistance (I'm going insane with this one).
Below is my perl -V output:
Code:
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=linux, osvers=2.6.18-028stab070.14, archname=i686-linux
uname='linux vps.xxx.xxx.xxx.xxx.com 2.6.18-028stab070.14 #1 smp thu nov 18 16:04:02 msk 2010 i686 i686 i386 gnulinux '
config_args='-ds -e -Dprefix=/usr/local'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='4.1.2 20080704 (Red Hat 4.1.2-51)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.5.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.5'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO
Built under linux
Compiled at Feb 4 2012 18:41:15
@INC:
/usr/local/lib/perl5/5.8.8/i686-linux
/usr/local/lib/perl5/5.8.8
/usr/local/lib/perl5/site_perl/5.8.8/i686-linux
/usr/local/lib/perl5/site_perl/5.8.8
/usr/local/lib/perl5/site_perl
.
Thanks! Let me know if there's any other information you need.