• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Perl Upgraded -> 5.8.8 - did not take - Ideas to go back to 5.8.5?

D

davefm

Guest
Ok My bad here I think, I had a perl script that called for 5.8.7 and I had 5.8.5 and saw that 5.8.8 was the latest so I thought I do a 'simple' upgrade to 5.8.7 then upgrade to 5.8.8.

Well Now SpamAssassin will no longer start, and doing a : /usr/local/psa/admin/bin/spamd --start

Gives the following errors:
------------------------------
/]# /usr/local/psa/admin/bin/spamd --start
Can't locate Text/Iconv.pm in @INC (@INC contains: /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/local/psa/lib/perl5/5.8.7 /usr/local/psa/lib/perl5/5.8.7/i686-linux /usr/local/psa/lib/perl5/site_perl/5.8.7/i686-linux /usr/local/psa/lib/perl5/site_perl/5.8.7 /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) at /usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/CmdManageSA3.pm line 8.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/CmdManageSA3.pm line 8.
Compilation failed in require at (eval 10) line 3.

Can't locate object method "cmdline_run" via package "Mail::SpamAssassin::CmdManageSA3" at (eval 11) line 1.

Can't locate object method "EX_STOPPED" via package "Mail::SpamAssassin::CmdManageSA3" at (eval 12) line 1.

is stopped
0

----------------------------
SpamAssassin under Services management is also Red "X"ed,

So I am not sure if it would be best to go back to 5.8.5 and if so how would I do that?

Or should I stick it out and try to get 5.8.8 working?

Am kinda at a lost here and any help would be GREATLY appreached! I did a search and could not find much about perl 5.8.8 and plesk 8.2 so I guess that should have told me something there.



-------
Also doing a : perl -v
# perl -v

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

Copyright 1987-2006, Larry Wall
-------
and doing a : rpm -q perl
perl-5.8.5-36.RHEL4
-------
I'm on : psa v8.2.0_build82070807.17 os_CentOS 4.2
-------

Many thanks ahead of time!
 
Originally posted by breun
How did you upgrade to 5.8.8? Did you enable the CentOS Plus repository?

No (I guess I should have done some more reading on CentOS) but I follow the directions on a support website that stated:
-------------------------------------
Cent OS 4.2 has Perl 5.8.5 which requires upgrading to Perl 5.8.7 or higher for some modules to install properly. Below are some instructions and notes made from upgrading to Perl 5.8.8.

> # Downloaded from perl.com:
> wget 'http://www.perl.org/CPAN/src/stable.tar.gz'
> tar xvzf stable.tar.gz
> cd perl-5.8.8/
> # Following instructions in:
> perldoc INSTALL
>
> rm -f config.sh Policy.sh
> sh Configure
> # within this interactive procedure.. all defaults were chosen, except..
> # skipped setuid #! Testing
> # chose to override /usr/bin/perl with the new 5.8.8
> # hostname was chosen as a single entry, the Configure script tried to
> # to combine two alternative hostnames.
> make
> make test
> sudo make install
 
You might want to remove what you installed then. Are the perl 5.8.5 rpms still installed?
 
Originally posted by breun
You might want to remove what you installed then. Are the perl 5.8.5 rpms still installed?

I have searched using the locate command but can not find it. when I "locate perl-5.8.5" I find nothing. but if I "locate 5.8.5" I find hundreds and hundreds of files. What is the filename I should be looking for to find the orginal rpm file?

Thanks!
 
Originally posted by breun
Just run 'rpm -q perl' to see what Perl package you have installed.

Thanks - when I do that I get:

perl-5.8.5-36.RHEL4
 
Then it seems your original Perl package is still installed. Just remove what you installed (maybe there's a 'make clean' command available or something?). Maybe files of your Perl 5.8.5 package were overwritten in the process of installing 5.8.8 manually, so in that case you might want download the Perl rpm package and force install it over the existing one:

Code:
# yum install yum-utils
# yumdownloader perl
# rpm -Uvh --force perl-5.8.5-36.RHEL4.i386.rpm
# rm perl-5.8.5-36.RHEL4.i386.rpm
 
Originally posted by breun
Then it seems your original Perl package is still installed. Just remove what you installed (maybe there's a 'make clean' command available or something?). Maybe files of your Perl 5.8.5 package were overwritten in the process of installing 5.8.8 manually, so in that case you might want download the Perl rpm package and force install it over the existing one:

Code:
# yum install yum-utils
# yumdownloader perl
# rpm -Uvh --force perl-5.8.5-36.RHEL4.i386.rpm
# rm perl-5.8.5-36.RHEL4.i386.rpm


Thank-you! yumdownloader perl, did not work so I did a search on the filename "perl-5.8.5-36.RHEL4.i386.rpm" w/google and used wget to get it on the server, then --force command work just great! BIG THANK-YOU again!

Code:
# yum install yum-utils  [I]- Installed fine w/no errors[/I]
# yumdownloader perl [I]- could not find[/I] 
## [I]wget [url]ftp://ftp.nluug.nl/pub/os/Linux/distr/CentOS/4.5/os/i386/CentOS/RPMS/perl-5.8.5-36.RHEL4.i386.rpm[/url][/I]
# rpm -Uvh --force perl-5.8.5-36.RHEL4.i386.rpm
# rm perl-5.8.5-36.RHEL4.i386.rpm
 
Good to hear you're up and running again. Strange that 'yumdownloader perl' is not working though, cause it's working great on our CentOS 4 machines. What was the problem?

If you're looking for individual CentOS rpm packages you can always head over to http://mirror.centos.org/ and get them there.
 
Well I did a "updatedb" to get the databases updated, and then a "locate yumdownloader" - and it can not be found. So if the "yum install yum-utils" was to install this it did not.

I kinda think some things are still messed up as I did run the "make clean" in the 5.8.8 directory and it ran ok with no errors, but I do not think it clean everything as when I do a "yum update" it shows the following that are in need of updates

Code:
 ~]# yum update
Setting up Update Process
Setting up repositories
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
-> Package libibverbs.i386 0:1.0.5-1.fc6 set to be updated
-> Package perl-HTML-Tree.noarch 1:3.23-1.fc6 set to be updated
-> Package selinux-policy-targeted-sources.noarch 0:1.17.30-2.145 set to be updated
-> Package cups.i386 1:1.1.22-0.rc1.9.20.2 set to be updated
-> Package kernel.i686 0:2.6.9-55.0.2.EL set to be installed
-> Package perl-HTML-Format.noarch 0:2.04-5.fc6 set to be updated
-> Package keyutils-libs.i386 0:1.2-2.fc6 set to be updated
-> Package php-domxml.i386 0:4.3.9-3.22.5 set to be updated
-> Package perl-Text-Iconv.i386 0:1.4-5.fc6 set to be updated
-> Package glib.i386 1:1.2.10-26.fc6 set to be updated
-> Package php-mbstring.i386 0:4.3.9-3.22.5 set to be updated
-> Package kernel-smp-devel.i686 0:2.6.9-55.0.2.EL set to be installed
-> Downloading header for tar to pack into transaction set.
tar-1.14-12.5.1.RHEL4.i38 100% |=========================|  13 kB    00:00
-> Package tar.i386 0:1.14-12.5.1.RHEL4 set to be updated
-> Package awstats.noarch 0:6.6-1.fc6 set to be updated
-> Package keyutils.i386 0:1.2-2.fc6 set to be updated
-> Package php-gd.i386 0:4.3.9-3.22.5 set to be updated
-> Package kernel-devel.i686 0:2.6.9-55.0.2.EL set to be installed
-> Package samba-common.i386 0:3.0.10-1.4E.12.2 set to be updated
-> Package perl-Parse-Yapp.noarch 0:1.05-36.fc6 set to be updated
-> Package splint.i386 0:3.1.1-15.fc6 set to be updated
-> Package kernel-hugemem-devel.i686 0:2.6.9-55.0.2.EL set to be installed
-> Package perl-Font-AFM.noarch 0:1.19-4.fc6 set to be updated
-> Package qt.i386 1:3.3.3-11.RHEL4 set to be updated
-> Package kernel-utils.i386 1:2.4-13.1.99 set to be updated
-> Downloading header for moodle to pack into transaction set.
moodle-1.8.2-1.fc6.noarch 100% |=========================| 510 kB    00:00
-> Package moodle.noarch 0:1.8.2-1.fc6 set to be updated
-> Downloading header for mantis to pack into transaction set.
mantis-1.0.8-1.fc6.noarch 100% |=========================|  51 kB    00:00
-> Package mantis.noarch 0:1.0.8-1.fc6 set to be updated
-> Package perl-XML-DOM.noarch 0:1.44-2.fc6 set to be updated
-> Downloading header for mediawiki to pack into transaction set.
mediawiki-1.8.4-8.fc6.i38 100% |=========================| 100 kB    00:00
-> Package mediawiki.i386 0:1.8.4-8.fc6 set to be updated
-> Package perl-TimeDate.noarch 0:1.16-1.c4 set to be updated
-> Downloading header for net-snmp to pack into transaction set.
net-snmp-5.1.2-11.EL4.10. 100% |=========================|  35 kB    00:00
-> Package net-snmp.i386 0:5.1.2-11.EL4.10.0.1 set to be updated
-> Package xorg-x11-deprecated-libs.i386 0:6.8.2-1.EL.19 set to be updated
-> Package cups-libs.i386 1:1.1.22-0.rc1.9.20.2 set to be updated
-> Downloading header for net-snmp-utils to pack into transaction set.
net-snmp-utils-5.1.2-11.E 100% |=========================|  25 kB    00:00
-> Package net-snmp-utils.i386 0:5.1.2-11.EL4.10.0.1 set to be updated
-> Downloading header for net-snmp-libs to pack into transaction set.
net-snmp-libs-5.1.2-11.EL 100% |=========================|  23 kB    00:00
-> Package net-snmp-libs.i386 0:5.1.2-11.EL4.10.0.1 set to be updated
--> Running transaction check
--> Processing Dependency: libc.so.6(GLIBC_2.4) for package: glib
.. removed 18 lines for space limits on message post ...
--> Processing Dependency: rtld(GNU_HASH) for package: keyutils
--> Processing Dependency: perl(:MODULE_COMPAT_5.8.8) for package: perl-HTML-Format
--> Processing Dependency: rtld(GNU_HASH) for package: perl-Text-Iconv
--> Processing Dependency: rtld(GNU_HASH) for package: glib
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
-> Downloading header for mimetex to pack into transaction set.
mimetex-1.60-3.fc6.i386.r 100% |=========================| 3.1 kB    00:00
-> Package mimetex.i386 0:1.60-3.fc6 set to be updated
-> Package perl-XML-RegExp.noarch 0:0.03-2.fc6 set to be updated
-> Downloading header for php-adodb to pack into transaction set.
php-adodb-4.94-1.fc6.noar 100% |=========================|  26 kB    00:00
-> Package php-adodb.noarch 0:4.94-1.fc6 set to be updated
-> Downloading header for perl-Text-Aspell to pack into transaction set.
perl-Text-Aspell-0.08-1.f 100% |=========================| 3.7 kB    00:00
-> Package perl-Text-Aspell.i386 0:0.08-1.fc6 set to be updated
-> Downloading header for ImageMagick to pack into transaction set.
ImageMagick-6.0.7.1-17.i3 100% |=========================| 8.0 kB    00:00
[url]ftp://ftp.linux.ncsu.edu/pub/CentOS/4.5/os/i386/CentOS/RPMS/ImageMagick-6.0.7.1-17.i386.rpm:[/url] [Errno 4] Socket Error: (104, 'Connection reset by peer')
Trying other mirror.
ImageMagick-6.0.7.1-17.i3 100% |=========================|  43 kB    00:00
-> Package ImageMagick.i386 0:6.0.7.1-17 set to be updated
-> Downloading header for mantis-config-httpd to pack into transaction set.
mantis-config-httpd-1.0.8 100% |=========================| 5.0 kB    00:00
-> Package mantis-config-httpd.noarch 0:1.0.8-1.fc6 set to be updated
--> Running transaction check
--> Processing Dependency: libc.so.6(GLIBC_2.4) for package: glib
--> Processing Dependency: rtld(GNU_HASH) for package: mimetex
--> Processing Dependency: perl(:MODULE_COMPAT_5.8.8) for package: perl-Text-Iconv
--> Processing Dependency: rtld(GNU_HASH) for package: perl-Text-Aspell
--> Processing Dependency: rtld(GNU_HASH) for package: splint
--> Processing Dependency: php >= 5 for package: mediawiki
--> Processing Dependency: libc.so.6(GLIBC_2.4) for package: mimetex
--> Processing Dependency: libc.so.6(GLIBC_2.4) for package: keyutils
--> Processing Dependency: rtld(GNU_HASH) for package: keyutils-libs
--> Processing Dependency: libc.so.6(GLIBC_2.4) for package: libibverbs
--> Processing Dependency: perl(:MODULE_COMPAT_5.8.8) for package: perl-HTML-Tree
--> Processing Dependency: perl(:MODULE_COMPAT_5.8.8) for package: perl-Font-AFM
--> Processing Dependency: rtld(GNU_HASH) for package: libibverbs
--> Processing Dependency: libsysfs.so.2 for package: libibverbs
--> Processing Dependency: perl(:MODULE_COMPAT_5.8.8) for package: perl-Parse-Yapp
--> Processing Dependency: perl(:MODULE_COMPAT_5.8.8) for package: perl-XML-DOM
--> Processing Dependency: libc.so.6(GLIBC_2.4) for package: splint
--> Processing Dependency: perl(:MODULE_COMPAT_5.8.8) for package: perl-XML-RegExp
--> Processing Dependency: perl(:MODULE_COMPAT_5.8.8) for package: perl-Text-Aspell
--> Processing Dependency: rtld(GNU_HASH) for package: keyutils
--> Processing Dependency: perl(:MODULE_COMPAT_5.8.8) for package: perl-HTML-Format
--> Processing Dependency: rtld(GNU_HASH) for package: perl-Text-Iconv
--> Processing Dependency: rtld(GNU_HASH) for package: glib
--> Finished Dependency Resolution

But then gives these errors:

Code:
--> Finished Dependency Resolution
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package glib
Error: Missing Dependency: perl(:MODULE_COMPAT_5.8.8) is needed by package perl-Text-Iconv
Error: Missing Dependency: rtld(GNU_HASH) is needed by package splint
Error: Missing Dependency: php >= 5 is needed by package mediawiki
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package keyutils
Error: Missing Dependency: rtld(GNU_HASH) is needed by package keyutils-libs
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package libibverbs
Error: Missing Dependency: perl(:MODULE_COMPAT_5.8.8) is needed by package perl-HTML-Tree
Error: Missing Dependency: perl(:MODULE_COMPAT_5.8.8) is needed by package perl-Font-AFM
Error: Missing Dependency: rtld(GNU_HASH) is needed by package libibverbs
Error: Missing Dependency: libsysfs.so.2 is needed by package libibverbs
Error: Missing Dependency: perl(:MODULE_COMPAT_5.8.8) is needed by package perl-Parse-Yapp
Error: Missing Dependency: perl(:MODULE_COMPAT_5.8.8) is needed by package perl-XML-DOM
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package splint
Error: Missing Dependency: rtld(GNU_HASH) is needed by package keyutils
Error: Missing Dependency: perl(:MODULE_COMPAT_5.8.8) is needed by package perl-HTML-Format
Error: Missing Dependency: rtld(GNU_HASH) is needed by package perl-Text-Iconv
Error: Missing Dependency: rtld(GNU_HASH) is needed by package glib
Error: Missing Dependency: rtld(GNU_HASH) is needed by package mimetex
Error: Missing Dependency: rtld(GNU_HASH) is needed by package perl-Text-Aspell
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package mimetex
Error: Missing Dependency: perl(:MODULE_COMPAT_5.8.8) is needed by package perl-XML-RegExp
Error: Missing Dependency: perl(:MODULE_COMPAT_5.8.8) is needed by package perl-Text-Aspell

So I bet that some of the errors are the reason that yumdownloader did not install. Is there maybe a set of commands I can ssh that will clean up the errors above?

Thanks!
-Dave
 
Woah, that doesn't look too good. You said you're on CentOS 4, but I see a lot of Fedora Core 6 packages in the output you posted. I guess there is something wrong with your yum repository setup. What files do you have in /etc/yum.repos.d?
 
Originally posted by breun
Woah, that doesn't look too good. You said you're on CentOS 4, but I see a lot of Fedora Core 6 packages in the output you posted. I guess there is something wrong with your yum repository setup. What files do you have in /etc/yum.repos.d?


Is this what your looking for?

Code:
[root@server1 yum.repos.d]# ls -l
total 8
-rw-r--r--  1 root root 2727 Aug  8 16:36 CentOS-Base.repo
-rw-r--r--  1 root root  610 May  5 09:12 CentOS-Media.repo
 
That looks like you only have the CentOS repositories in there, which would be good if you're running CentOS. I don't understand what's with the all those .fc6 packages then. Do you have any repositories in your /etc/yum.conf?
 
Originally posted by breun
That looks like you only have the CentOS repositories in there, which would be good if you're running CentOS. I don't understand what's with the all those .fc6 packages then. Do you have any repositories in your /etc/yum.conf?

I do not think so, This is the file "/etc/yum.conf" on this server.

Code:
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
installonlypkgs=kernel kernel-smp kernel-devel kernel-smp-devel kernel-largesmp kernel-largesmp-devel kernel-hugemem kernel-hugemem-devel
distroverpkg=centos-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1
plugins=1

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

..and the "/etc/yum.repos.d" file contains:

Code:
" Press ? for keyboard shortcuts
" Sorted by name (.bak,~,.o,.h,.info,.swp,.obj at end of list)
"= /etc/yum.repos.d/
../
CentOS-Base.repo
CentOS-Media.repo
 
/etc/yum.repos.d is a directory (although technically everything is a file under Unix-style OSes). You might want to check the contents of the files under /etc/yum.repos.d, just to be sure. But if that's OK too then I'm still wondering what those fc6 packages are doing on your system.
 
Back
Top