# Sqlite3-ruby installation

**URL:** <https://rubytalk.org/t/sqlite3-ruby-installation/44588>\
**Category:** ruby-talk\
**Created:** [18 February 2008 14:47 UTC](https://rubytalk.org/t/sqlite3-ruby-installation/44588 "2008-02-18T14:47:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom\_Cloyd2](https://avatars.discourse-cdn.com/v4/letter/t/6a8cbe/32.png) [@Tom\_Cloyd2](https://rubytalk.org/u/Tom_Cloyd2)\
**Post date:** [18 February 2008 14:47 UTC](https://rubytalk.org/t/sqlite3-ruby-installation/44588/1 "2008-02-18T14:47:54Z")

</div>

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)  
&nbsp;&nbsp;&nbsp;&nbsp;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.

---

<div class="post-metadata">

**Author:** ![Jens\_Wille1](https://avatars.discourse-cdn.com/v4/letter/j/8797f3/32.png) [@Jens\_Wille1](https://rubytalk.org/u/Jens_Wille1)\
**Post date:** [18 February 2008 14:55 UTC](https://rubytalk.org/t/sqlite3-ruby-installation/44588/2 "2008-02-18T14:55:26Z")

</div>

hi tom!

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

> checking for sqlite3.h... no

&nbsp;&nbsp;^^^^^^^^^^^^^^^^^^^^^^^^^^^^

> 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/](http://www.prometheus-bildarchiv.de/)

---

<div class="post-metadata">

**Author:** ![dai\_xiao](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@dai\_xiao](https://rubytalk.org/u/dai_xiao)\
**Post date:** [28 February 2008 10:06 UTC](https://rubytalk.org/t/sqlite3-ruby-installation/44588/3 "2008-02-28T10:06:20Z")

</div>

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
> > 
> > &nbsp;&nbsp;^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > 
> > \> 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/](http://www.prometheus-bildarchiv.de/)
