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

前端 未结 5 1342
轮回少年
轮回少年 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:01

    This seems like a pg config file location error,

    gem install pg -- --with-pgsql-lib=/usr/pgsql-9.0/lib --with-pg-config=/usr/pgsql-9.1/bin/pg_config
    

    solves it!!

    gem install pg -- --with-pgsql-lib=/usr/pgsql-9.0/lib --with-pg-config=/usr/pgsql-9.1/bin/pg_config
    
    /usr/local/lib/ruby/1.9.1/yaml.rb:56:in `':
    It seems your ruby installation is missing psych (for YAML output).
    To eliminate this warning, please install libyaml and reinstall your ruby.
    Building native extensions.  This could take a while...
    Successfully installed pg-0.14.0
    1 gem installed
    Installing ri documentation for pg-0.14.0...
    Installing RDoc documentation for pg-0.14.0...
    

提交回复
热议问题