Postgresql 添加模块nginx-psql

Postgresql 添加模块nginx-psql,postgresql,nginx,Postgresql,Nginx,我需要添加http\u postgres\u模块模块 我是这样做的: root @ fp-desk: /home/floriane/openresty-1.11.2.5# ./configure --with-http_postgres_module; 它编译了一些但不完全。我得到这个错误: 已配置ngx_http_表单_输入_模块 正在../encrypted-session-nginx-module-0.06中添加模块 找到ngx_加密会话的ngx_开发工具包;看起来不错 已配置ngx_

我需要添加
http\u postgres\u模块
模块

我是这样做的:

root @ fp-desk: /home/floriane/openresty-1.11.2.5# ./configure --with-http_postgres_module;
它编译了一些但不完全。我得到这个错误:

  • 已配置ngx_http_表单_输入_模块 正在../encrypted-session-nginx-module-0.06中添加模块 找到ngx_加密会话的ngx_开发工具包;看起来不错
  • 已配置ngx_http_加密_会话_模块 在../ngx_postgres-1.0中添加模块
正在检查libpq库版本9.1。。。找不到 正在检查libpq库版本9.0。。。找不到 正在检查libpq库版本8.4。。。找不到 正在检查libpq库版本8.3。。。找不到 正在检查libpq库版本8.2。。。找不到 正在检查libpq库版本8.1.4。。。找不到 正在检查libpq库版本8.1.0。。。找不到 正在检查libpq库版本8.0.8。。。找不到 正在检查libpq库版本8.0.0。。。找不到

./configure:错误:ngx_postgres加载项无法检测libpq库的版本

错误:无法运行命令:sh./configure--prefix=/usr/local/openresty/nginx

root@fp-办公桌:/home/floriane/openresty-1.11.2.5#


对于CentOS或RHEL用户,请尝试安装
postgresql-devel
package

yum install postgresql-devel
这对我有用