I tried installing php-pgsql using yum, but this is what I got
Code:
[root@kbnweb Include]# yum install php-pgsql
Setting up Install Process
Setting up repositories
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package php-pgsql.i386 0:4.3.9-3.26 set to be updated
--> Running transaction check
--> Processing Dependency: php = 4.3.9-3.26 for package: php-pgsql
--> Processing Dependency: libpq.so.3 for package: php-pgsql
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package postgresql-libs.i386 0:7.4.26-1.el4_8.1 set to be updated
--> Running transaction check
--> Processing Dependency: php = 4.3.9-3.26 for package: php-pgsql
--> Finished Dependency Resolution
Error: Missing Dependency: php = 4.3.9-3.26 is needed by package php-pgsql
yum list shows that the currently installed PHP is version 5.1.6:
Code:
php.i386 5.1.6-3.el4s1.10 installed
php-cli.i386 5.1.6-3.el4s1.10 installed
php-common.i386 5.1.6-3.el4s1.10 installed
php-gd.i386 5.1.6-3.el4s1.10 installed
php-mysql.i386 5.1.6-3.el4s1.10 installed
php-pdo.i386 5.1.6-3.el4s1.10 installed
Why did yum ask for PHP 4.3.9-3.26, while the version installed is in fact PHP 5.1.6?
I have downloaded php-pgsql-5.1.6-3.el4s1.10.i386.rpm.
Is it safe to force yum to install from the downloaded file instead? What the worst could happen?