Salve a tutti.Ho comprato “Learn to program” di Chris P. e tratta come
imparare a programmare con ruby. Mi sto scrivendo anche un manuale con
le
cose principali di ruby, ma incontro difficoltà con i metodi.
Ok, eccetto questo sto, mi sono scaricato ed installato ruby184-20.exe
ma
non so come avere la libreria per creare uno script che si colleghi a
sqlite. Uso il programma gem, ma ottengo il seguente errore.
Grazie.
C:\ruby\bin>gem install sqlite
ERROR: While executing gem … (SocketError)
getaddrinfo: no address associated with hostname.
C:\ruby\bin>gem install sqlite
Need to update 4 gems from http://gems.rubyforge.org
…
complete
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-sqlite-dir
–without-sqlite-dir
–with-sqlite-include
–without-sqlite-include=${sqlite-dir}/include
–with-sqlite-lib
–without-sqlite-lib=${sqlite-dir}/lib
–with-sqlitelib
–without-sqlitelib
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/sqlite-2.0.1 f
or inspection.
Results logged to
C:/ruby/lib/ruby/gems/1.8/gems/sqlite-2.0.1/ext/gem_make.out