PDA

View Full Version : advanced noob needs help with rpm install of php 5


primesuspect
1 Jul 2006, 6:17pm
Hey guys.

I'm working on upgrading php 4 on one of my servers to php 5. It took me ages to even find the right package. This is RHEL 4 x86-64 SMP.

I FINALLY found a package for php 5 built for x86-64 (http://www.centos.org/modules/newbb/viewtopic.php?topic_id=4274&forum=34). Now I just need to figure out how to upgrade.

when I run

rpm -i php-5.1.4-1.x86_64.rpm

i get:

file /etc/httpd/conf.d/php.conf from install of php-5.1.4-1 conflicts with file from package php-4.3.9-3.9
file /etc/php.ini from install of php-5.1.4-1 conflicts with file from package php-4.3.9-3.9
file /usr/bin/php from install of php-5.1.4-1 conflicts with file from package php-4.3.9-3.9
file /var/www/icons/php.gif from install of php-5.1.4-1 conflicts with file from package php-4.3.9-3.9

ahh what do I do?

jhenry
1 Jul 2006, 7:34pm
Have you tried upgrading the package (up2date -u php)?

Did you install directly from RPMs or did you use yum or up2date?

What about using rpm -U php-5.1.4-1.x86_64.rpm, upgrading rather than installing?

primesuspect
1 Jul 2006, 7:49pm
i tried that. i get a failed dependency:

rpm -U php-5.1.4-1.x86_64.rpm
error: Failed dependencies: php = 4.3.9-3.9 is needed by (installed) php-pear-4.3.9-3.9.x86_64


and when I try to upgrade the php-pear package, I get:

rpm -U php-pear-1.4.6-2.noarch.rpm
error: Failed dependencies: php >= 5.1.0-1 is needed by php-pear-1.4.6-2.noarch

yay!

jhenry
1 Jul 2006, 7:51pm
rpm -U php-5.1.4-1.x86_64.rpm php-pear-5.1.4-1.x86_64.rpm

This is why I prefer compiling php by hand instead of RPMs. There's a lot less mess.

EDIT: you beat me to it.

EDIT2: Trying them both in one line should work
BTW, get on MSN plz

primesuspect
1 Jul 2006, 7:55pm
okay i solved some dependencies by up2date-ing the net-snmp packages, etc.. but there's still two left:

libmysqlclient.so.15()(64bit) is needed by php-mysql-5.1.4-1.x86_64
libsqlite3.so.0()(64bit) is needed by php-pdo-5.1.4-1.x86_64

i can't find those... arrrgh..

this is RHEL 4 so it doesn't have yum. I'm using the RHEL repository. :werr:

jhenry
1 Jul 2006, 7:58pm
The first one is resolved by installing mysql-devel and mysql-shared

The second one should beresolved by sqlite-devel

http://isoredirect.centos.org/centos/4/os/x86_64/CentOS/RPMS/sqlite-devel-3.2.2-1.x86_64.rpm

http://isoredirect.centos.org/centos/4/os/x86_64/CentOS/RPMS/mysqlclient10-3.23.58-4.RHEL4.1.x86_64.rpm
http://isoredirect.centos.org/centos/4/os/x86_64/CentOS/RPMS/mysql-devel-4.1.12-3.RHEL4.1.x86_64.rpm

primesuspect
1 Jul 2006, 8:10pm
aargh!

rpm -i sqlite-devel-3.2.2-1.x86_64.rpm
warning: sqlite-devel-3.2.2-1.x86_64.rpm: V3 DSA signature: NOKEY, key ID 443e1821
error: Failed dependencies:
sqlite = 3.2.2-1 is needed by sqlite-devel-3.2.2-1.x86_64

jhenry
1 Jul 2006, 8:19pm
Install the SQLite binary file:
http://isoredirect.centos.org/centos/4/os/x86_64/CentOS/RPMS/sqlite-3.2.2-1.x86_64.rpm

primesuspect
1 Jul 2006, 9:39pm
what a nightmare. libmysqlclient.so.15()(x86_64) is required, but I cannot find it anywhere :-/

drasnor
2 Jul 2006, 12:59am
If you haven't already, try up2date'ing the entire system. That's usually a good way to flush out odd dependencies.

-drasnor :fold:

primesuspect
2 Jul 2006, 1:29am
i did that. :(

jhenry
2 Jul 2006, 8:58am
...drumroll...

We're back online. We decided to screw RPM and I compiled Apache and PHP by hand.

primesuspect
2 Jul 2006, 9:01am
thanks a TON john. you totally rock for this.

Case closed - the answer : get someone who knows what they're doing to compile everything from source :p

Shorty
2 Jul 2006, 9:34am
Thanks JH.. you rock sir! :D

Thrax
2 Jul 2006, 10:54am
Aaaaand I knew this thread had something to do with our downtime. ;D

flipmode
26 Jan 2009, 4:20pm
Hello,

I have the same problem. I need some help to upgrade PHP 4 to PHP 5.1

I installed PHP-4.3.9 and mysql-4.1.20-2.RHEL4.1.0.1 in my Redhat Server (Redhat 4 Enterprise).

My PHP packages installed in my Redhat server:
rpm -qa | grep php
php-gd-4.3.9-3.22.9
php-snmp-4.3.9-3.22.9
php-4.3.9-3.22.9
php-devel-4.3.9-3.22.9
php-mysql-4.3.9-3.22.9
php-ldap-4.3.9-3.22.9
php-pear-4.3.9-3.22.9
php-mbstring-4.3.9-3.22.9

I installed Nagios, Centreon, Nagvis et Cacti using these packages.

When I try to update to PHP-5.1.4, I get:
rpm -U php-5.1.4-1.esp1.x86_64.rpm php-snmp-5.1.4-1.esp1.x86_64.rpm php-ldap-5.1.4-1.esp1.x86_64.rpm php-mysql-5.1.4-1.esp1.x86_64.rpm php-mbstring-5.1.4-1.esp1.x86_64.rpm php-devel-5.1.4-1.esp1.x86_64.rpm php-gd-5.1.4-1.esp1.x86_64.rpm php-pdo-5.1.4-1.esp1.x86_64.rpm

error: Failed dependencies:
php = 4.3.9-3.22.9 is needed by (installed) php-pear-4.3.9-3.22.9.x86_64

I don't find the package php-pear-5.1.4-1.x86_64.rpm and when I try to upgrade the php-pear package, I get: rpm -U php-pear-1.4.6-2.noarch.rpm

warning: php-pear-1.4.6-2.noarch.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
php >= 5.1.0-1 is needed by php-pear-1.4.6-2.noarch

How can I resolv it ?

Thank you very much for your help

Flipmode