Estaba instalando la version del PHP5.2 luego de haber quitado la version 5.3
Continuemos
Pero necesito el PHP-CURL, para manejar unos aplicativos que tambien utilizo:
#yum install php-curl
Loaded plugins: allowdowngrade, fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.netlinux.cl
* centosplus: mirror.netlinux.cl
* extras: mirror.highspeedweb.net
* updates: mirror.rackspace.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php53-common.x86_64 0:5.3.3-1.el5_6.1 set to be updated
--> Processing Conflict: php53-common conflicts php-common
--> Finished Dependency Resolution
php53-common-5.3.3-1.el5_6.1.x86_64 from base has depsolving problems
--> php53-common conflicts with php-common
Error: php53-common conflicts with php-common
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
You have new mail in /var/spool/mail/root
#yum install php-mcrypt
Loaded plugins: allowdowngrade, fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.netlinux.cl
* centosplus: mirror.netlinux.cl
* extras: mirror.highspeedweb.net
* updates: centos.vipernetworksystems.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.1.6-15.el5.centos.1 set to be updated
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php-mcrypt
--> Running transaction check
---> Package libmcrypt.x86_64 0:2.5.8-4.el5.centos set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================
Installing:
php-mcrypt x86_64 5.1.6-15.el5.centos.1 extras 16 k
Installing for dependencies:
libmcrypt x86_64 2.5.8-4.el5.centos extras 105 k
Transaction Summary
==============================================================================================================================================
Install 2 Package(s)
Upgrade 0 Package(s)
Total download size: 121 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): php-mcrypt-5.1.6-15.el5.centos.1.x86_64.rpm | 16 kB 00:00
(2/2): libmcrypt-2.5.8-4.el5.centos.x86_64.rpm | 105 kB 00:00
----------------------------------------------------------------------------------------------------------------------------------------------
Total 94 kB/s | 121 kB 00:01
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libmcrypt 1/2
Installing : php-mcrypt 2/2
Installed:
php-mcrypt.x86_64 0:5.1.6-15.el5.centos.1
Dependency Installed:
libmcrypt.x86_64 0:2.5.8-4.el5.centos
Complete!
# /etc/init.d/httpd restart
Parando httpd: [ OK ]
Iniciando httpd: [ OK ]
# /etc/init.d/mysqld stopParando MySQL: [ OK ]
#/etc/init.d/mysqld start
Iniciando MySQL: [ OK ]
# /etc/init.d/httpd restart
Parando httpd: [ OK ]
Iniciando httpd: [ OK ]
# rpm -qa |grep phpphp-common-5.1.6-27.el5_5.3
php-5.1.6-27.el5_5.3
php-cli-5.1.6-27.el5_5.3
php-mcrypt-5.1.6-15.el5.centos.1
#
Bueno no bajo la version que yo necesitaba, asi que toca añadir dependencias de desarrollo al YUM:
En el siguiente archivo:
/etc/yum.repos.d/CentOS-Testing.repo
Si no esta crealo
#vi /etc/yum.repos.d/CentOS-Testing.repo
Y copia lo siguiente adentro
# CentOS-Testing:
# !!!! CAUTION !!!!
# This repository is a proving grounds for packages on their way to CentOSPlus and CentOS Extras.
# They may or may not replace core CentOS packages, and are not guaranteed to function properly.
# These packages build and install, but are waiting for feedback from testers as to
# functionality and stability. Packages in this repository will come and go during the
# development period, so it should not be left enabled or used on production systems without due
# consideration.
[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
includepkgs=php*
Ahora si haz el YUM UPDATE
# yum update
Loaded plugins: allowdowngrade, fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.netlinux.cl
* centosplus: mirror.netlinux.cl
* extras: mirror.highspeedweb.net
* updates: mirror.rackspace.com
c5-testing | 1.9 kB 00:00
c5-testing/primary_db | 637 kB 00:01
Reducing CentOS-5 Testing to included packages only
Finished
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.2.10-1.el5.centos set to be updated
---> Package php-cli.x86_64 0:5.2.10-1.el5.centos set to be updated
---> Package php-common.x86_64 0:5.2.10-1.el5.centos set to be updated
---> Package php-mcrypt.x86_64 0:5.2.9-2.el5.centos.3 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================================================
Package Arch Version Repository Size
=======================================================================================================================
Updating:
php x86_64 5.2.10-1.el5.centos c5-testing 1.2 M
php-cli x86_64 5.2.10-1.el5.centos c5-testing 2.4 M
php-common x86_64 5.2.10-1.el5.centos c5-testing 242 k
php-mcrypt x86_64 5.2.9-2.el5.centos.3 c5-testing 16 k
Transaction Summary
=======================================================================================================================
Install 0 Package(s)
Upgrade 4 Package(s)
Total download size: 3.9 M
Is this ok [y/N]:
Downloading Packages:
(1/4): php-mcrypt-5.2.9-2.el5.centos.3.x86_64.rpm | 16 kB 00:00
(2/4): php-common-5.2.10-1.el5.centos.x86_64.rpm | 242 kB 00:00
(3/4): php-5.2.10-1.el5.centos.x86_64.rpm | 1.2 MB 00:01
(4/4): php-cli-5.2.10-1.el5.centos.x86_64.rpm | 2.4 MB 00:02
-----------------------------------------------------------------------------------------------------------------------
Total 672 kB/s | 3.9 MB 00:05
advertencia:rpmts_HdrFromFdno: CabeceraV3 DSA signature: NOKEY, key ID 7203f491
c5-testing/gpgkey | 1.8 kB 00:00
Importing GPG key 0x7203F491 "CentOS-testing (CentOS Developers testing key) <centos@centos.org>" from http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : php-common 1/8
Updating : php-cli 2/8
Updating : php 3/8
Updating : php-mcrypt 4/8
Cleanup : php-common 5/8
Cleanup : php-mcrypt 6/8
Cleanup : php-cli 7/8
Cleanup : php 8/8
Updated:
php.x86_64 0:5.2.10-1.el5.centos php-cli.x86_64 0:5.2.10-1.el5.centos
php-common.x86_64 0:5.2.10-1.el5.centos php-mcrypt.x86_64 0:5.2.9-2.el5.centos.3
Complete!
LISTOS!!
Verificamos nuevamente si tenemos la version que necesitamos:
# php -v
PHP 5.2.10 (cli) (built: Nov 13 2009 11:44:05)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
LISTOS!
Ahora si reiniciar el apache y el mysql
# /etc/init.d/httpd restart
Parando httpd: [ OK ]
Iniciando httpd: [ OK ]
# /etc/init.d/mysqld restart
Parando MySQL: [ OK ]
Iniciando MySQL: [ OK ]
]# rpm -qa |grep php
php-5.2.10-1.el5.centos
php-cli-5.2.10-1.el5.centos
php-common-5.2.10-1.el5.centos
php-mcrypt-5.2.9-2.el5.centos.3
Como no estaba todo lo que necesito agrege otras dependencias
cd /etc/yum.repos.d
Crea un archivo:
touch utterramblings.repo
[utterramblings]
name=Jason’s Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
Volvi a intentar el
# yum update php
Loaded plugins: allowdowngrade, fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.netlinux.cl
* centosplus: mirror.netlinux.cl
* extras: mirror.highspeedweb.net
* updates: centos.vipernetworksystems.com
utterramblings | 951 B 00:00
utterramblings/primary | 56 kB 00:00
utterramblings 197/197
Reducing CentOS-5 Testing to included packages only
Finished
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.2.17-jason.2 set to be updated
--> Processing Dependency: php-cli = 5.2.17-jason.2 for package: php
--> Processing Dependency: php-common = 5.2.17-jason.2 for package: php
--> Running transaction check
---> Package php-cli.x86_64 0:5.2.17-jason.2 set to be updated
---> Package php-common.x86_64 0:5.2.17-jason.2 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================
Updating:
php x86_64 5.2.17-jason.2 utterramblings 3.8 M
Updating for dependencies:
php-cli x86_64 5.2.17-jason.2 utterramblings 2.6 M
php-common x86_64 5.2.17-jason.2 utterramblings 522 k
Transaction Summary
================================================================================================================================
Install 0 Package(s)
Upgrade 3 Package(s)
Total download size: 6.9 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): php-common-5.2.17-jason.2.x86_64.rpm | 522 kB 00:00
(2/3): php-cli-5.2.17-jason.2.x86_64.rpm | 2.6 MB 00:01
(3/3): php-5.2.17-jason.2.x86_64.rpm | 3.8 MB 00:02
--------------------------------------------------------------------------------------------------------------------------------
Total 1.2 MB/s | 6.9 MB 00:05
advertencia:rpmts_HdrFromFdno: CabeceraV3 DSA signature: NOKEY, key ID 0d4306ef
utterramblings/gpgkey | 1.3 kB 00:00
Importing GPG key 0x0D4306EF "Jason Litka (http://www.jasonlitka.com/) <jasonlitka@verizon.net>" from http://www.jasonlitka.com/m edia/RPM-GPG-KEY-jlitka
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : php-common 1/6
Updating : php-cli 2/6
Updating : php 3/6
Cleanup : php-cli 4/6
Cleanup : php-common 5/6
Cleanup : php 6/6
Updated:
php.x86_64 0:5.2.17-jason.2
Dependency Updated:
php-cli.x86_64 0:5.2.17-jason.2 php-common.x86_64 0:5.2.17-jason.2
Complete!
#
#yum update
Nuevamente
ME toco instalar algunos paquetes manualmente
yum install php-cli-5.2*
yum install php-mbstring-5.2*
yum install php-devel-5.2
yum install php-pdo-5.2*
yum install php-gd-5.2*
yum install php-dba-5.2*
yum install php-common-5.2*
yum install php-bcmath-5.2*
yum install php-xml-5.2*
yum install php-pear-1.5.1*
yum install php-ldap-5.2*
yum install php-5.2*
yum install php-mysql-5.2*
Ya tenia mas:
]# rpm -qa |grep php
php-5.2.17-jason.2
php-pdo-5.2.17-jason.2
php-bcmath-5.2.17-jason.2
php-common-5.2.17-jason.2
php-mcrypt-5.2.17-jason.2
php-dba-5.2.17-jason.2
php-ldap-5.2.17-jason.2
php-gd-5.2.17-jason.2
php-pear-1.5.1-2.el5s2
php-xml-5.2.17-jason.2
php-cli-5.2.17-jason.2
php-mbstring-5.2.17-jason.2
php-mysql-5.2.17-jason.2
No hay comentarios:
Publicar un comentario