Sqlite3-ruby installation

I'm very much struggling to get a ruby interface sqlite3.

When trying to install the sqlite3-ruby gem, I keep running into errors. I do have sqlite3 installed (I'm running Kubuntu 7.10 Linux). I'm not sure where it is, but Adept says its installed.

Here's output from my sudo gem install sqlite3-ruby attempt:

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... no

make
make: *** No rule to make target `ruby.h', needed by `sqlite3_api_wrap.o'. Stop.

Gem files will remain installed in /var/lib/gems/1.8/gems/sqlite3-ruby-1.2.1 for inspection.
Results logged to /var/lib/gems/1.8/gems/sqlite3-ruby-1.2.1/ext/sqlite3_api/gem_make.out

I would very much appreciate someone's telling me what the problems is - and what I need to do.

Thank you.

Tom C.

hi tom!

Tom Cloyd [2008-02-18 15:47]:

checking for sqlite3.h... no

  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I would very much appreciate someone's telling me what the
problems is - and what I need to do.

you need to install the sqlite3 header files first. (package
'libsqlite3-dev')

cheers
jens

···

--
Jens Wille, Dipl.-Bibl. (FH)
prometheus - Das verteilte digitale Bildarchiv für Forschung & Lehre
Kunsthistorisches Institut der Universität zu Köln
Albertus-Magnus-Platz, D-50923 Köln
Tel.: +49 (0)221 470-6668, E-Mail: jens.wille@uni-koeln.de
http://www.prometheus-bildarchiv.de/

gem install sqlite3-ruby -- --with-sqlite3-dir=/usr/local/sqlite3(your
sqlite3 path)

···

2008/2/18, Jens Wille <jens.wille@uni-koeln.de>:

hi tom!

Tom Cloyd [2008-02-18 15:47]:

> checking for sqlite3.h... no

  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

> I would very much appreciate someone's telling me what the
> problems is - and what I need to do.

you need to install the sqlite3 header files first. (package
'libsqlite3-dev')

cheers
jens

--
Jens Wille, Dipl.-Bibl. (FH)
prometheus - Das verteilte digitale Bildarchiv für Forschung & Lehre
Kunsthistorisches Institut der Universität zu Köln
Albertus-Magnus-Platz, D-50923 Köln
Tel.: +49 (0)221 470-6668, E-Mail: jens.wille@uni-koeln.de
http://www.prometheus-bildarchiv.de/