添加模块nginx psql

我需要添加 http_postgres_module 模块

以下是我的操作步骤:

root @ fp-desk: /home/floriane/openresty-1.11.2.5# ./configure --with-http_postgres_module;

它编译一些,但是不完全。我得到这个错误:

  • ngx_http_form_input_module 已配置 在../encrypted-session-nginx-module-0.06 添加模块 找到 ngx_devel_kit 与 ngx_encrypted_session 匹配;看起来不错。
  • ngx_http_encrypted_session_module 已配置 在../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: error: ngx_postgres插件无法检测到libpq库的版本。

ERROR: failed to run command: sh ./configure --prefix=/usr/local/openresty/nginx ...

root@fp-desk:/home/floriane/openresty-1.11.2.5#

点赞
用户9191140
用户9191140

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

yum install postgresql-devel

这对我有效。

2018-03-18 10:58:02