[#40647] RAA dead link check — "NAKAMURA, Hiroshi" <nakahiro@...>

なひです。

19 messages 2005/03/04
[#40685] Re: RAA dead link check — "NAKAMURA, Hiroshi" <nakahiro@...> 2005/03/20

-----BEGIN PGP SIGNED MESSAGE-----

[ruby-list:40725] Re: ruby-postgresql0.7.1

From: Ryutaro Amano <wn9r-amn@...>
Date: 2005-03-25 12:57:07 UTC
List: ruby-list #40725
天野です。

nobu@ruby-lang.orgさんが05.3.25 0:34 AMに書きました:

>opensslとリンクされているので、-lsslを付けないといけない

一つ利口になった気が。
結局、Postgresqlを、−−with-opensslをはずして再インストールしました。

ruby-postgresql-0.7.1
$ ruby extconf.rb --with-pgsql-dir=/usr/local/pgsql
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... yes
checking for socket()... yes
checking for hsterror()... no
checking for gethostname()... yes
checking for PQsetdbLogin() in -lpq... yes
checking for PQsetClientEncoding()... yes
checking for pg_encoding_to_char()... yes
checking for PQescapeString()... yes
creating Makefile
[21:19:30 ryuamano:~/rubysrc/ruby-postgres-0.7.1]
$ make
gcc -fno-common   -I. -I/usr/local/lib/ruby/1.8/powerpc-darwin7.7.0 -
I/usr/local/lib/ruby/1.8/powerpc-darwin7.7.0 -I. -DHAVE_SYS_UN_H -
DHAVE_SOCKET -DHAVE_GETHOSTNAME -DHAVE_PQSETCLIENTENCODING -DHAVE_PG_
ENCODING_TO_CHAR -DHAVE_PQESCAPESTRING -I/usr/local/pgsql/include  -c 
postgres.c
cc -dynamic -bundle -undefined suppress -flat_namespace  -L"/usr/
local/pgsql/lib" -L"/usr/local/lib" -o postgres.bundle postgres.o  -
lruby -lpq  -lpthread -ldl -lobjc  
[21:19:52 ryuamano:~/rubysrc/ruby-postgres-0.7.1]
$ sudo make install
install -c -p -m 0755 postgres.bundle /usr/local/lib/ruby/site_ruby/1.
8/powerpc-darwin7.7.0

無事インストールできました。有り難うございました。

Ryutaro Amano
wn9r-amn@asahi-net.or.jp

In This Thread

Prev Next