Page 1 of 1

Updating PHP 4.3.9 to 5.2.x on CentOS 4.4 (Final)

Posted: Sun Jul 19, 2009 10:31 am
by MopeyGecko
Hi,

I'm trying to update my version of PHP to a version of 5.2 but when running yum update php I am receiving the following dependency error.

Code: Select all

yum update php
Setting up Update Process
Setting up repositories
plesk                     100% |=========================|  951 B    00:00
update                    100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
atomic                    100% |=========================|  951 B    00:00
addons                    100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package php.i386 0:5.2.9-2.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-mbstring
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-gd
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-snmp
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-imap
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-xmlrpc
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-pear
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-devel
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-ncurses
--> Processing Dependency: /usr/bin/php for package: psa-horde
--> Processing Dependency: php-cli = 5.2.9-2.el4.art for package: php
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-ldap
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-odbc
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-domxml
--> Processing Dependency: php = 4.3.9-3.22.15 for package: php-mysql
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package php-ldap.i386 0:5.2.9-2.el4.art set to be updated
---> Package php-mysql.i386 0:5.2.9-2.el4.art set to be updated
---> Package php-xml.i386 0:5.2.9-1.el4.art set to be updated
---> Package php-xmlrpc.i386 0:5.2.9-2.el4.art set to be updated
---> Package php-snmp.i386 0:5.2.9-2.el4.art set to be updated
---> Package php-ncurses.i386 0:5.2.9-2.el4.art set to be updated
---> Package php-gd.i386 0:5.2.9-2.el4.art set to be updated
---> Package php-devel.i386 0:5.2.9-2.el4.art set to be updated
---> Package php-cli.i386 0:5.2.9-2.el4.art set to be updated
---> Package psa-horde.noarch 0:3.1.7-cos4.build86080722.02 set to be updated
---> Package php-imap.i386 0:5.2.9-2.el4.art set to be updated
---> Package php-odbc.i386 0:5.2.9-2.el4.art set to be updated
---> Package php-mbstring.i386 0:5.2.9-2.el4.art set to be updated
---> Package php-pear.noarch 1:1.7.2-2.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php-pdo for package: php-mysql
--> Processing Dependency: libt1.so.5 for package: php-gd
--> Processing Dependency: php-pdo for package: php-odbc
--> Processing Dependency: php-common = 5.2.9-1.el4.art for package: php-xml
--> Processing Dependency: automake for package: php-devel
--> Processing Dependency: psa-pear >= 1.4.9 for package: psa-horde
--> Processing Dependency: autoconf for package: php-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package automake.noarch 0:1.9.2-3 set to be updated
---> Package autoconf.noarch 0:2.59-5 set to be updated
---> Package t1lib.i386 0:5.1.2-2.el4.art set to be updated
---> Package php-pdo.i386 0:5.2.9-2.el4.art set to be updated
---> Package psa-pear.noarch 0:1.4.9-20060517.1 set to be updated
--> Running transaction check
--> Processing Dependency: php-common = 5.2.9-1.el4.art for package: php-xml
--> Finished Dependency Resolution
Error: Missing Dependency: php-common = 5.2.9-1.el4.art is needed by package php-xml
I am not sure if it is relevant but I am also running Plesk 8.3.0

Thanks in advance for any help on this issue.

- Andy

Re: Updating PHP 4.3.9 to 5.2.x on CentOS 4.4 (Final)

Posted: Mon Jul 20, 2009 8:34 am
by Highland
Could be a cache issue. My C4 box had 5.2.9-2 on it. Try this

Code: Select all

yum clean all
then rerun your update and see if that works.

Re: Updating PHP 4.3.9 to 5.2.x on CentOS 4.4 (Final)

Posted: Tue Jul 21, 2009 4:58 pm
by MopeyGecko
no that didn't work unfortunately, after running clean all I still get the same final error.

Somebody on another forum suggested running yum remove php and the reinstalling with yum install but I'm not sure if that would cause further problems.

Re: Updating PHP 4.3.9 to 5.2.x on CentOS 4.4 (Final)

Posted: Wed Jul 22, 2009 8:30 am
by Highland
Yeah, removing PHP with something like Plesk installed can be a bear

I dunno what to tell you, really. The 5.2.9-2 file is in the repo. Cleaning cache usually works.

http://www.atomicorp.com/channels/atomi ... i386/RPMS/
http://www.atomicorp.com/channels/atomi ... 6_64/RPMS/

You could maybe pester Scott to take the -1 files out of the repo

Re: Updating PHP 4.3.9 to 5.2.x on CentOS 4.4 (Final)

Posted: Wed Jul 22, 2009 10:01 am
by scott
BEARS!!!!!!!!!!!!!!!!!! (done)