`
liu_swei
  • 浏览: 50334 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

configure: error: libpq is not installed or libpq

 
阅读更多

通过postgresql搭建集群环境时用到了pgpools,结果安装过程中报错:

configure: error: libpq is not installed or libpq is old
 
经过查找官方文档,文档说明如下:
Note: pgpool-II requires libpq library in PostgreSQL 7.4 or later (version 3 protocol). If configure script displays the following error message, libpq library may not be installed, or it is not of version 3.
configure: error: libpq is not installed or libpq is old

If the library is version 3, but above message is still displayed, your libpq library is probably not recognized by configure script.

configure script searches for libpq library under /usr/local/pgsql libaray. If you have installed PostgreSQL to a directory other than /usr/local/pgsql, use --with-pgsql, or --with-pgsql-includedir and --with-pgsql-libdir command line options when you execute configure.

我的系统是RHEL5.1,默认安装的pgsql版本是postgresql是8.1.9,显然我的版本支持Version 3的.但为什么会报错呢?

原来是需要安装postgresql-devel-8.1.9-1.el5这个组件,然后在configure的时候指定--with-pgsql=/usr/lib/pgsql即可.

 

分享到:
评论

相关推荐

    keeplived离线安装openssl-devel依赖包

    由于公司业务并发比较高需要高可用使用LVS keeplived。在linux系统centos6.5版本...configure: error: !!! OpenSSL is not properly installed on your system. !!! !!! Can not include OpenSSL headers files. !!!

    svn安装过程中遇到错误需要的文件包

    错误 configure: error: could not find library containing RSA_new: 错误 configure: error: no XML parser was found: expat or libxml 2.x required 解放方法: ...

    gmp 5.0.4 安装GCC必需文件

    GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers. There is no practical limit to the precision except the ones ...

    device-mapper.1.02.28.tgz

    在编译parted-3.2时,报错:configure: error: libdevmapper could not be found,找到device-mapper.1.02.28,并下了下来。 这个源码藏得有点深,分享出来给大家

    gcc_4.9.4_gcc+gmp+mpfr+mpc.tar.gz

    编译安装软件的时候,发现错误configure: error: *** A compiler with support for C++11 language features is required. 原来是gcc版本太低了,我的版本是gcc version 4.6.3 想要支持C++11,必须升级到gcc4.8...

    PHP编译configure时常见错误的总结

    因此要自己亲自不断的调试,才能完全安装成功。 本文总结了一些常见的configure错误信息和解决这些错误的经验。...1、configure: error: No curses/termcap library found 网上有的说法是:–with-named-c

    libmount-2.25.2-实测版本

    经过实测的版本 configure: error: *** Could not find libmount checking for LIBMOUNT... no glib-2.56.0

    gcc-4.9.4安装包

    在编译安装软件的时候,发现错误configure: error: *** A compiler with support for C++11 language features is required. 要支持C++11,必须升级到gcc4.7以上。

    centos7下升级openssh到8.4脚本

    centos7下升级openssh到8.4脚本

    GDB 在arm开发板上的远程调试

    GDB 在arm开发板上的远程调试 GDB 在arm开发板上的远程调试 GDB 在arm开发板上的远程调试 GDB 在arm开发板上的远程调试

    lz4最新版,编译spice-gtk-0.35时使用

    解决configure: error: lz4 support requested but liblz4 >= 129 could not be found, export PREFIX=安装目录 &make; &make; install

    automake autotools autoconf

    用autoconf和automake自动生成Makefile,其中要用到的,其中要用到的automake,autotools,autoconf这三个文档

    为PHP安装imagick时出现Cannot locate header file MagickWand.h错误的解决方法

    checking for MagickWand.h header file… configure: error: Cannot locate header file MagickWand.h 可是我明明正确安装了ImageMagick的呀.GOOGLE了半天,也解决不了这个问题.后面对照另一个服务器上的ImageMagick...

    升级openssh及openssl.pdf

    centos7 下编译安装升级openssl及openssh,亲测笔记。如环境有区别请自行修改部分自定义设置。升级软件版本 :openssl-1.1.1g openssh-8.3p1

    Linux 开发板移植gdb

    开发板没有gdb,写程序老出错而且找不到问题在哪里。于是痛定思痛,决定移植一个gdb。 交叉编译器:arm-none-linux-gnueabi ...(3)./configure –host=arm-none-linux-gnueabi –prefix=$PWD/install –wi

    php源代码安装常见错误与解决办法分享

    错误:configure: error: libevent >= 1.4.11 could not be found 解决:yum -y install libevent libevent-devel 错误:configure: error: Please reinstall the mysql distributio 解决:yum -y install mysql-...

    proj-6.2.0.zip

    proj-6.2.0 cmake windows vs2015编译包括dll lib cct.lib cs2cs.lib geod.lib geodtest.lib gie.lib gie_self_tests.lib gtest.lib pj_phi2_test.lib proj.lib proj_6_2.lib proj_angular_io_test.lib proj_...

    C++ 通过libpqxx 连接postgresql 所需的libpqxx库

    lipqxx为4.0.1,为x86版本,使用的使用vs2010提示窗口进行编译的,vs包含相应的动动态静态库后,通过libpqxx函数能实现C++连接postgresql数据库,并进行数据库操作,编译参考网址:...

    nginx-1.0.5最新稳定版

    状况:./configure: error: the HTTP rewrite module requires the PCRE library. 解决:yum -y install pcre-devel 安装相应的包 2.缺少zlib 状况: ./configure: error: the ...

    安装linux编译时报apr错误的解决方法

    安装linux编译时报apr错误的解决方法 httpd-2.4.3.tar.gz, apr-util-1.3.10.tar.gz, apr-1.4.2.tar.gz,

Global site tag (gtag.js) - Google Analytics