错误:依赖项失败:pg_statsinfo-10.0-1.pg10.rhel7.x86_64需要libpq.so.5()(64bit)

时间:2018-09-12 00:28:47

标签: linux postgresql

当我要安装时

[postgres@m rpm]$ rpm -ivh pg_statsinfo-10.0-1.pg10.rhel7.x86_64.rpm
error: Failed dependencies:
        libpq.so.5()(64bit) is needed by pg_statsinfo-10.0-1.pg10.rhel7.x86_64

此错误发生

但是

[postgres@m rpm]$ locate libpq.so.5
/home/postgres/postgresql-10.4/src/interfaces/libpq/libpq.so.5
/home/postgres/postgresql-10.4/src/interfaces/libpq/libpq.so.5.10
/usr/local/pgsql/lib/libpq.so.5
/usr/local/pgsql/lib/libpq.so.5.10

我该如何解决?

最好的问候 谢谢

1 个答案:

答案 0 :(得分:0)

postgresql-lib丢失了

[root@t9psql03 rpmadd]# rpm -qa | grep postgresql-libs
[root@t9psql03 rpmadd]# yum install postgresql-libs

然后解决

[root@t9psql03 PostgreSQL10]# rpm -ivh pg_statsinfo-10.0-1.pg10.rhel7.x86_64.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:pg_statsinfo-10.0-1.pg10.rhel7   ################################# [100%]