Próbuję zainstalować gem pg (PostreSQL) dla Ruby. Otrzymuję ten błąd:pg instalacja gem nie powiedzie się, że wersja jest zbyt stara?
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.
wersja PostgreSQL: PostgreSQL (PostgreSQL) 9.2.3
System operacyjny: Solaris 10
Próbowałem również:
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
ja nie mam pomysł, dlaczego wystąpił ten błąd, i nie mogę znaleźć żadnych przydatnych informacji w Google.
Każda pomoc jest bardzo doceniana.
mam wiele wersji, ale ja jestem wskazując poprawnej wersji, także w mkmf.log widzę ten sam błąd odwoływania się pQconnectionUsedPassword (). – arrowill12
Być może będziesz musiał ustawić 'PATH', aby upewnić się, że poprawny plik' pg_config' jest pierwszy w 'PATH' i ustawić dowolne zmienne środowiskowe' LD_LIBRARY_PATH' lub Solaris, aby zapewnić znalezienie właściwej 'libpq'. –
Co mówi 'mkmf.log' w sekcji, w której sprawdza obecność' PQconnectionUsedPassword'? –