I am learning how to use ruby from the book, ‘beginning ruby, novice to
pro…’ The chapter on using ruby with sql requires that I install
Using sudo gem install sqlite3-ruby, I got the following–
Building native extensions. This could take a while…
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.
checking for sqlite3.h… no
sqlite3.h is missing. Try ‘port install sqlite3 +universal’
or ‘yum install sqlite3-devel’ and check your shared library search path
location where your sqlite3 shared library is located).
*** 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:
Gem files will remain installed in /var/lib/gems/1.8/gems/sqlite3-1.3.3
Results logged to
going into irb,
no such file to load – sqlite3 (LoadError)
What went wrong?
*my pc is on ubuntu 11.04. I checked synaptic package manager and see
that sqlite3 is installed.