`
liu_swei
  • 浏览: 51602 次
  • 性别: 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即可.

 

分享到:
评论

相关推荐

    CentOS下编译php时的一些典型错误及解决办法.

    11. configure: error: Cannot find MySQL header files under /usr.Note that the MySQL client library is not bundled anymore! 解决方法: yum install mysql-devel 此错误是由于缺少 mysql-devel 库文件所...

    apache2.4完整安装

    ### Apache2.4完整安装及解决configure: error: APR-util not found问题 #### 一、背景介绍 Apache HTTP Server(通常简称为Apache)是目前最流行的Web服务器软件之一,广泛应用于互联网上的各种网站和应用程序。...

    device-mapper.1.02.28.tgz

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

    libmount-2.32.tar.gz

    然而,当我们尝试编译和安装这个版本时,可能会遇到“configure: error: *** Could not find libmount”这样的错误提示,这通常是由于系统环境配置不完整或者依赖关系未满足所导致的。 首先,我们要明白“configure...

    Linux 开发板移植gdb

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

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

    2. **错误:configure: error: xml2-config not found. Please check your libxml2 installation.** 解决方案:对于CentOS,执行`yum -y install libxml2 libxml2-devel`;Debian用户则运行`apt-get install libxml...

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

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

    Linphone编译错误及解决方法

    4. failed to with "configure: error: "Could not find libreadline headers or library" 错误原因:缺少libreadline头文件或库文件。 解决方法:apt-get install libreadline5-dev 5. fail with "checking for ...

    gcc-4.9.4安装包

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

    keeplived离线安装openssl-devel依赖包

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

    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 ...

    suse系统ssh升级压缩包.tar

    本升级包中包含openssh-8.1p1.tar.gz openssl-1.1.1b.tar.gz zlib-1.2.11.tar.gz等3个源码资源包。

    sqlite3 not found的解决办法

    在使用Linux或Unix类操作系统时,可能会遇到"sqlite3 not found"这样的错误提示,这通常意味着系统中没有安装SQLite3这个数据库引擎或者其路径没有被正确地添加到系统的PATH环境变量中。SQLite3是一个轻量级、开源的...

    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...

    sqlite3文件(sqlite3:not found 解决方法)

    sqlite3文件(用于解决安卓真机中sqlite3:not found的错误) http://blog.csdn.net/hust_twj/article/details/52212558

    automake autotools autoconf

    `autotools`可以理解为一个流程,包括编写`configure.ac`(`autoconf`的输入)、运行`autoconf`生成`configure`脚本,然后编写`Makefile.am`(`automake`的输入),运行`automake`和`autoheader`生成`Makefile.in`和...

    Arm板Apache+PHP环境搭建

    configure: error: cannot check for file existence when cross compiling的错误。 2. 需要添加ac_cv_func_setpgrp_void=yes选项,以避免出现checking whether setpgrp takes no argument... configure: error: ...

    qt 安装缺少包 version“Glibc_2.9” not fount

    (1)以glibc-2.9.tar.gz为例; tar –zxvf glibc-2.4.tar.gz;...configure: error: you must configure in a separate build directory 因此退出glibc-2.9文件夹。 #Cd ../ # glibc-2.9/configure (3)make; make install

    编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法

    在PHP的mysqli扩展中,如果遇到“configure: error: wrong mysql library version or lib not found”错误,可能还需要在mysqli扩展目录下进行以下操作: 1. **切换到mysqli扩展目录**:`cd /usr/local/src/...

    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_...

Global site tag (gtag.js) - Google Analytics