# Ruby on Rails installation issue

**URL:** <https://www.ruby-forum.com/t/ruby-on-rails-installation-issue/189477>\
**Category:** Rails\
**Created:** [June 1, 2010, 3:39pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-installation-issue/189477 "2010-06-01T15:39:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yegeniy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/90db22/32.png) [@yegeniy](https://www.ruby-forum.com/u/yegeniy)\
**Post date:** [June 1, 2010, 3:39pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-installation-issue/189477/1 "2010-06-01T15:39:06Z")

</div>

Hello everyone. I am new to Rails (and Ruby) and when I was going  
through the example in chapter 4 of Agile Web D. on Rails, I  
ran into a problem.

I think the issue is where rails is looking for sqlite3. Any help would  
be appreciated.

Thank you!

Here is the versions and locations of sqlite3 and rails:

dyn-129-64-208-106:tst yegeniy$ sqlite3  
SQLite version 3.4.0  
Enter “.help” for instructions  
sqlite\> dyn-129-64-208-106:tst yegeniy$  
dyn-129-64-208-106:tst yegeniy$ which sqlite3  
/usr/bin/sqlite3  
dyn-129-64-208-106:tst yegeniy$ which rails  
/usr/local/bin/rails  
dyn-129-64-208-106:tst yegeniy$ echo $PATH$  
/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin:/usr/texbin$

This is the output of running script/server in the tst folder (created  
with ‘rails tst’ command:

dyn-129-64-208-106:tst yegeniy$ script/server  
=\> Booting WEBrick  
=\> Rails 2.3.8 application starting on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
open http://0.0.0.0:3000=\> Call with -d to detach  
=\> Ctrl-C to shutdown server  
[2010-06-01 09:15:02] INFO WEBrick 1.3.1  
[2010-06-01 09:15:02] INFO ruby 1.8.7 (2008-08-11) [i686-darwin9.8.0]  
[2010-06-01 09:15:02] INFO WEBrick::HTTPServer#start: pid=199 port=3000

/!\ FAILSAFE /!\ Tue Jun 01 09:15:21 -0400 2010  
Status: 500 Internal Server Error  
no such file to load – sqlite3  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require’  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active\_support/dependencies.rb:156:in  
`require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new\_constants\_in’

…

with lots more of similar messages.

Also, this is my config/database.yml file:

dyn-129-64-208-106:tst yegeniy$ vi config/database.yml

# SQLite version 3.x

# gem install sqlite3-ruby (not necessary on OS X Leopard)

development:  
adapter: sqlite3  
database: db/development.sqlite3  
pool: 5  
timeout: 5000

# Warning: The database defined as “test” will be erased and

# re-generated from your development database when you run “rake”.

# Do not set this db to the same as development or production.

test:  
adapter: sqlite3  
database: db/test.sqlite3  
pool: 5  
timeout: 5000

production:  
adapter: sqlite3  
database: db/production.sqlite3  
pool: 5  
timeout: 5000  
~

---

<div class="post-metadata">

**Author:** ![yegeniy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/90db22/32.png) [@yegeniy](https://www.ruby-forum.com/u/yegeniy)\
**Post date:** [June 1, 2010, 5:10pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-installation-issue/189477/2 "2010-06-01T17:10:17Z")

</div>

Eugene Wolfson wrote:

> Hello everyone. I am new to Rails (and Ruby) and when I was going  
> through the example in chapter 4 of Agile Web D. on Rails, I  
> ran into a problem.
> 
> I think the issue is where rails is looking for sqlite3. Any help would  
> be appreciated.
> 
> Thank you!

Do you have the sqlite3-ruby gem installed?

> sudo gem install sqlite3-ruby

---

<div class="post-metadata">

**Author:** ![yegeniy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/90db22/32.png) [@yegeniy](https://www.ruby-forum.com/u/yegeniy)\
**Post date:** [June 2, 2010, 7:11am UTC](https://www.ruby-forum.com/t/ruby-on-rails-installation-issue/189477/3 "2010-06-02T07:11:33Z")

</div>

Thank you! That worked.

P.S. used the tutorial for Mac OS X at:

> **[Setting up SQLite3 for Ruby on Rails Development - Accidental Technologist](https://accidentaltechnologist.com/ruby-on-rails/setting-up-sqlite3-for-ruby-on-rails-development/)**
>
> Tweet UPDATE: Thanks to an astute reader, it seems to have full SQLite3 support on Windows you need to add the SQLite3.dll and the SQLite3.def files also in your path.  I put these in my ruby/bin folder, which is where they will be in the...

John T. wrote:

> Eugene Wolfson wrote:
> 
> > Hello everyone. I am new to Rails (and Ruby) and when I was going  
> > through the example in chapter 4 of Agile Web D. on Rails, I  
> > ran into a problem.
> > 
> > I think the issue is where rails is looking for sqlite3. Any help would  
> > be appreciated.
> > 
> > Thank you!
> 
> Do you have the sqlite3-ruby gem installed?
> 
> > sudo gem install sqlite3-ruby
