[#48737] Ruby1.9.3p194をwindows-xpへのローカルインストール時のエラーについて — eiichi_maekawa@...

13 messages 2012/05/09
[#48740] Re: Ruby1.9.3p194をwindows-xpへのローカルインストール時のエラーについて — "前川 映一" <eiichi_maekawa@...> 2012/05/11

前川です。

[#48741] Re: Ruby1.9.3p194をwindows-xpへのローカルインストール時のエラーについて — eiichi_maekawa@... 2012/05/14

前川です。

[#48750] Re: Ruby1.9.3p194をwindows-xpへのローカルインストール時のエラーについて — eiichi_maekawa@... 2012/05/15

前川です。

[#48746] gem install pg で、PQconnectionUsedPassword チェックが no となる — SHINODA Masanori <shinoda@...>

篠田と申します。初めて投稿します。

16 messages 2012/05/14

[ruby-list:48746] gem install pg で、PQconnectionUsedPassword チェックが no となる

From: SHINODA Masanori <shinoda@...>
Date: 2012-05-14 22:28:09 UTC
List: ruby-list #48746
篠田と申します。初めて投稿します。

Ruby は先週からさわり初めております。
メールの内容が的外れであればご指摘ください。

早速ですが、gem install pg 時のエラーについてご教示いただければ幸いです。

現在、

FreeBSD 8.1-RELEASE
PostgreSQL 9.1.3
Ruby 1.9.3-p194
Rails 3.2.3

という環境で、

gem install pg

とコマンドを叩いて pg パッケージのインストールを行っています。
(root ユーザにて)

~postgres/data/pg_hba.conf は、

local   all             all                                     trust
host    all             all             127.0.0.1/32            md5
host    all             all             ::1/128                 md5

と、設定しています。
(udp 接続ならパスワード無し。tcp 接続ならパスワード有りとしています)

この状態で、

serv9# gem install pg
Building native extensions.  This could take a while...
ERROR:  Error installing pg:
        ERROR: Failed to build gem native extension.

        /usr/local/bin/ruby extconf.rb
checking for pg_config... yes
Using config values from /usr/local/bin/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.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/local/bin/ruby
        --with-pg
        --without-pg
        --with-pg-dir
        --without-pg-dir
        --with-pg-include
        --without-pg-include=${pg-dir}/include
        --with-pg-lib
        --without-pg-lib=${pg-dir}/lib
        --with-pg-config
        --without-pg-config
        --with-pg_config
        --without-pg_config
        --with-pqlib
        --without-pqlib


Gem files will remain installed in
/usr/local/lib/ruby/gems/1.9.1/gems/pg-0.13.2 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/pg-0.13.2/ext/gem_make.out

このように、PQconnectionUsedPassword のチェックに失敗します。

root でも、PGLIB 等のセットは行っております。

POSTGRES_HOME=/usr/local/pgsql
PGLIB=/usr/local/pgsql/lib
PGDATA=/usr/local/pgsql/data
LD_LIBRARY_PATH=/usr/local/pgsql/lib

Perl の DBD-Pg モジュールのインストール等は問題なく行われ、アクセスも出来ていますので、PostgreSQL 周りは問題なとは思うのですが・・・

あとは、どの辺りが疑わしいでしょうか?
調査のとっかかりでもご教示いただければ幸いです。

以上、よろしくお願いします。

-- 
SHINODA Masanori <shinoda@netandfield.com>
Net & Field Co.,Ltd. Internet Service Section
Phone 082-231-0760  Fax 082-231-0776
Portable... 090-6419-9919

In This Thread

Prev Next