Reputation: 21
when i am going to install
[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
this error occur
but
[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
how can i fix this ?
best regard thanks
Upvotes: 0
Views: 10359
Reputation: 21
the postgresql-lib was lost
[root@t9psql03 rpmadd]# rpm -qa | grep postgresql-libs
[root@t9psql03 rpmadd]# yum install postgresql-libs
then solve
[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%]
Upvotes: 1