LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-19-2009, 01:09 AM   #1
Kreshna
Member
 
Registered: Oct 2006
Posts: 45

Rep: Reputation: 15
YUM cannot install php-pgsql: version problem?


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?
 
Old 11-19-2009, 10:11 AM   #2
SethsdadtheLinuxer
Member
 
Registered: Jun 2007
Posts: 152

Rep: Reputation: 37
It should be safe; The "worst" case should be that you end up doing a "yum remove" and "yum install" again.
 
Old 11-19-2009, 10:36 AM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Kreshna

Whenever you ask a question please help us help you by telling us what distro, arch, and version you are running. I will guess that you are running RHEL4.? 32bit(correct?). You also did not mention what repos you are using and where you got php5(not in standard RHEL4.X repos).
 
Old 11-20-2009, 11:47 AM   #4
Kreshna
Member
 
Registered: Oct 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by lazlow View Post
Kreshna

Whenever you ask a question please help us help you by telling us what distro, arch, and version you are running. I will guess that you are running RHEL4.? 32bit(correct?). You also did not mention what repos you are using and where you got php5(not in standard RHEL4.X repos).
I'm sory. I'm using CentOS 4.2 32 bit. I don't exactly remember where I downloaded the PHP5 RPM (it was a Googling result), but I'll find out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum - install particular version of a package? neiljt Linux - Software 8 06-23-2014 05:41 PM
yum install PHP: yum tries to install duplicate httpd beebopbogo Linux - Software 1 05-26-2009 03:08 AM
yum install php-mysql uhmaster2000 Linux - Newbie 11 05-18-2009 08:12 PM
How to install specific version of a package using yum? yuriy Linux - Newbie 1 09-26-2008 10:06 AM
MySQL & pgSQL problems w/ PHP dolvmin Linux - Software 2 10-28-2005 11:36 PM


All times are GMT -5. The time now is 10:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration