# SQLite and Rails 3

**URL:** <https://www.ruby-forum.com/t/sqlite-and-rails-3/191350>\
**Category:** Rails\
**Created:** [July 10, 2010, 1:30am UTC](https://www.ruby-forum.com/t/sqlite-and-rails-3/191350 "2010-07-10T01:30:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidz101](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f0a364/32.png) [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Post date:** [July 10, 2010, 1:30am UTC](https://www.ruby-forum.com/t/sqlite-and-rails-3/191350/1 "2010-07-10T01:30:14Z")

</div>

Did you ever get this kind of error?-- Could not find gem ‘sqlite3-  
ruby (\>= 0, runtime)’ in the gems available on this machine.

I am running rails 3 beta, and apparently ruby 1.8.7. I am using  
Ubuntu 10.04

Whenever I run any rails command, ie “rails s”, or “rails g”, I get  
that error. However, “rails new” works…

Does anyone know why? Thank you.

---

<div class="post-metadata">

**Author:** ![davidz101](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f0a364/32.png) [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Post date:** [July 10, 2010, 4:50am UTC](https://www.ruby-forum.com/t/sqlite-and-rails-3/191350/2 "2010-07-10T04:50:25Z")

</div>

> Did you ever get this kind of error?-- Could not find gem ‘sqlite3-  
> ruby (\>= 0, runtime)’ in the gems available on this machine.
> 
> I am running rails 3 beta, and apparently ruby 1.8.7. I am using  
> Ubuntu 10.04
> 
> Whenever I run any rails command, ie “rails s”, or “rails g”, I get  
> that error. However, “rails new” works…

YAY! I fixed that bad boy

All i had to run was- sudo apt-get install sqlite3 libsqlite3-dev  
Then I installed the gem. perfect
