[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

sqlite3-ruby installation

Tom Cloyd

2/18/2008 2:48:00 PM

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.

2 Answers

Jens Wille

2/18/2008 2:55:00 PM

0

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

dai xiao

2/28/2008 10:06:00 AM

0

gem install sqlite3-ruby -- --with-sqlite3-dir=3D/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=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: jens.wille@uni-koeln.de
> http://www.prometheus-bild...
>
>