# Ruby 1.9.1, rubygems, rvm. trouble getting sqlite3 to work

**URL:** <https://www.ruby-forum.com/t/ruby-1-9-1-rubygems-rvm-trouble-getting-sqlite3-to-work/185192>\
**Category:** Ruby\
**Created:** [March 15, 2010, 8:41pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-rubygems-rvm-trouble-getting-sqlite3-to-work/185192 "2010-03-15T20:41:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![scottnj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b9e5f3/32.png) [@scottnj](https://www.ruby-forum.com/u/scottnj)\
**Post date:** [March 15, 2010, 8:41pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-rubygems-rvm-trouble-getting-sqlite3-to-work/185192/1 "2010-03-15T20:41:14Z")

</div>

i am trying to setup a slicehost server for rails development. i chose  
to use the ubuntu 9.10 karmic image.

rvm looks really useful so i am attempting to use it.

i am running into trying to use sqlite3 with ruby 1.9.1.  
here is what i have setup [gist:333205 · GitHub](http://gist.github.com/333205).  
everything seems to work great up to the sqlite3 part.

does anyone know how to get sqlite3 working with ruby 1.9.1 on ubuntu  
9.10? i have tried many approaches found through google and nothing  
has worked.

thanks,  
scott

---

<div class="post-metadata">

**Author:** ![scottnj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b9e5f3/32.png) [@scottnj](https://www.ruby-forum.com/u/scottnj)\
**Post date:** [March 15, 2010, 8:51pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-rubygems-rvm-trouble-getting-sqlite3-to-work/185192/2 "2010-03-15T20:51:11Z")

</div>

On Mon, Mar 15, 2010 at 2:40 PM, scott [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> i am trying to setup a slicehost server for rails development. i chose  
> to use the ubuntu 9.10 karmic image.
> 
> rvm looks really useful so i am attempting to use it.
> 
> i am running into trying to use sqlite3 with ruby 1.9.1.  
> here is what i have setup [gist:333205 · GitHub](http://gist.github.com/333205).  
> everything seems to work great up to the sqlite3 part.

make sure you don’t have both sqlite3 and sqlite3-ruby.

Those two modules can conflict.

Andrew McElroy

---

<div class="post-metadata">

**Author:** ![scottnj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b9e5f3/32.png) [@scottnj](https://www.ruby-forum.com/u/scottnj)\
**Post date:** [March 15, 2010, 8:52pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-rubygems-rvm-trouble-getting-sqlite3-to-work/185192/3 "2010-03-15T20:52:21Z")

</div>

On Mar 15, 8:37 pm, scott [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> i am trying to setup a slicehost server for rails development. i chose  
> to use the ubuntu 9.10 karmic image.
> 
> rvm looks really useful so i am attempting to use it.
> 
> i am running into trying to use sqlite3 with ruby 1.9.1.  
> here is what i have setuphttp://gist.github.com/333205.  
> everything seems to work great up to the sqlite3 part.

You put ???, what is supposed that means?

For the record: gem install sqlite3-ruby should install ruby as long  
you have sqlite3-dev headers installed:

The package is “libsqlite3-dev”

> does anyone know how to get sqlite3 working with ruby 1.9.1 on ubuntu  
> 9.10? i have tried many approaches found through google and nothing  
> has worked.

If you installed “sqlite3” gem, let me tell you is an FFI  
implementation, which is broken. I asked the gem author to change the  
name to avoid confusion, but he rejected it.

HTH,

---

<div class="post-metadata">

**Author:** ![scottnj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b9e5f3/32.png) [@scottnj](https://www.ruby-forum.com/u/scottnj)\
**Post date:** [March 15, 2010, 8:57pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-rubygems-rvm-trouble-getting-sqlite3-to-work/185192/4 "2010-03-15T20:57:37Z")

</div>

On Mon, Mar 15, 2010 at 2:43 PM, andrew mcelroy [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> make sure you don’t have both sqlite3 and sqlite3-ruby.
> 
> Those two modules can conflict.  
> Gems not modules.

---

<div class="post-metadata">

**Author:** ![scottnj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b9e5f3/32.png) [@scottnj](https://www.ruby-forum.com/u/scottnj)\
**Post date:** [March 15, 2010, 9:55pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-rubygems-rvm-trouble-getting-sqlite3-to-work/185192/5 "2010-03-15T21:55:36Z")

</div>

i think my problem was having both sqlite3 and sqlite3-ruby installed  
thanks for the tip!
