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裙:

 

 

 

1
php -m|grep -i pdo

 

posted @   ldp.im  阅读(645)  评论(0编辑  收藏  举报
编辑推荐:
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
阅读排行:
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
点击右上角即可分享
微信分享提示