Centos – php-pgsql error in centOS

centosPHPrepository

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)

Best Answer

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
Related Topic