Non riesco a installare la gemma sqlite3-ruby.
Mi dà questo errore:
Select which gem to install for your platform (i686-linux)
sqlite3-ruby 1.2.1 (mswin32)
sqlite3-ruby 1.2.1 (ruby)
sqlite3-ruby 1.2.0 (mswin32)
sqlite3-ruby 1.2.0 (ruby)
Skip this gem
Cancel installation
2
Building native extensions. This could take a while…
ERROR: While executing gem … (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.
ruby extconf.rb install sqlite3-ruby
checking for sqlite3.h… yes
checking for sqlite3_open() in -lsqlite3… no
make
make: *** No rule to make target ruby.h', needed bysqlite3_api_wrap.o’. Stop.
Gem files will remain installed in
/usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1 for inspection.
Results logged to
/usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/ext/sqlite3_api/gem_make.out
Ho provato anche con i sorgenti ma l’errore rimane. Ho provato a facendo
un link del file ruby.h in “/usr/include” (come suggerito dal comando
ruby -rrbconfig -e ‘puts ::Config::CONFIG[“includedir”]’)