我想爲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