gpt4 book ai didi

database - 配置 : error: libpq is not installed or libpq is old

转载 作者:太空宇宙 更新时间:2023-11-04 11:17:05 26 4
gpt4 key购买 nike

我正在尝试在 Ubuntu 13.10 环境中安装 pgpool-II。我正在关注 this完成它的教程。

我遇到以下错误。

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.

我正在使用下面的命令按照说明修复它,但它不起作用。

./configure --with-pgsql-includedir /usr/lib/

我也关注了this来自 Database Administrators Stack Exchange。

我该如何解决这个问题?

最佳答案

1 - 如果单独这样做不能解决问题,请尝试确保 pg_config 在 PATH 上:

export PATH=$PATH:/usr/pgsql-[version]/bin

2-> ./配置

关于database - 配置 : error: libpq is not installed or libpq is old,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20368630/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com