# First time problem

**URL:** <https://www.ruby-forum.com/t/first-time-problem/171331>\
**Category:** Rails\
**Created:** [June 30, 2009, 7:39pm UTC](https://www.ruby-forum.com/t/first-time-problem/171331 "2009-06-30T19:39:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Relax\_Man](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a9adbd/32.png) [@Relax\_Man](https://www.ruby-forum.com/u/Relax_Man)\
**Post date:** [June 30, 2009, 7:39pm UTC](https://www.ruby-forum.com/t/first-time-problem/171331/1 "2009-06-30T19:39:52Z")

</div>

This is the first time I am Running ruby on rails.

When running the “blog” application I got the message  
“We’re sorry, but something went wrong.  
We’ve been notified about this issue and we’ll take a look at it  
shortly.”

## Then I checked the CODE\blog\log\development.log and got this:

/!\ FAILSAFE /!\ Tue Jun 30 15:22:55 +0100 2009  
Status: 500 Internal Server Error  
no such file to load – sqlite3  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`gem_original_require' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`require’  
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/  
active\_support/dependencies.rb:156:in `require' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:521:in`new\_constants\_in’  
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/  
active\_support/dependencies.rb:156:in `require' c:/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:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/  
active\_support/core\_ext/kernel/reporting.rb:11:in `silence_warnings' c:/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:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/  
active\_record/connection\_adapters/sqlite3\_adapter.rb:10:in  
`sqlite3_connection' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/ active_record/connection_adapters/abstract/connection_pool.rb:223:in`send’  
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/  
active\_record/connection\_adapters/abstract/connection\_pool.rb:223:in  
`new_connection' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/ active_record/connection_adapters/abstract/connection_pool.rb:245:in`checkout\_new\_connection’  
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/  
active\_record/connection\_adapters/abstract/connection\_pool.rb:188:in  
`checkout' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/ active_record/connection_adapters/abstract/connection_pool.rb:184:in`loop’  
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/  
active\_record/connection\_adapters/abstract/connection\_pool.rb:184:in  
`checkout' c:/ruby/lib/ruby/1.8/monitor.rb:242:in`synchronize’  
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/  
active\_record/connection\_adapters/abstract/connection\_pool.rb:183:in  
`checkout' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/ active_record/connection_adapters/abstract/connection_pool.rb:98:in`connection’  
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/  
active\_record/connection\_adapters/abstract/connection\_pool.rb:326:in  
`retrieve_connection' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/ active_record/connection_adapters/abstract/connection_specification.rb: 123:in`retrieve\_connection’  
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/  
active\_record/connection\_adapters/abstract/connection\_specification.rb:  
115:in `connection' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/ active_record/query_cache.rb:9:in`cache’  
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/  
active\_record/query\_cache.rb:28:in `call' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/ active_record/connection_adapters/abstract/connection_pool.rb:361:in`call’  
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/  
action\_controller/vendor/rack-1.0/rack/head.rb:9:in `call' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/ action_controller/vendor/rack-1.0/rack/methodoverride.rb:24:in`call’  
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/  
action\_controller/params\_parser.rb:15:in `call' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/ action_controller/rewindable_input.rb:25:in`call’  
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/  
action\_controller/session/cookie\_store.rb:93:in `call' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/ action_controller/reloader.rb:9:in`call’  
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/  
action\_controller/failsafe.rb:11:in `call' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/ action_controller/vendor/rack-1.0/rack/lock.rb:11:in`call’  
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/  
action\_controller/vendor/rack-1.0/rack/lock.rb:11:in `synchronize' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/ action_controller/vendor/rack-1.0/rack/lock.rb:11:in`call’  
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/  
action\_controller/dispatcher.rb:106:in `call' c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/ static.rb:31:in`call’  
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/  
action\_controller/vendor/rack-1.0/rack/urlmap.rb:46:in `call' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/ action_controller/vendor/rack-1.0/rack/urlmap.rb:40:in`each’  
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/  
action\_controller/vendor/rack-1.0/rack/urlmap.rb:40:in `call' c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/ log_tailer.rb:17:in`call’  
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/  
action\_controller/vendor/rack-1.0/rack/content\_length.rb:13:in `call' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/ action_controller/vendor/rack-1.0/rack/handler/webrick.rb:46:in`service’  
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in`run’  
c:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in`start’  
c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in`start’  
c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each' c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in`start’  
c:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start' c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in`start’  
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/  
action\_controller/vendor/rack-1.0/rack/handler/webrick.rb:13:in `run' c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server.rb: 111 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`gem\_original\_require’  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`require’  
script/server:3

* * *

I have already thried:

gem install sqlite3  
---- And got this response… ----  
ERROR: could not find gem sqlite3 locally or in a repository

I also tried:

gem install sqlite3-ruby  
---- And got this response… ----  
Building native extensions. This could take a while…  
ERROR: Error installing sqlite3-ruby:  
ERROR: Failed to build gem native extension.

c:/ruby/bin/ruby.exe extconf.rb  
checking for fdatasync() in rt.lib… no  
checking for sqlite3.h… no

nmake  
‘nmake’ is not recognized as an internal or external command,  
operable program or batch file.

Gem files will remain installed in c:/ruby/lib/ruby/gems/1.8/gems/  
sqlite3-ruby-1  
.2.4 for inspection.  
Results logged to c:/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/  
ext/sqlite3\_  
api/gem\_make.out

I am running Windows XP with XAMPP ( Apache + Msql + PHP )

How can I solve this ?

---

<div class="post-metadata">

**Author:** ![Relax\_Man](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a9adbd/32.png) [@Relax\_Man](https://www.ruby-forum.com/u/Relax_Man)\
**Post date:** [July 1, 2009, 1:51am UTC](https://www.ruby-forum.com/t/first-time-problem/171331/2 "2009-07-01T01:51:04Z")

</div>

Install version 1.2.3. Version 1.2.4 does not work on Windows.

(gem install sqlite3-ruby -v 1.2.3)

---

<div class="post-metadata">

**Author:** ![Relax\_Man](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a9adbd/32.png) [@Relax\_Man](https://www.ruby-forum.com/u/Relax_Man)\
**Post date:** [July 1, 2009, 6:24am UTC](https://www.ruby-forum.com/t/first-time-problem/171331/3 "2009-07-01T06:24:39Z")

</div>

Looks like you’ve installed the SQLite3 adapter for ruby, but you may  
not have actually installed the actual SQLite3 database engine. That  
isn’t a gem; you’d need to install it using whatever Windows installer  
is available (sorry I’m not much help there).

If that’s the issue and you don’t want to install SQLite, you can use  
a different database that you already have installed (MySQL, MSSQL) as  
your development database, instead of SQLite3, by editing the  
database.yml file generated in the config directory of your rails  
application. In that case you would need to install the adapter for  
whatever database you choose to use (the adapters are gems, installed  
via the procedure you already used for the SQLite3 adapters).

Best,  
Steve
