Forum: Ruby on Rails ubuntu 5.10 postrgres gem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6992e8171ed4afa8b4ad4a8cef31fa29?d=identicon&s=25 Enrico Teotti (Guest)
on 2006-04-19 17:37
(Received via mailing list)
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
35594c037eba2fa48f7129d5fded828b?d=identicon&s=25 Peter Szinek (Guest)
on 2006-04-19 17:43
(Received via mailing list)
> 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
6992e8171ed4afa8b4ad4a8cef31fa29?d=identicon&s=25 Enrico Teotti (Guest)
on 2006-04-19 18:14
(Received via mailing list)
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
This topic is locked and can not be replied to.