# Ubuntu 5.10 postrgres gem

**URL:** <https://www.ruby-forum.com/t/ubuntu-5-10-postrgres-gem/58209>\
**Category:** Rails\
**Created:** [April 19, 2006, 5:37pm UTC](https://www.ruby-forum.com/t/ubuntu-5-10-postrgres-gem/58209 "2006-04-19T17:37:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eno](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/f1d935/32.png) [@eno](https://www.ruby-forum.com/u/eno)\
**Post date:** [April 19, 2006, 5:37pm UTC](https://www.ruby-forum.com/t/ubuntu-5-10-postrgres-gem/58209/1 "2006-04-19T17:37:10Z")

</div>

Hi,  
I’ve installed Ubuntu 5.10, with Ruby 1.8.4  
with thoose rep:  
deb [Index of /packages/ubuntu](http://www-devel.orcaware.com/packages/ubuntu/) breezy/  
deb-src [Index of /packages/ubuntu](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

---

<div class="post-metadata">

**Author:** ![eno](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/f1d935/32.png) [@eno](https://www.ruby-forum.com/u/eno)\
**Post date:** [April 19, 2006, 5:43pm UTC](https://www.ruby-forum.com/t/ubuntu-5-10-postrgres-gem/58209/2 "2006-04-19T17:43:16Z")

</div>

> 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/](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

---

<div class="post-metadata">

**Author:** ![eno](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/f1d935/32.png) [@eno](https://www.ruby-forum.com/u/eno)\
**Post date:** [April 19, 2006, 6:14pm UTC](https://www.ruby-forum.com/t/ubuntu-5-10-postrgres-gem/58209/3 "2006-04-19T18:14:34Z")

</div>

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
