View Full Version : advanced noob needs help with rpm install of php 5
primesuspect
1 Jul 2006, 06: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, 07: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, 07: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, 07: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, 07: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, 07: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, 08: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, 08: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, 09: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, 01:29am
i did that. :(
jhenry
2 Jul 2006, 08:58am
...drumroll...
We're back online. We decided to screw RPM and I compiled Apache and PHP by hand.
primesuspect
2 Jul 2006, 09: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, 09:34am
Thanks JH.. you rock sir! :D
Aaaaand I knew this thread had something to do with our downtime. ;D
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.