pg_config, ruby pg, postgresql 9.0 problem after upgrade, centos 5

前端 未结 5 1391
轮回少年
轮回少年 2021-01-02 14:40

After upgrade postgresql 8.1 to 9.0 ive noticed issues with libraries dependency. Postgresql works fine (connection, queries).

yum list postgresql*
Installed         


        
5条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-02 15:06

    libpq.so.4 is from an older version of PostgreSQL; 9.0 ships with /usr/pgsql-9.0/lib/libpq.so.5

    If you have a program that was built against libpq.so.4, that file is provided by the compat-postgresql-libs packages, which you may not have installed. A lot of people remove it using "--force" because it can be hard to get the newer RPMs installed otherwise; that's a bad idea, but the alternative is complicated. If you've installed that package, you should find a /usr/lib/libpq.so.4 available that makes your existing program, compiled originally for the older PostgreSQL, happy.

提交回复
热议问题