在 安装 php后重新 安装 一些 扩展 的时候遇到问题: 先谈下如何 安装 posgresql的php 扩展 1、首先到:http://pecl.php.net/package/PDO_PGSQL下载 PDO_PGSQL-1.0.2.tgz 扩展 包 2、解压后进入PDO_PGSQL-1.0.2 根据php 安装 位置 执行 /usr/local/php/bin/p
在安装php后重新安装一些扩展的时候遇到问题:
先谈下如何安装posgresql的php扩展
1、首先到:http://pecl.php.net/package/PDO_PGSQL 下载 PDO_PGSQL-1.0.2.tgz扩展包
2、解压后进入PDO_PGSQL-1.0.2 根据php安装位置 执行 /usr/local/php/bin/phpize;
3、接着配置./configure –with-php-config=/usr/local/php/bin/php-config
4、make && make install 编译安装
5、将编译完的扩展extension=pdo_pgsql.so添加到 php.ini 最后 重启php-fpm 重启 nginx 即可生效
在config php的时候可能出现
configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
解决办法:
yum install postgresql-devel ,重新编译PHP即可。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

WebStorm Mac version
Useful JavaScript development tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

SublimeText3 Linux new version
SublimeText3 Linux latest version

Dreamweaver CS6
Visual web development tools
