Ruby on Rails installation issue

Hello everyone. I am new to Rails (and Ruby) and when I was going through the example in chapter 4 of Agile Web Development 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

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

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 Development 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?

Thank you! That worked.

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

John T. wrote: