简体   繁体   English

无法在Ubuntu 16.04上安装php5-pgsql

[英]Unable to install php5-pgsql on Ubuntu 16.04

I updated my OS from Ubuntu 14.04 to version 16.04, and php 7 was installed, but I want to use php 5.6. 我将我的操作系统从Ubuntu 14.04更新到16.04版本,并安装了php 7,但我想使用php 5.6。 So I installed php 5.6 and tell Apache to use that version instead of php 7. 所以我安装了php 5.6并告诉Apache使用该版本而不是php 7。

But I'm having problems installing php5-pgsql. 但我在安装php5-pgsql时遇到问题。

I tried with this tutorial, but I get the error 我试过这个教程,但是我收到了错误

"El paquete php5-pgsql no está disponible, pero algún otro paquete hace referencia a él. Esto puede significar que el paquete falta, está obsoleto o sólo se encuentra disponible desde alguna otra fuente" “El paquete php5-pgsql noestádisponible,perosagúnotropaquete hace referenciaaél.Estopuede significar que el paquete falta,estáobsoletoosóloseencuentra disponible desde alguna otra fuente”

what can I do? 我能做什么?

try this: 尝试这个:

sudo apt-get install php5.6-pgsql sudo apt-get install php5.6-pgsql

Hope it helps! 希望能帮助到你!

你可以试试最新版本。

sudo apt-get install php7.0-pgsql

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM