Upgrade to PHP 5 with rpm install

Fermé
flipmode62 Messages postés 49 Date d'inscription lundi 1 décembre 2008 Statut Membre Dernière intervention 20 mai 2010 - 26 janv. 2009 à 17:26
flipmode62 Messages postés 49 Date d'inscription lundi 1 décembre 2008 Statut Membre Dernière intervention 20 mai 2010 - 27 janv. 2009 à 09:51
Hello,

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 for your help

Flipmode
A voir également:

2 réponses

Unixmen_net Messages postés 10 Date d'inscription lundi 26 janvier 2009 Statut Membre Dernière intervention 30 janvier 2009 1
26 janv. 2009 à 17:42
try this :

rpm -Uvh php-5.1.4-1.esp1.x86_64.rpm php-5.1.4-1.esp1.x86_64.rpm



Let me know of it works for you .

cheers
Unixmen_net
0
flipmode62 Messages postés 49 Date d'inscription lundi 1 décembre 2008 Statut Membre Dernière intervention 20 mai 2010
27 janv. 2009 à 09:51
Are you sure about your commande rpm -Uvh php-5.1.4-1.esp1.x86_64.rpm php-5.1.4-1.esp1.x86_64.rpm ?

When I try that, I get :
rpm -Uvh php-5.1.4-1.esp1.x86_64.rpm php-5.1.4-1.esp1.x86_64.rpm
warning: package php = 5.1.4-1.esp1 was already added, replacing with php <= 5.1.4-1.esp1
error: Failed dependencies:
php = 4.3.9-3.22.9 is needed by (installed) php-pear-4.3.9-3.22.9.x86_64
php = 4.3.9-3.22.9 is needed by (installed) php-gd-4.3.9-3.22.9.x86_64
php = 4.3.9-3.22.9 is needed by (installed) php-mysql-4.3.9-3.22.9.x86_64
php = 4.3.9-3.22.9 is needed by (installed) php-devel-4.3.9-3.22.9.x86_64
php = 4.3.9-3.22.9 is needed by (installed) php-snmp-4.3.9-3.22.9.x86_64
php = 4.3.9-3.22.9 is needed by (installed) php-ldap-4.3.9-3.22.9.x86_64
php = 4.3.9-3.22.9 is needed by (installed) php-mbstring-4.3.9-3.22.9.x86_64


Thanks for your help

Flipmode
0