PHP upgrade

Issues related to software problems
brianm
Posts: 25
Joined: 2008/11/19 15:20:48

PHP upgrade

Postby brianm » 2010/10/26 02:21:05

I would like to upgrade my current version of PHP (4.3) to version 5.X.


I tried the following instructions but am getting several dependency errors...how can I fix this

following from (http://www.centos.org/centos/4/centosplus/Readme.txt)
-------------------------
php-5.x.x-x.centos4
-------------------------
This is php-5 for CentOS-4. It replaces the php-4.3.9 that is currently
in CentOS-4. In order to upgrade a current php-4 install, you must
remove php-domxml first and then do:

yum --enablerepo=centosplus upgrade php*

or to do and install, use this command:

yum --enablerepo=centosplus --exclude=php-domxml install php*

(or install individually the files that you need)


-----------------------------------------------------------------------------
yum --enablerepo=centosplus --exclude=php-domxml install php*
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package php-readline.i386 0:5.1.6-1.el4.centos set to be updated
---> Package php-pear-Cache.noarch 0:1.5.5-0.1.RC4.el4.centos set to be updated
---> Package php-mcrypt.i386 0:5.1.6-1.el4.centos set to be updated
---> Package php-pear-Net-Curl.noarch 0:1.2.3-2.el4.centos set to be updated
---> Package php-cli.i386 0:5.1.6-3.el4s1.10 set to be updated
---> Package php-pear-XML-RSS.noarch 0:0.9.10-2.el4.centos set to be updated
---> Package php-pear-XML-Beautifier.noarch 0:1.1-1.el4.centos set to be updated
---> Package php-pear-HTTP.noarch 0:1.4.0-7.el4.centos set to be updated
---> Package php-pear-DB-QueryTool.noarch 0:1.0.3-1.el4.centos set to be updated
---> Package php-pear-XML-Serializer.noarch 0:0.18.0-2.el4.centos set to be updated
---> Package php-pear-PHP-Compat.noarch 0:1.5.0-1.el4.centos.1 set to be updated
---> Package php-pear-XML-Util.noarch 0:1.1.1-1.el4.centos set to be updated
---> Package php-pear-Validate-Finance-CreditCard.noarch 0:0.5.2-1.el4.centos set to be updated
---> Package php-pear-Date.noarch 0:1.4.6-1.el4.centos set to be updated
---> Package php-tidy.i386 0:5.1.6-1.el4.centos set to be updated
---> Package php-mbstring.i386 0:5.1.6-3.el4s1.10 set to be updated
---> Package php-pear-XML-Parser.noarch 0:1.2.7-4.el4.centos set to be updated
---> Package php-xml.i386 0:5.1.6-3.el4s1.10 set to be updated
---> Package php-bcmath.i386 0:5.1.6-3.el4s1.10 set to be updated
---> Package php-dbase.i386 0:5.1.6-1.el4.centos set to be updated
---> Package php-gd.i386 0:5.1.6-3.el4s1.10 set to be updated
---> Package php-pear-Console-Getargs.noarch 0:1.3.3-1.el4.centos set to be updated
---> Package php-pear-Date-Holidays.noarch 0:0.16.1-1.el4.centos set to be updated
---> Package php-pear-HTTP-Request.noarch 0:1.4.0-1.el4.centos set to be updated
---> Package php-pgsql.i386 0:5.1.6-3.el4s1.10 set to be updated
---> Package php-soap.i386 0:5.1.6-3.el4s1.10 set to be updated
---> Package php-pecl-apc.i386 0:3.0.12-1.el4.centos set to be updated
---> Package php-pear-HTML-Table.noarch 0:1.7.5-1.el4.centos set to be updated
---> Package php-mhash.i386 0:5.1.6-1.el4.centos set to be updated
---> Package php-pecl-zip.i386 0:1.8.0-1.el4.centos set to be updated
---> Package php-pear-DB.noarch 0:1.7.6-6.el4.centos set to be updated
---> Package php-pear-Mail-Mime.noarch 0:1.3.1-8.el4.centos set to be updated
---> Package php-pecl-mailparse.i386 0:2.1.1-4.el4.centos set to be updated
---> Package php-pear-Net-Socket.noarch 0:1.0.6-5.el4.centos set to be updated
---> Package php-pear-Mail.noarch 0:1.1.14-1.el4.centos set to be updated
---> Package php-pear-PHPUnit.noarch 0:1.3.2-1.el4.centos.1 set to be updated
---> Package php-pear-Net-URL.noarch 0:1.0.14-1.el4.centos set to be updated
---> Package php-pear-Console-Table.noarch 0:1.0.5-2.el4.centos.1 set to be updated
---> Package php-pear-Net-DIME.noarch 0:0.3-1.el4.centos set to be updated
---> Package php-pear-Pager.noarch 0:2.4.2-1.el4.centos set to be updated
---> Package php-imap.i386 0:5.1.6-3.el4s1.10 set to be updated
---> Package php-pear-Log.noarch 0:1.9.9-1.el4.centos set to be updated
---> Package php-pear-Benchmark.noarch 0:1.2.6-1.el4.centos set to be updated
---> Package php-pecl-ssh2.i386 0:0.10-1.el4.centos set to be updated
---> Package php-dba.i386 0:5.1.6-3.el4s1.10 set to be updated
---> Package php-pear.noarch 1:1.4.11-1.el4s1.1 set to be updated
---> Package php-pear-Net-SMTP.noarch 0:1.2.8-5.el4.centos set to be updated
---> Package php-eaccelerator.i386 0:5.1.6_0.9.5-1.el4.centos set to be updated
---> Package php-xmlrpc.i386 0:5.1.6-3.el4s1.10 set to be updated
---> Package php-pear-PHPUnit2.noarch 0:2.3.6-1.el4.centos set to be updated
---> Package php-pear-Auth-SASL.noarch 0:1.0.2-4.el4.centos set to be updated
---> Package php-devel.i386 0:5.1.6-3.el4s1.10 set to be updated
---> Package php-pear-Payment-Process.noarch 0:0.6.5-1.el4.centos set to be updated
---> Package php-pear-Net-FTP.noarch 0:1.3.2-1.el4.centos set to be updated
---> Package php.i386 0:5.1.6-3.el4s1.10 set to be updated
---> Package php-pecl-Fileinfo.i386 0:1.0.3-2.el4.centos set to be updated
---> Package php-pdo.i386 0:5.1.6-3.el4s1.10 set to be updated
---> Package php-mysql.i386 0:5.1.6-3.el4s1.10 set to be updated
---> Package php-pear-MDB2.noarch 0:2.2.2-2.el4.centos set to be updated
---> Package php-ldap.i386 0:5.1.6-3.el4s1.10 set to be updated
---> Package php-pear-Validate.noarch 0:0.6.4-1.el4.centos set to be updated
---> Package php-odbc.i386 0:5.1.6-3.el4s1.10 set to be updated
---> Package php-snmp.i386 0:5.1.6-3.el4s1.10 set to be updated
---> Package php-pear-HTML-Common.noarch 0:1.2.3-2.el4.centos set to be updated
---> Package php-pear-PHP-CompatInfo.noarch 0:1.4.0-1.el4.centos set to be updated
---> Package php-common.i386 0:5.1.6-3.el4s1.10 set to be updated
---> Package php-pear-Image-GraphViz.noarch 0:1.2.1-1.el4.centos set to be updated
---> Package php-ncurses.i386 0:5.1.6-3.el4s1.10 set to be updated
--> Running transaction check
--> Processing Dependency: libidn.so.11 for package: php
--> Processing Dependency: libmhash.so.2 for package: php-mhash
--> Processing Dependency: libssh2 for package: php-pecl-ssh2
--> Processing Dependency: libmcrypt.so.4 for package: php-mcrypt
--> Processing Dependency: libcurl.so.3 for package: php
--> Processing Dependency: libcurl.so.3 for package: php-cli
--> Processing Dependency: net-snmp for package: php-snmp
--> Processing Dependency: libidn.so.11 for package: php-cli
--> Processing Dependency: autoconf for package: php-devel
--> Processing Dependency: libc-client.so.0 for package: php-imap
--> Processing Dependency: libtidy-0.99.so.0 for package: php-tidy
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: php-mysql
--> Processing Dependency: libpq.so.4 for package: php-pgsql
--> Processing Conflict: php-pecl-apc conflicts php-eaccelerator
--> Processing Dependency: libltdl.so.3 for package: php-mcrypt
--> Processing Dependency: libssh2.so for package: php-pecl-ssh2
--> Processing Dependency: libmysqlclient.so.15 for package: php-mysql
--> Processing Dependency: graphviz for package: php-pear-Image-GraphViz
--> Processing Dependency: libnetsnmp.so.5 for package: php-snmp
--> Processing Dependency: httpd-mmn = 20020903 for package: php
--> Processing Dependency: php-pecl(Xdebug) for package: php-pear-PHPUnit2
--> Processing Dependency: automake for package: php-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package net-snmp-libs.i386 0:5.1.2-18.el4_8.3 set to be updated
---> Package httpd.i386 0:2.0.63-2.el4s1.centos.2 set to be updated
---> Package libtidy.i386 0:0.99.0-9.20051025.el4.centos.3 set to be updated
---> Package curl.i386 0:7.12.1-11.1.el4_8.3 set to be updated
---> Package mhash.i386 0:0.9.2-4 set to be updated
---> Package libtool-libs.i386 0:1.5.6-5.el4_8 set to be updated
---> Package libmcrypt.i386 0:2.5.7-4.el4.centos set to be updated
---> Package autoconf.noarch 0:2.59-5 set to be updated
---> Package postgresql-libs.i386 0:8.1.15-1.el4s1.1 set to be updated
---> Package libc-client.i386 0:2002e-14 set to be updated
---> Package libidn.i386 0:0.5.6-1 set to be updated
---> Package automake.noarch 0:1.9.2-3 set to be updated
---> Package mysql-libs.i386 0:5.0.82sp1-1.el4_8 set to be updated
---> Package net-snmp.i386 0:5.1.2-18.el4_8.3 set to be updated
--> Running transaction check
--> Processing Conflict: php-pecl-apc conflicts php-eaccelerator
--> Processing Dependency: libapr-0.so.0 for package: httpd
--> Processing Dependency: libssh2.so for package: php-pecl-ssh2
--> Processing Dependency: libssh2 for package: php-pecl-ssh2
--> Processing Dependency: libsensors.so.3 for package: net-snmp
--> Processing Dependency: php-pecl(Xdebug) for package: php-pear-PHPUnit2
--> Processing Dependency: libaprutil-0.so.0 for package: httpd
--> Processing Dependency: graphviz for package: php-pear-Image-GraphViz
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package apr.i386 0:0.9.4-24.9.el4_8.2 set to be updated
---> Package apr-util.i386 0:0.9.4-22.el4_8.2 set to be updated
---> Package lm_sensors.i386 0:2.8.7-2.40.5 set to be updated
--> Running transaction check
--> Processing Conflict: php-pecl-apc conflicts php-eaccelerator
--> Processing Dependency: libssh2.so for package: php-pecl-ssh2
--> Processing Dependency: libssh2 for package: php-pecl-ssh2
--> Processing Dependency: graphviz for package: php-pear-Image-GraphViz
--> Processing Dependency: php-pecl(Xdebug) for package: php-pear-PHPUnit2
--> Finished Dependency Resolution
Error: Missing Dependency: libssh2 is needed by package php-pecl-ssh2
Error: php-pecl-apc conflicts with php-eaccelerator
Error: Missing Dependency: libssh2.so is needed by package php-pecl-ssh2
Error: Missing Dependency: graphviz is needed by package php-pear-Image-GraphViz
Error: Missing Dependency: php-pecl(Xdebug) is needed by package php-pear-PHPUnit2

-----------------------------------------------------------------------------
Thanks

Brian

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

PHP upgrade

Postby pschaff » 2010/10/26 22:28:42

That is certainly a lot of packages to upgrade. Can't spot the source of the problem from scanning the output. Do you have any packages from 3rd party repos?
Please show

Code: Select all

uname -rmi
rpm -q centos-release
ls /etc/yum.repos.d/

brianm
Posts: 25
Joined: 2008/11/19 15:20:48

Re: PHP upgrade

Postby brianm » 2010/10/27 01:11:09

[root@localhost ~]# uname -rmi
2.6.9-78.0.5.EL i686 i386
[root@localhost ~]# rpm -q centos-release
centos-release-4-8
[root@localhost ~]# ls /etc/yum.repos.d/
CentOS-Base.repo CentOS-Media.repo

-----------------------------------------
3rd party...mysql installed....apache and other than that nothing really, that I remember.