Ciao a tutti,
Sono ai primi passi sia nell’uso di Ruby che di PostgreSQL, perciò
scusate la domanda, forse un po’ banale, ma a cui non ho finora trovato
risposta nelle mie ricerche sul web.
Ho installato Ruby ver. 1.8.5 and PostgrSQL 8.1, sul mio PC con S.O.
Windows XP Pro SP2.
Sto tentando di installare la gemma ‘postrgres’ tramite il RubyGems
Package Manager, senza alcun successo. Quello che segue è l’esito del
mio tentativo. Spero che qualcuno di voi abbia una soluzione al mio
problema.
Marco S.
===============================================================
c:\ruby>gem install postgres
Bulk updating Gem source index for: http://gems.rubyforge.org
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
–srcdir=.
–curdir
–ruby=c:/ruby/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
ERROR: While executing gem … (RuntimeError)
ERROR: Failed to build gem native extension.
Gem files will remain installed in
c:/ruby/lib/ruby/gems/1.8/gems/postgres-0.7.1 for inspection.
Results logged to
c:/ruby/lib/ruby/gems/1.8/gems/postgres-0.7.1/gem_make.out
c:\ruby>