centos 下安装pdo_pgsql 只需一个命令_______yum install php56w-pgsql

[root@localhost ~]# yum install php56w-pgsql
Loaded plugins: fastestmirror, langpacks
Repository pgdg95 is listed more than once in the configuration
Repository pgdg95-source is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * base: mirrors.sohu.com
 * epel: mirror.premi.st
 * extras: mirrors.sohu.com
 * updates: mirrors.sohu.com
 * webtatic: sp.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php56w-pgsql.x86_64 0:5.6.30-1.w7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package              Arch           Version             Repository        Size
================================================================================
Installing:
 php56w-pgsql         x86_64         5.6.30-1.w7         webtatic         107 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 107 k
Installed size: 378 k
Is this ok [y/d/N]: y
Downloading packages:
php56w-pgsql-5.6.30-1.w7.x86_64.rpm                        | 107 kB   00:02     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : php56w-pgsql-5.6.30-1.w7.x86_64                              1/1
  Verifying  : php56w-pgsql-5.6.30-1.w7.x86_64                              1/1

Installed:
  php56w-pgsql.x86_64 0:5.6.30-1.w7                                             

Complete!

 

如果根本没有pdo_pgsql   https://superuser.com/questions/475842/install-pdo-driver-for-postgresql

 

yum 也无法找到package那么你需要(centos7)https://webtatic.com/packages/php56/

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

 

 

 

 

有不懂得或者不明确的地方可以关注我的v信号:whenDreams

回复"博客"即可

或扫码:

 

 

或加我们的Symfony Q裙:

 

 

 

php -m|grep -i pdo

 

转载于:https://www.cnblogs.com/Amos-Turing/p/6875564.html

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值