gem install sqlite3-ruby fails

Subscribe to gem install sqlite3-ruby fails 2 post(s), 2 voice(s)

 
Avatar Scott O 2 post(s) I installed the Five Runs stack version 1.1 (Rails 2.0.2) on Kubuntu, created a project with
$rails fiveruns
then tried to install SQLite and got an error:
$ gem install sqlite3-ruby
Building native extensions. This could take a while…
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.
/home/scott/fiveruns/ruby/bin/ruby extconf.rb install sqlite3-ruby
checking for fdatasync() in -lrt… no
checking for sqlite3.h… no
  • 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:
    ...blah blah
    Any ideas?
 
Avatar Rachel G Administator 48 post(s) Hi Scott,
It looks like the libraries are loading successfully. Can you try the following:

$ ./rubyconsole
bash$ . scripts/setenv.sh
bash$ gem install sqlite3-ruby -- --with-sqlite3-dir=/export/myhome/rminstall-1.2-beta-0/sqlite