我想为Ruby安装pg(PostreSQL)gem。我收到此错误:pg gem install说版本太旧?
postgres/9.2-pgdg/bin/64/pg_config
Using config values from /location/to/install/postgres/9.2-pgdg/bin/64/pg_config
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
checking for pg_config_manual.h... yes
checking for PQconnectdb() in -lpq... yes
checking for PQconnectionUsedPassword()... no
Your PostgreSQL is too old. Either install an older version of this gem or upgrade your database.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
PostgreSQL的版本:Postgres的(PostgreSQL的)9.2.3
OS:的Solaris 10
我也曾尝试:
gem install pg -- --with-pgsql-lib=/location/of/install/postgres/9.2-pgdg/lib/64/ --with-pg-config=/location/of/install/postgres/9.2-pgdg/bin/64/pg_config
我没有想法为什么会发生此错误,并且我无法在Google上找到任何有用的信息。
任何帮助,非常感谢。
我有多个版本,但我指向正确的版本也mkmf.log我看到了同样的错误引用pQconnectionUsedPassword( )。 – arrowill12 2013-03-08 20:29:54
您可能需要设置'PATH'来确保正确的'pg_config'可执行文件在PATH中处于第一位,并设置任何'LD_LIBRARY_PATH'或Solaris等效环境变量以确保找到正确的'libpq'。 – 2013-03-09 00:37:45
“mkmf.log”在检查“PQconnectionUsedPassword”存在的部分中说了些什么? – 2013-03-09 15:06:17