sqlite3-ruby installation

T

Tom Cloyd

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

Jens Wille

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: (e-mail address removed)
http://www.prometheus-bildarchiv.de/
 
D

dai xiao

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


2008/2/18 said:
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=FCr Forschung & Lehre
Kunsthistorisches Institut der Universit=E4t zu K=F6ln
Albertus-Magnus-Platz, D-50923 K=F6ln
Tel.: +49 (0)221 470-6668, E-Mail: (e-mail address removed)
http://www.prometheus-bildarchiv.de/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top