We have ruby version 1.8.4, fedora core 2, postgres version PostgreSQL
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:
ERROR: While executing gem … (RuntimeError)
ERROR: Failed to build gem native extension.
Gem files will remain installed in
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
Kevin Ilchmann JÃ¸rgensen wrote:
On 6/21/06, Bing T. [email protected] wrote:
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.
Please elaborate on the situation.
which platform? what gem? some code?