Tôi đang cố gắng cài đặt đá quý pg (PostreSQL) cho Ruby. Tôi nhận được lỗi này:pg gem install failed phiên bản cũ quá?
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 phiên bản: postgres (PostgreSQL) 9.2.3
OS: solaris 10
Tôi cũng đã cố gắng:
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
tôi không có ý tưởng tại sao lỗi này xảy ra và tôi không thể tìm thấy bất kỳ thông tin hữu ích nào trên Google.
Bất kỳ trợ giúp nào được đánh giá cao.
tôi có nhiều phiên bản nhưng tôi đang trỏ đến đúng phiên bản còn ở mkmf.log tôi thấy các lỗi tương tự tham khảo pQconnectionUsedPassword (). – arrowill12
Bạn có thể cần đặt 'PATH' để đảm bảo rằng tệp thực thi' pg_config' đúng là đầu tiên trong 'PATH' và đặt bất kỳ' LD_LIBRARY_PATH' hoặc các môi trường tương đương với Solaris để đảm bảo tìm đúng 'libpq'. –
'mkmf.log' nói gì trong phần mà nó kiểm tra sự hiện diện của' PQconnectionUsedPassword'? –