PHP Upgrade on centos 4 - missing dependencies

Support/Development for PHP
fergie
Forum User
Forum User
Posts: 10
Joined: Mon Feb 05, 2007 8:45 am
Location: London, UK

PHP Upgrade on centos 4 - missing dependencies

Unread post by fergie »

Running Centos 4.4 with Plesk 8.1 on x86_64.

Currently have PHP 4.3.9, but need to upgrade to 5...

Code: Select all

# yum upgrade
Setting up Upgrade Process
Setting up repositories
psa-8.1                   100% |=========================|  951 B    00:00
update                    100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
atomic                    100% |=========================|  951 B    00:00
centosplus                100% |=========================|  951 B    00:00
addons                    100% |=========================|  951 B    00:00
atomic-app-vault          100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================|  49 kB    00:00
psa-8.1   : ################################################## 169/169
Added 169 new packages, deleted 0 old in 0.80 seconds
primary.xml.gz            100% |=========================|  89 kB    00:00
update    : ################################################## 257/257
Added 257 new packages, deleted 0 old in 1.98 seconds
primary.xml.gz            100% |=========================| 657 kB    00:00
base      : ################################################## 1703/1703
Added 1703 new packages, deleted 0 old in 6.08 seconds
primary.xml.gz            100% |=========================|  61 kB    00:00
atomic    : ################################################## 173/173
Added 173 new packages, deleted 0 old in 0.59 seconds
primary.xml.gz            100% |=========================|  68 kB    00:00
centosplus: ################################################## 265/265
Added 265 new packages, deleted 0 old in 0.73 seconds
primary.xml.gz            100% |=========================|  157 B    00:00
Added 0 new packages, deleted 0 old in 0.00 seconds
primary.xml.gz            100% |=========================| 1.3 kB    00:00
atomic-app: ################################################## 6/6
Added 6 new packages, deleted 0 old in 0.01 seconds
primary.xml.gz            100% |=========================|  32 kB    00:00
extras    : ################################################## 126/126
Added 126 new packages, deleted 0 old in 0.36 seconds
Excluding Packages in global exclude list
Finished
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for dbus-python to pack into transaction set.
dbus-python-0.22-12.EL.8. 100% |=========================| 8.9 kB    00:00
---> Package dbus-python.x86_64 0:0.22-12.EL.8 set to be updated
---> Downloading header for php-ldap to pack into transaction set.
php-ldap-5.1.6-1.2.1.cent 100% |=========================|  15 kB    00:00
---> Package php-ldap.x86_64 0:5.1.6-1.2.1.centos set to be updated
---> Downloading header for php-pear to pack into transaction set.
php-pear-5.0.4-5.centos4. 100% |=========================|  35 kB    00:00
---> Package php-pear.x86_64 0:5.0.4-5.centos4 set to be updated
---> Downloading header for mysql to pack into transaction set.
mysql-5.0.27-1.el4.centos 100% |=========================|  35 kB    00:00
---> Package mysql.x86_64 0:5.0.27-1.el4.centos set to be updated
---> Downloading header for php-xml to pack into transaction set.
php-xml-5.1.6-1.2.1.cento 100% |=========================|  16 kB    00:00
---> Package php-xml.x86_64 0:5.1.6-1.2.1.centos set to be updated
---> Downloading header for php-imap to pack into transaction set.
php-imap-5.1.6-1.2.1.cent 100% |=========================|  15 kB    00:00
---> Package php-imap.x86_64 0:5.1.6-1.2.1.centos set to be updated
---> Downloading header for dbus to pack into transaction set.
dbus-0.22-12.EL.8.x86_64. 100% |=========================|  12 kB    00:00
---> Package dbus.x86_64 0:0.22-12.EL.8 set to be updated
---> Downloading header for mysql-server to pack into transaction set.
mysql-server-5.0.27-1.el4 100% |=========================|  33 kB    00:00
---> Package mysql-server.x86_64 0:5.0.27-1.el4.centos set to be updated
---> Downloading header for php to pack into transaction set.
php-5.1.6-1.2.1.centos.x8 100% |=========================|  20 kB    00:00
---> Package php.x86_64 0:5.1.6-1.2.1.centos set to be updated
---> Downloading header for php-mysql to pack into transaction set.
php-mysql-5.1.6-1.2.1.cen 100% |=========================|  16 kB    00:00
---> Package php-mysql.x86_64 0:5.1.6-1.2.1.centos set to be updated
---> Downloading header for php-gd to pack into transaction set.
php-gd-5.1.6-1.2.1.centos 100% |=========================|  15 kB    00:00
---> Package php-gd.x86_64 0:5.1.6-1.2.1.centos set to be updated
---> Downloading header for mysqlclient10 to pack into transaction set.
mysqlclient10-3.23.58-9.2 100% |=========================| 5.3 kB    00:00
---> Package mysqlclient10.x86_64 0:3.23.58-9.2.c4 set to be updated
---> Downloading header for dbus-glib to pack into transaction set.
dbus-glib-0.22-12.EL.8.x8 100% |=========================| 9.1 kB    00:00
---> Package dbus-glib.x86_64 0:0.22-12.EL.8 set to be updated
---> Downloading header for php-mbstring to pack into transaction set.
php-mbstring-5.1.6-1.2.1. 100% |=========================|  15 kB    00:00
---> Package php-mbstring.x86_64 0:5.1.6-1.2.1.centos set to be updated
---> Downloading header for postgresql-libs to pack into transaction set.
postgresql-libs-8.1.4-1.c 100% |=========================|  14 kB    00:00
---> Package postgresql-libs.x86_64 0:8.1.4-1.centos.1 set to be updated
---> Downloading header for php-xml to pack into transaction set.
php-xml-5.0.4-13.rhel4.ar 100% |=========================|  13 kB    00:00
---> Package php-xml.i386 0:5.0.4-13.rhel4.art set to be updated
---> Downloading header for perl-TimeDate to pack into transaction set.
perl-TimeDate-1.16-1.c4.n 100% |=========================| 6.7 kB    00:00
---> Package perl-TimeDate.noarch 0:1.16-1.c4 set to be updated
--> Running transaction check
--> Processing Dependency: php-pdo for package: php-mysql
--> Processing Dependency: libmysqlclient.so.14()(64bit) for package: dovecot
--> Processing Dependency: php = 5.0.4-13.rhel4.art for package: php-xml
--> Processing Dependency: libxml2.so.2 for package: php-xml
--> Processing Dependency: php-pear >= 1:1.4.9 for package: php
--> Processing Dependency: libpq.so.3()(64bit) for package: dovecot
--> Processing Dependency: libxslt.so.1 for package: php-xml
--> Processing Dependency: php-pdo-abi = %{pdoabi} for package: php-mysql
--> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14)(64bit) for package: php-mysql
--> Processing Dependency: libmysqlclient.so.14()(64bit) for package: php-mysql
--> Processing Dependency: libexslt.so.0 for package: php-xml
--> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14)(64bit) for package: psa-ruby-mysql
--> Processing Dependency: libmysqlclient.so.14()(64bit) for package: psa-ruby-mysql
--> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14)(64bit) for package: dovecot
--> Processing Dependency: php = 5.0.4-5.centos4 for package: php-pear
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for mysqlclient14 to pack into transaction set.
mysqlclient14-4.1.14-4.2. 100% |=========================| 4.5 kB    00:00
---> Package mysqlclient14.x86_64 0:4.1.14-4.2.c4.1 set to be updated
---> Downloading header for libxml2 to pack into transaction set.
libxml2-2.6.16-6.i386.rpm 100% |=========================| 5.8 kB    00:00
---> Package libxml2.i386 0:2.6.16-6 set to be updated
---> Downloading header for php to pack into transaction set.
php-5.0.4-13.rhel4.art.i3 100% |=========================|  18 kB    00:00
---> Package php.i386 0:5.0.4-13.rhel4.art set to be updated
---> Downloading header for compat-postgresql-libs to pack into transaction set.
compat-postgresql-libs-3_ 100% |=========================| 4.6 kB    00:00
---> Package compat-postgresql-libs.x86_64 0:3_x86_64-4.c4.centos set to be updated
---> Downloading header for php-pear to pack into transaction set.
php-pear-1.4.9-1.2.centos 100% |=========================|  20 kB    00:00
---> Package php-pear.noarch 1:1.4.9-1.2.centos set to be updated
---> Downloading header for libxslt to pack into transaction set.
libxslt-1.1.11-1.i386.rpm 100% |=========================|  13 kB    00:00
---> Package libxslt.i386 0:1.1.11-1 set to be updated
---> Downloading header for php-pdo to pack into transaction set.
php-pdo-5.1.6-1.2.1.cento 100% |=========================|  15 kB    00:00
---> Package php-pdo.x86_64 0:5.1.6-1.2.1.centos set to be updated
--> Running transaction check
--> Processing Dependency: libaspell.so.15 for package: php
--> Processing Dependency: libgcrypt.so.11 for package: libxslt
--> Processing Dependency: libgcrypt.so.11(GCRYPT_1.2) for package: libxslt
--> Processing Dependency: libpspell.so.15 for package: php
--> Processing Dependency: libdb-4.2.so for package: php
--> Processing Dependency: libgpg-error.so.0 for package: libxslt
--> Processing Dependency: php = 5.0.4-5.centos4 for package: php-pear
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for libgcrypt to pack into transaction set.
libgcrypt-1.2.0-3.i386.rp 100% |=========================| 3.2 kB    00:00
---> Package libgcrypt.i386 0:1.2.0-3 set to be updated
---> Downloading header for aspell to pack into transaction set.
aspell-0.50.5-3.fc3.i386. 100% |=========================|  15 kB    00:00
---> Package aspell.i386 12:0.50.5-3.fc3 set to be updated
---> Downloading header for db4 to pack into transaction set.
db4-4.2.52-7.1.i386.rpm   100% |=========================|  15 kB    00:00
---> Package db4.i386 0:4.2.52-7.1 set to be updated
---> Downloading header for libgpg-error to pack into transaction set.
libgpg-error-1.0-1.i386.r 100% |=========================| 3.7 kB    00:00
---> Package libgpg-error.i386 0:1.0-1 set to be updated
--> Running transaction check
--> Processing Dependency: php = 5.0.4-5.centos4 for package: php-pear
--> Processing Dependency: libncurses.so.5 for package: aspell
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for ncurses to pack into transaction set.
ncurses-5.4-13.i386.rpm   100% |=========================| 273 kB    00:00
---> Package ncurses.i386 0:5.4-13 set to be updated
--> Running transaction check
--> Processing Dependency: php = 5.0.4-5.centos4 for package: php-pear
--> Finished Dependency Resolution
Error: Missing Dependency: php = 5.0.4-5.centos4 is needed by package php-pear
Any idea? My ART yum config is as below:

Code: Select all

# more /etc/yum.repos.d/art.repo
[atomic]
name=Atomic Rocket Turtle - $releasever - Atomic PSA-Compatible RPMS
baseurl=http://3es.atomicrocketturtle.com/atomic/art/$releaseverES/

[atomic-app-vault]
name=Atomic Rocket Turtle - $releasever - Atomic PSA App Vault RPMS
baseurl=http://3es.atomicrocketturtle.com/atomic/app-vault/

[psa-8.1]
name=Atomic Rocket Turtle - $releasever - SW-Soft PSA 8.1 RPMS
baseurl=http://3es.atomicrocketturtle.com/atomic/psa-8.1/centos/$releasever/$basearch
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

You'll need to remove php-pear first.
fergie
Forum User
Forum User
Posts: 10
Joined: Mon Feb 05, 2007 8:45 am
Location: London, UK

Unread post by fergie »

Bit scared to do that as psa seems to depend on it...

Code: Select all

# yum remove php-pear
<snip>

Code: Select all

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Removing:
 php-pear                x86_64     4.3.9-3.22       installed         1.2 M
Removing for dependencies:
 SSHTerm                 noarch     0.2.2-centos4.3.build81061129.22  installed         4.9 M
 php                     x86_64     4.3.9-3.22       installed         3.6 M
 php-domxml              x86_64     4.3.9-3.22       installed         105 k
 php-gd                  x86_64     4.3.9-3.22       installed         312 k
 php-imap                x86_64     4.3.9-3.22       installed          93 k
 php-ldap                x86_64     4.3.9-3.22       installed          45 k
 php-mbstring            x86_64     4.3.9-3.22       installed         1.5 M
 php-mysql               x86_64     4.3.9-3.22       installed          49 k
 psa                     x86_64     8.1.0-centos4.3.build81061129.22  installed         109 M
 psa-api                 noarch     8.1.0-centos4.3.build81061226.14  installed         2.7 M
 psa-api-rpc             noarch     8.1.0-centos4.3.build81061226.14  installed         1.1 M
 psa-backup-manager      x86_64     8.1.0-centos4.3.build81061226.14  installed         1.6 M
 psa-fileserver          x86_64     1.0.0-centos4.3.build81061129.22  installed         1.6 M
 psa-firewall            x86_64     1.0.1-centos4.3.build81061129.22  installed         728 k
 psa-horde               noarch     3.1.3-centos4.3.build81070201.15  installed          23 M
 psa-hotfix3             x86_64     8.1.0-centos4.3.build81061212.22  installed         1.4 M
 psa-hotfix4             x86_64     8.1.0-centos4.3.build81061226.14  installed          23 M
 psa-hotfix5             x86_64     8.1.0-centos4.3.build81070201.15  installed         294 k
 psa-imp                 noarch     4.1.3-centos4.3.build81061129.22  installed          14 M
 psa-ingo                noarch     1.1.2-centos4.3.build81061129.22  installed         3.7 M
 psa-kronolith           noarch     2.1.3-centos4.3.build81061129.22  installed         4.8 M
 psa-libpam-plesk        x86_64     8.1.0-centos4.3.build81061130.12  installed         156 k
 psa-manual-custom-skin-guide  noarch     8.1.0-centos4.3.build81061129.22  installed         213 k
 psa-migration-manager   x86_64     8.1.0-centos4.3.build81061226.14  installed          11 M
 psa-mimp                noarch     1.0-centos4.3.build81061129.22  installed         1.3 M
 psa-mnemo               noarch     2.1.1-centos4.3.build81061129.22  installed         3.1 M
 psa-passwd              noarch     3.0-centos4.3.build81061129.22  installed         2.4 M
 psa-php4-configurator   noarch     1.1.0-centos4.3.build81061129.22  installed          0.0
 psa-rubyrails-configurator  x86_64     1.1.6-centos4.3.build81061129.22  installed          0.0
 psa-spamassassin        x86_64     8.1.0-centos4.3.build81061129.22  installed          52 k
 psa-turba               noarch     2.1.3-centos4.3.build81061129.22  installed         5.0 M
 psa-watchdog            x86_64     2.0.2-centos4.3.build81061129.22  installed         2.6 M

Transaction Summary
=============================================================================
Install      0 Package(s)
Update       0 Package(s)
Remove      33 Package(s)
Total download size: 0
Is this ok [y/N]:N
Can I remove it without taking these out? Is it safe to rpm -e php-pear-4.3.9-3.22?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Actually if you could, try pulling php from the centosplus channel. I think they're using 5.1, so dont actually install it if you dont want to, I just want to see if their design will do a clean upgrade on your box. If it does, then we'll get that incorporated into the php packages agruetz is working on.
fergie
Forum User
Forum User
Posts: 10
Joined: Mon Feb 05, 2007 8:45 am
Location: London, UK

Unread post by fergie »

Thanks, worked a treat. I disabled the ART repos and enabled centosplus and did yum upgrade php and Bob's your uncle.

Also successfully upgraded MySQL...

Thanks.
arisk
Forum User
Forum User
Posts: 12
Joined: Tue Apr 04, 2006 4:28 pm
Location: Greece

Unread post by arisk »

I am trying the same.

When I run
#yum upgrade

I get

Code: Select all

yum upgrade
Setting up Upgrade Process
Setting up repositories
update                    100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    --:--
atomic                    100% |=========================|  951 B    00:00
addons                    100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:01
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package cups-libs.x86_64 1:1.1.22-0.rc1.9.18 set to be updated
---> Package php-xml.i386 0:5.0.4-13.rhel4.art set to be updated
---> Package perl-TimeDate.noarch 0:1.16-1.c4 set to be updated
--> Running transaction check
--> Processing Dependency: libxslt.so.1 for package: php-xml
--> Processing Dependency: libexslt.so.0 for package: php-xml
--> Processing Dependency: php = 5.0.4-13.rhel4.art for package: php-xml
--> Processing Dependency: libxml2.so.2 for package: php-xml
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package libxml2.i386 0:2.6.16-6 set to be updated
---> Package php.i386 0:5.0.4-13.rhel4.art set to be updated
---> Package libxslt.i386 0:1.1.11-1 set to be updated
--> Running transaction check
--> Processing Dependency: libgcrypt.so.11 for package: libxslt
--> Processing Dependency: libgcrypt.so.11(GCRYPT_1.2) for package: libxslt
--> Processing Dependency: libdb-4.2.so for package: php
--> Processing Dependency: libbz2.so.1 for package: php
--> Processing Dependency: libgmp.so.3 for package: php
--> Processing Dependency: libgpg-error.so.0 for package: libxslt
--> Processing Dependency: libpcre.so.0 for package: php
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package libgcrypt.i386 0:1.2.0-3 set to be updated
---> Package gmp.i386 0:4.1.4-3 set to be updated
---> Package bzip2-libs.i386 0:1.0.2-13.EL4.3 set to be updated
---> Package libgpg-error.i386 0:1.0-1 set to be updated
---> Package pcre.i386 0:4.5-3.2.RHEL4 set to be updated
---> Package db4.i386 0:4.2.52-7.1 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 php-xml                 i386       5.0.4-13.rhel4.art  atomic            215 k
     replacing  php-domxml.x86_64 4.3.9-3.22.4

Updating:
 cups-libs               x86_64     1:1.1.22-0.rc1.9.18  update            112 k
 perl-TimeDate           noarch     1.16-1.c4        extras             32 k
Installing for dependencies:
 bzip2-libs              i386       1.0.2-13.EL4.3   base               33 k
 db4                     i386       4.2.52-7.1       base              1.5 M
 gmp                     i386       4.1.4-3          base              470 k
 libgcrypt               i386       1.2.0-3          base              153 k
 libgpg-error            i386       1.0-1            base               45 k
 libxml2                 i386       2.6.16-6         base              619 k
 libxslt                 i386       1.1.11-1         base              436 k
 pcre                    i386       4.5-3.2.RHEL4    base               58 k
 php                     i386       5.0.4-13.rhel4.art  atomic            4.0 M

Transaction Summary
=============================================================================
Install     10 Package(s)
Update       2 Package(s)
Remove       0 Package(s)
Total download size: 7.7 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test


Transaction Check Error:   file /etc/httpd/conf.d/php.conf from install of php-5.0.4-13.rhel4.art conflicts with file from package php-4.3.9-3.22.4
  file /etc/pear.conf from install of php-5.0.4-13.rhel4.art conflicts with file from package php-4.3.9-3.22.4
  file /etc/php.ini from install of php-5.0.4-13.rhel4.art conflicts with file from package php-4.3.9-3.22.4
How do I resolve this?
arisk
Forum User
Forum User
Posts: 12
Joined: Tue Apr 04, 2006 4:28 pm
Location: Greece

Unread post by arisk »

Actually, I've enabled the centosplus channel in CentOS-Base.repo and am now also getting the pear and sqllite2 dependency error.

Did you end up removing them to proceed?
Instead of your 33 I have 87 plesk packages that will need to be removed?
Thats seems drastic.

Any help is appreciated.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

try limiting it to just base/updates/centosplus and see what you get.
arisk
Forum User
Forum User
Posts: 12
Joined: Tue Apr 04, 2006 4:28 pm
Location: Greece

Unread post by arisk »

Code: Select all

--> Finished Dependency Resolution
Error: Missing Dependency: php <= 4.4.0 is needed by package php-sqlite2
Error: Missing Dependency: php = 4.3.9-3.22.4 is needed by package php-pear
Unfortunately the same.
Has anyone else done this lately?
Why am I not getting the upgrade from centosplus?
arisk
Forum User
Forum User
Posts: 12
Joined: Tue Apr 04, 2006 4:28 pm
Location: Greece

Unread post by arisk »

I am still battling with this.
Should I remove php-pear then?
Is there some other way?
Maybe from Art's Channels?

Thanks for your help.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

That is an expected error message, I posted my notes about this up on the wiki.
arisk
Forum User
Forum User
Posts: 12
Joined: Tue Apr 04, 2006 4:28 pm
Location: Greece

Unread post by arisk »

thanks Scott.
Followed the wiki and all worked fine.
Post Reply