[#35592] String#center — Take_tk <ggb03124@...>

 仕様拡張のお願い。と言うほどのものでもないですが・・

33 messages 2002/07/20
[#35593] Re: String#center — Kazuhiro NISHIYAMA <zn@...> 2002/07/20

西山和広です。

[#35596] Re: String#center — Take_tk <ggb03124@...> 2002/07/20

たけ(tk)です。

[#35597] Re: String#center — Kazuhiro NISHIYAMA <zn@...> 2002/07/20

西山和広です。

[#35599] Rational#to_int ← String#center — Take_tk <ggb03124@...> 2002/07/21

たけ(tk)です。

[#35601] Re: Rational#to_int ← String#center — matz@... (Yukihiro Matsumoto) 2002/07/21

まつもと ゆきひろです

[#35618] new mathn [Re: Rational#to_int ← String#center] — keiju@... (石塚圭樹) 2002/07/23

けいじゅ@日本ラショナルソフトウェアです.

[#35624] Re: new mathn [Re: Rational#to_int ← String#center] — matz@... (Yukihiro Matsumoto) 2002/07/24

まつもと ゆきひろです

[#35628] Re: new mathn [Re: Rational#to_int ← String#center] — keiju@... (石塚圭樹) 2002/07/24

けいじゅ@日本ラショナルソフトウェアです.

[#35630] Re: new mathn [Re: Rational#to_int ← String#center] — matz@... (Yukihiro Matsumoto) 2002/07/24

まつもと ゆきひろです

[ruby-list:35522] Re: windows で postgres

From: WATANABE Hirofumi <eban@...>
Date: 2002-07-04 11:03:48 UTC
List: ruby-list #35522
わたなべです。

Takeshi Honda <moecho21@yahoo.co.jp> writes:

: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と置き換え
:済み)

Cygwinが古過ぎますねえ。
B20.1は4年前にリリースされたもので、入手も困難ですし、Cygwin
プロジェクト自体もうサポートしてません。
Rubyも最新を使ったほうがいいでしょう。

:環境変数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
:
:でした。

同じことをして試しましたが、Cygwin 1.3.12-1ならokでした。
でも、B20.1だとlibpq.libは無理かもしれない。
  ln -s libpq.lib libpq.a
でいけるかもしれないけど…。

:libやincludeのパスを、/home...の変わりに、c:/home...とか
:、
:/cygdrive/c/home...としてみても、やっぱりだめでした。

B20.1だと/cygdrive/cじゃなくて//cだったかなあ。
c:/homeだめだとするとやはりB20.1のころのldはlibpq.libを受け
付けないバージョンなのかもしれません。

:何がいけないのでしょうか?できれば、cygwinを最新に変えろ
:、とは言わないでください。

と、トラブル続出なので最新にしてください。
B20.1と心中するならそれなりの覚悟が必要です。

現在のCygwinにはPostgreSQLのパッケージも用意されてるので、
これをインストールすれば
  % ruby extconf.rb
  % make site-install
だけで済みます。

-- 
わたなべひろふみ

In This Thread