From: Takeshi Honda Date: 2002-07-04T11:07:46+09:00 Subject: [ruby-list:35521] windows で postgres windowsのrubyで、postgresを使いたいんですが、 postgresモジュールのextconf.rbがうまく通りません。 というか、cygwinでextconfがうまくいったためしがないです 。 環境を記しておきます。 OS: windows2000Pro ruby: rbcw164j.exe(http://homepage1.nifty.com/arima/ruby/index.htm) cygwin: Cygwin B20.1(rubyに入ってたcygwin1.dllと置き換え 済み) postgres: PostgreSQL-7_1_3_win32_bin_rv14.zip(http://download.desk.ne.jp/win/2/00026/5337.html) postgresモジュール: ruby-postgres-0.6.5.tar.gz やったことは以下のとおり。 環境変数PGLIBにpostgresのlibディレクトリを設定。(C:\home\bin\postgre\PostgreSQL-7_1_3_win32_bin_rv14\postgresql-7.1.3-win32\lib) ruby extconf.rb --with-pgsql-include-dir=/home/bin/postgre/PostgreSQL-7_1_3_win32_bin_rv14/postgresql-7.1.3-win32/include --with-pgsql-lib-dir=/home/bin/postgre/PostgreSQL-7_1_3_win32_bin_rv14/postgresql-7.1.3-win32/lib 反応は、 checking for cygwin32_socket() in -lwsock32... no checking for socket() in -lsocket... no checking for gethostbyname() in -linet... no checking for gethostbyname() in -lnsl... no checking for sys/un.h... no checking for socket()... yes checking for hsterror()... no checking for gethostname()... yes checking for PQsetdbLogin() in -lpq... no Could not find PostgreSQL libraries: Makefile not created でした。 libやincludeのパスを、/home...の変わりに、c:/home...とか 、 /cygdrive/c/home...としてみても、やっぱりだめでした。 何がいけないのでしょうか?できれば、cygwinを最新に変えろ 、とは言わないでください。 postgresモジュールのwin32用バイナリとかないんでしょうか ? 教えてください。 __________________________________________________ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/