From: Bing Tan Date: 2006-06-22T02:23:14+09:00 Subject: Re: How to install Ruby Postgres Gem with a remote server We have ruby version 1.8.4, fedora core 2, postgres version PostgreSQL 7.2.2 here is the error when I issue the command gem install postgres Attempting local installation of 'postgres' Local gem file not found: postgres*.gem Attempting remote installation of 'postgres' Building native extensions. This could take a while... *** 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-pgsql-dir --without-pgsql-dir --with-pgsql-include --without-pgsql-include=${pgsql-dir}/include --with-pgsql-lib --without-pgsql-lib=${pgsql-dir}/lib --with-wsock32lib --without-wsock32lib --with-socketlib --without-socketlib --with-inetlib --without-inetlib --with-nsllib --without-nsllib --with-pgsql-include-dir --without-pgsql-include-dir --with-pgsql-lib-dir --without-pgsql-lib-dir --with-pqlib --without-pqlib ERROR: While executing gem ... (RuntimeError) ERROR: Failed to build gem native extension. Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/postgres-0. 7.1 for inspection. ruby extconf.rb install postgres\nchecking for cygwin32_socket() in -lwsock32. .. no checking for socket() in -lsocket... no checking for gethostbyname() in -linet... no checking for gethostbyname() in -lnsl... yes checking for sys/un.h... yes 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 Results logged to /usr/local/lib/ruby/gems/1.8/gems/postgres-0.7.1/gem_make.out Kevin Ilchmann Ję·”rgensen wrote: > On 6/21/06, Bing Tan wrote: >> Hi everyone, >> >> I have a slight problem. I have two machines. One is an app server and >> the second is the database server running postgres. How do you install >> the ruby postgres api on the app server to talk to the postgres on the >> database server? I'm getting some errors on the installation. >> >> thanks, >> >> Bing > > Hey. > > Please elaborate on the situation. > which platform? what gem? some code? > > :) > /Kevin -- Posted via http://www.ruby-forum.com/.