Error installing php-pgsql Centos 6.9

0

After having installed version 7.2.8 of php and version 10 of postgresql on a server in Centos 6.9 when trying to install the pgsql drivers for php it gives me an error of dependencies:

yum install php-pgsql

The error he gives me is this:

Complementos cargados:fastestmirror, refresh-packagekit, security
Configurando el proceso de instalación
Loading mirror speeds from cached hostfile
 * base: mirrors.coreix.net
 * epel: mirror.upb.edu.co
 * extras: mirrors.coreix.net
 * remi-safe: mirror.upb.edu.co
 * updates: mirrors.coreix.net
Resolviendo dependencias
--> Ejecutando prueba de transacción
---> Package php-pgsql.x86_64 0:5.3.3-49.el6 will be instalado
--> Procesando dependencias: php-common(x86-64) = 5.3.3-49.el6 para el paquete: php-pgsql-5.3.3-49.el6.x86_64
--> Procesando dependencias: php-pdo(x86-64) para el paquete: php-pgsql-5.3.3-49.el6.x86_64
--> Ejecutando prueba de transacción
---> Package php-pdo.x86_64 0:5.3.3-49.el6 will be instalado
--> Procesando dependencias: php-common(x86-64) = 5.3.3-49.el6 para el paquete: php-pdo-5.3.3-49.el6.x86_64
---> Package php-pgsql.x86_64 0:5.3.3-49.el6 will be instalado
--> Procesando dependencias: php-common(x86-64) = 5.3.3-49.el6 para el paquete: php-pgsql-5.3.3-49.el6.x86_64
--> Resolución de dependencias finalizada
Error: Paquete: php-pgsql-5.3.3-49.el6.x86_64 (base)
           Necesita: php-common(x86-64) = 5.3.3-49.el6
           Instalado: php-common-7.2.8-1.el6.remi.x86_64 (@remi-php72)
               php-common(x86-64) = 7.2.8-1.el6.remi
           Disponible: php-common-5.3.3-49.el6.x86_64 (base)
               php-common(x86-64) = 5.3.3-49.el6
Error: Paquete: php-pdo-5.3.3-49.el6.x86_64 (base)
           Necesita: php-common(x86-64) = 5.3.3-49.el6
           Instalado: php-common-7.2.8-1.el6.remi.x86_64 (@remi-php72)
               php-common(x86-64) = 7.2.8-1.el6.remi
           Disponible: php-common-5.3.3-49.el6.x86_64 (base)
               php-common(x86-64) = 5.3.3-49.el6
 Podría intentar utilizar el comando --skip-broken para sortear el problema
Podría intentar ejecutar: rpm- Va --nofiles --nodigest

It seems to try to install the pgsql for 5.3 but I do not understand why since the version that I have installed running the following command'php -v' is the following:

PHP 7.2.8 (cli) (built: Jul 17 2018 10:07:54) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

In turn I tried with the following command:

yum install php72-php-pgsql

And even though the system was installed correctly, I still get the following error when I try to connect to a database:

Fatal error: Uncaught Error: Call to undefined function pg_connect()

The truth that I am lost with this, any help is grateful that it takes me to be able to install the drivers satisfactorily and that I stop giving an error when connecting with a database.

    
asked by Luis Alfredo Serrano Díaz 31.07.2018 в 14:57
source

0 answers