Ubuntu 5.10 postrgres gem


#1

Hi,
I’ve installed Ubuntu 5.10, with Ruby 1.8.4
with thoose rep:
deb http://www-devel.orcaware.com/packages/ubuntu/ breezy/
deb-src http://www-devel.orcaware.com/packages/ubuntu/ breezy/
when I give:
sudo gem install postgres
I get:
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/bin/ruby1.8
–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
ERROR: While executing gem … (RuntimeError)
ERROR: Failed to build gem native extension.
Gem files will remain installed in
/usr/lib/ruby/gems/1.8/gems/postgres-0.7.1 fo r 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… no
checking for sys/un.h… no
checking for socket()… no
checking for cygwin32_socket()… no

Results logged to
/usr/lib/ruby/gems/1.8/gems/postgres-0.7.1/gem_make.out

can anybody help me? Thanks,
Enrico


“The only thing necessary for the triumph of evil
is for good men to do nothing”
Edmund Burke


#2

ERROR: While executing gem … (RuntimeError)
ERROR: Failed to build gem native extension.
Gem files will remain installed in
/usr/lib/ruby/gems/1.8/gems/postgres-0.7.1 fo r inspection.
ruby extconf.rb install postgres\nchecking for cygwin32_socket() in

Howdy,

Check wheter it is not the same problem i had a few days ago:

http://www.rubyrailways.com/ruby-on-rails-and-ubuntu/

(for me it was mysql ruby binding, but the problem could be the same,
i.e. no make and/or gcc)

HTH,
Peter


#3

yes it was that! Thanks a lot,
Enrico


“The only thing necessary for the triumph of evil
is for good men to do nothing”
Edmund Burke