Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When trying to run:

yum --enablerepo=remi install php-pgsql

I got the following error, why is this?

Error: Missing Dependency: php-common = 5.3.5-1.el5.remi.1 is needed by package php-pgsql-5.3.5-1.el5.remi.1.x86_64 (remi)
share|improve this question

1 Answer 1

up vote 1 down vote accepted

Reinstall php:

yum --enablerepo=remi reinstall php

Then install php-pgsql:

yum --enablerepo=remi install php-pgsql

If you install php from webtatic repo, first erase php and php-common:

yum erase php
yum erase php-common

Then install php from remi:

yum --enablerepo=remi --disablerepo=webtatic install php
share|improve this answer
    
if I do that then I'll be back with versio 5.1 right? –  EquinoX Feb 26 '11 at 20:47
    
No, you install php 5.3 from REMI. –  ooshro Feb 26 '11 at 20:50
    
got it! I'll try and see if it works –  EquinoX Feb 26 '11 at 20:53
    
I am getting this now when reinstalling: Installed package php-5.3.5-1.1.w5.x86_64 not available. –  EquinoX Feb 26 '11 at 23:25
    
1) yum erase php 2) yum erase php-common 3)yum --enablerepo=remi --disablerepo=webtatic install php 4) yum --enablerepo=remi install php-pgsql –  ooshro Feb 27 '11 at 5:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.