postgresql - centos 中的 libpq 库

标签 postgresql centos7

我正在使用 Centos 7,我很难找到一个名为 libpq 的 postgresql 库。我已经安装了它,但是当我运行“pkg-config libpq --cflags --libs”时,我得到“没有找到包‘libpq’”。

当我运行 'rpm -qa | grep libpq' 我在这里得到这个: libpqxx-devel-5.0.1-2.rhel7.x86_64 libpqxx-5.0.1-2.rhel7.x86_64.

这里可能是什么问题。提前致谢!

最佳答案

我通过将 libpq 库的路径分配给这样的环境变量来使其工作:

导出 PKG_CONFIG_PATH=/usr/pgsql-10/lib/pkgconfig

此命令将帮助找到库“locate libpq.pc”的正确路径。

关于postgresql - centos 中的 libpq 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51498447/

相关文章:

postgresql - super 用户 nologin 角色?

postgresql - Elastic Beanstalk - RDS Postgres - 密码验证失败

postgresql - 从postgresql中的字符串中截断前导零

linux -/proc/[pid]/stat 刷新周期

python - 如何在没有互联网连接的情况下在 CentOS 中安装最新版本的 Python 和 python 包?

mysql - 避免相关子查询的麻烦

PostgreSQL:非空违规:7 错误:列 "id"中的空值违反非空约束

gcc - nm devtoolset 的 .so 文件给出文件格式无法识别

google-cloud-platform - 在 Google Cloud Compute 上永久更改主机名 - WHM

Centos 7 + sendmail 从错误的主机名发送