在 64 位 CentOS7 上安装 i686 postgres 库

在 64 位 CentOS7 上安装 i686 postgres 库

我正在尝试在我的 x86_64 CentOS7 安装上运行一个 i686 编译的二进制文件。启动时,它抱怨找不到(动态加载)库libpq

我尝试安装 i686 Postgres 存储库来从那里安装库,但失败了:

[root@host bin]# yum localinstall http://yum.postgresql.org/9.3/redhat/rhel-6-i386/pgdg-centos93-9.3-1.noarch.rpm
Loaded plugins: fastestmirror
pgdg-centos93-9.3-1.noarch.rpm                                                                                                                           | 5.2 kB  00:00:00     
Examining /var/tmp/yum-root-36JlJy/pgdg-centos93-9.3-1.noarch.rpm: pgdg-centos93-9.3-1.noarch
/var/tmp/yum-root-36JlJy/pgdg-centos93-9.3-1.noarch.rpm: does not update installed package.
Nothing to do

我怎样才能运行这个程序?

答案1

我不确定包里有什么pgdg,但如果你想要 PostgreSQL 的 i686 库,只需安装postgresql-libs.i686包即可。这样应该会给你libpq程序所需的 32 位版本的库。

相关内容