Forum: Ruby on Rails Getting Started

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5a766f02c2d478173a9ae466e76f21a7?d=identicon&s=25 David James (stackpointer)
on 2009-03-20 06:17
Experienced developer here just attacking Ruby on Rails.

So, I bought myself a book (Beginning Ruby on Rails - Holzner) and
proceeded to follow the tutorial for the first project.   I start up
Webrick which seems to be working properly.  Then, after
editing/creating the two simple files per the instructions I point my
browser at http://localhost:3000/app/greeting.  Instead of seeing the
result I was expecting, I got:

=====================
We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it
shortly.
=====================

Now, I've actually tried a couple of different tutorials with the same
result.  When this is displayed in my browser, I also get this webrick
logging (below) in the dos box it is running in, but have no idea what
it means.

Since I've been stuck on this a couple days if anyone can point me to an
approach to getting past this I will greatly appreciate it.  Everything
I've done with the tutorial seems to have worked correctly through this
process -- the rails command, the generate controller, starting webrick,
all seem straightforward and like they're working as expected.

TIA

Dave

/!\ FAILSAFE /!\  Fri Mar 20 00:12:27 -0500 2009
  Status: 500 Internal Server Error
  no such file to load -- sqlite3
    C:/Program
Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:i
n `gem_original_require'
    C:/Program
Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:i
n `require'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_
support/dependencies.rb:156:in `require'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_
support/dependencies.rb:521:in `new_constants_in'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_
support/dependencies.rb:156:in `require'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_
support/core_ext/kernel/requires.rb:7:in `require_library_or_gem'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_
support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_
support/core_ext/kernel/requires.rb:5:in `require_library_or_gem'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/connection_adapters/sqlite3_adapter.rb:10:in `sqlite3_connection'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/connection_adapters/abstract/connection_pool.rb:223:in `send'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/connection_adapters/abstract/connection_pool.rb:223:in
`new_connection'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/connection_adapters/abstract/connection_pool.rb:245:in
`checkout_new_conne
ction'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/connection_adapters/abstract/connection_pool.rb:188:in `checkout'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/connection_adapters/abstract/connection_pool.rb:184:in `loop'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/connection_adapters/abstract/connection_pool.rb:184:in `checkout'
    C:/Program Files/ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/connection_adapters/abstract/connection_pool.rb:183:in `checkout'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/connection_adapters/abstract/connection_pool.rb:98:in `connection'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/connection_adapters/abstract/connection_pool.rb:326:in
`retrieve_connectio
n'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/connection_adapters/abstract/connection_specification.rb:123:in
`retrieve_
connection'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/connection_adapters/abstract/connection_specification.rb:115:in
`connectio
n'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/query_cache.rb:9:in `cache'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/query_cache.rb:28:in `call'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_r
ecord/connection_adapters/abstract/connection_pool.rb:361:in `call'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/vendor/rack-1.0/rack/head.rb:9:in `call'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/vendor/rack-1.0/rack/methodoverride.rb:24:in `call'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/params_parser.rb:15:in `call'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/rewindable_input.rb:25:in `call'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/session/cookie_store.rb:93:in `call'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/reloader.rb:9:in `call'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/failsafe.rb:11:in `call'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/vendor/rack-1.0/rack/lock.rb:11:in `call'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/vendor/rack-1.0/rack/lock.rb:11:in `synchronize'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/vendor/rack-1.0/rack/lock.rb:11:in `call'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/dispatcher.rb:106:in `call'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/stat
ic.rb:31:in `call'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/vendor/rack-1.0/rack/urlmap.rb:46:in `call'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/vendor/rack-1.0/rack/urlmap.rb:40:in `each'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/vendor/rack-1.0/rack/urlmap.rb:40:in `call'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/log_
tailer.rb:17:in `call'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/vendor/rack-1.0/rack/content_length.rb:13:in `call'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/vendor/rack-1.0/rack/handler/webrick.rb:46:in `service'
    C:/Program Files/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in
`service'
    C:/Program Files/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
    C:/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:173:in
`start_thread'
    C:/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
    C:/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:162:in
`start_thread'
    C:/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
    C:/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
    C:/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
    C:/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
    C:/Program Files/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_con
troller/vendor/rack-1.0/rack/handler/webrick.rb:13:in `run'
    C:/Program
Files/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server
.rb:111
    C:/Program
Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:i
n `gem_original_require'
    C:/Program
Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:i
n `require'
    script/server:3
96146b7a23174e2e024c06a49f845bb8?d=identicon&s=25 Jeffrey L. Taylor (Guest)
on 2009-03-20 07:18
(Received via mailing list)
Quoting David James <rails-mailing-list@andreas-s.net>:
> =====================
> Since I've been stuck on this a couple days if anyone can point me to an
>   Status: 500 Internal Server Error
>   no such file to load -- sqlite3
[snip]

The sqlite3 gem is not installed.  This is now the default database
adapter.
Rails is a fast moving target and tutorials are quickly out of date.  It
used
to be MySQL (at least on Linux and I think MacOS).  If you have
installed a
different database adapter, set the correct value in
config\database.yml.
Otherwise, install the sqlite3.

HTH,
  Jeffrey
This topic is locked and can not be replied to.