在64位CentOS7上安装i686 postgres库

我想获得一个i686编译二进制运行在我的x86_64 CentOS7安装。 启动时,它抱怨它无法find(dynamic加载) 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 

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

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