My first app with RoR problem

C:\Ruby\SITES\helloworld>ruby script/server
=> Booting WEBrick
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2009-07-21 10:01:54] INFO WEBrick 1.3.1
[2009-07-21 10:01:54] INFO ruby 1.8.6 (2008-08-11) [i386-mswin32]
[2009-07-21 10:01:55] INFO WEBrick::HTTPServer#start: pid=3476
port=3000
/!\ FAILSAFE /!\ Tue Jul 21 10:02:35 -0700 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_origina l_require' C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire’
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/depend
encies.rb:156:in require' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/ active_support/depend encies.rb:521:innew_constants_in’
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/depend
encies.rb:156:in require' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/ active_support/core_e xt/kernel/requires.rb:7:inrequire_library_or_gem’
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/core_e
xt/kernel/reporting.rb:11:in silence_warnings' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/ active_support/core_e xt/kernel/requires.rb:5:inrequire_library_or_gem’
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/connecti
on_adapters/sqlite3_adapter.rb:10:in sqlite3_connection' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/ active_record/connecti on_adapters/abstract/connection_pool.rb:223:insend’
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/connecti
on_adapters/abstract/connection_pool.rb:223:in new_connection' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/ active_record/connecti on_adapters/abstract/connection_pool.rb:245:incheckout_new_connection’
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/connecti
on_adapters/abstract/connection_pool.rb:188:in checkout' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/ active_record/connecti on_adapters/abstract/connection_pool.rb:184:inloop’
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/connecti
on_adapters/abstract/connection_pool.rb:184:in checkout' C:/Ruby/lib/ruby/1.8/monitor.rb:242:insynchronize’
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/connecti
on_adapters/abstract/connection_pool.rb:183:in checkout' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/ active_record/connecti on_adapters/abstract/connection_pool.rb:98:inconnection’
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/connecti
on_adapters/abstract/connection_pool.rb:326:in retrieve_connection' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/ active_record/connecti on_adapters/abstract/connection_specification.rb:123:inretrieve_connection’
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/connecti
on_adapters/abstract/connection_specification.rb:115:in connection' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/ active_record/query_ca che.rb:9:incache’
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/query_ca
che.rb:28:in call' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/ active_record/connecti on_adapters/abstract/connection_pool.rb:361:incall’
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/head.rb:9:in
call' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/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/rewind able_input.rb:25:incall’
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/sessio
n/cookie_store.rb:93:in call' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/ action_controller/reload er.rb:9:incall’
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/failsa
fe.rb:11:in call' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:incall’
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in
synchroniz e' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:incall’
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/dispat
cher.rb:106:in call' C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/ static.rb:31:inc
all’
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:46:in
call' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:40:ineach’
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/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:i ncall’
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/
content_length.rb:13:in call' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/ webrick.rb:46:inservice’
C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in service' C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:65:inrun’
C:/Ruby/lib/ruby/1.8/webrick/server.rb:173:in start_thread' C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:instart’
C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in start_thread' C:/Ruby/lib/ruby/1.8/webrick/server.rb:95:instart’
C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in each' C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:instart’
C:/Ruby/lib/ruby/1.8/webrick/server.rb:23:in start' C:/Ruby/lib/ruby/1.8/webrick/server.rb:82:instart’
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/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:ingem_origina
l_require’
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require’
script/server:3

I’ve tried my first app with RoR in a simple hello world… and the console displayed:

Status: 500 Internal Server Error
no such file to load – sqlite3

On Jul 20, 7:08 pm, Renzo [email protected] wrote:

no such file to load – sqlite3

Install sqlite3.

-eric

Eric wrote:

On Jul 20, 7:08?pm, Renzo [email protected] wrote:

? no such file to load – sqlite3

Install sqlite3.

-eric

Yes, thats correct. Go to command prompt and do

gem install sqlite3

Or if you are using mysql/postgresql/or what ever db edit
config/database.yml and setup things there You can also do like when
creating a project like

rails project_name -d mysql

and if its postgresql

rails project_name -d postgresql

Sijo

On Jul 21, 7:07 am, Renz M. [email protected] wrote:

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

It makes a difference what platform you are on. Since you are
building on a Microsoft machine you require a Microsoft development
environment. I do not build native MS apps so I do not know if there
is a free version of Visual Studio available or not. Nor can I say
whether or not it will suffice, even if such a thing exists.

If you are building Rails apps on MS then I really recommend that you
install the cygwin environment on your host and do your development
there.

C:\Ruby>gem install sqlite3-ruby
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

Guys error in installing sqlite3 already have sqlite3 exe, def and dll…
but still can’t install it… any better ways to install sqlite3 or
effective way to run this simple app… tnx… for the responses… have
a
nice one…

2009/7/21 Hassan S. [email protected]:

On Tue, Jul 21, 2009 at 5:39 AM, byrnejb[email protected] wrote:

If you are building Rails apps on MS then I really recommend that you
install the cygwin environment on your host and do your development
there.

Or alternatively install a virtualization product (e.g., xVM, VMWare)
with Linux for a more Rails-friendly dev environment.

I always recommend InstantRails for developing RoR on Windows. I
found it very easy to install and use, providing a complete
environment in one package. I have just switched to a dual boot with
Windows and Ubuntu however and that is an even better solution.

Colin

On Tue, Jul 21, 2009 at 5:39 AM, byrnejb[email protected] wrote:

If you are building Rails apps on MS then I really recommend that you
install the cygwin environment on your host and do your development
there.

Or alternatively install a virtualization product (e.g., xVM, VMWare)
with Linux for a more Rails-friendly dev environment.

FWIW,

Hassan S. ------------------------ [email protected]
twitter: @hassan

Alternatively, you could take the advise from:
http://www.ruby-forum.com/topic/136032

and

gem install sqlite3-ruby -v=1.2.3

Enjoy!
Bryan

What is cygwin? Previously I’m having a hard time in displaying the
simple
outputs in RoR… But it’s only just the beginning… Thank you for the
responses guys, I appreciate it… Have a nice one ahead…

2009/7/21 Colin L. [email protected]

with Linux for a more Rails-friendly dev environment.


RPMendoza

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs