On 04/25/2011 08:51 PM, Jim S. wrote:
> 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
> sqlite3-ruby.
>
> 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.
>
> /usr/bin/ruby1.8 extconf.rb
> checking for sqlite3.h... no
> sqlite3.h is missing. Try 'port install sqlite3 +universal'
...
> *my pc is on ubuntu 11.04. I checked synaptic package manager and see
> that sqlite3 is installed.

You need libsqlite3-dev, which will provide sqlite3.h.