ruby1.9.2 install on the window xp
1:在公司上網是有windows代理的(ntlm),而rails又都是gem安裝,對于接觸rails不多的人來時真是一場災難,我是在網站上google了半天才將rails的依賴一個一個的安裝上,然后按照上了rails2.3.3;
2:安裝后,http://localhost:3000可以看到,但是click "About your application's environment"是一直提示錯誤。
Status: 500 Internal Server Error
RubyGem version error: sqlite3-ruby(1.3.1 not >= 0)
d:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:926:in `report_activate_error'
d:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:244:in `activate_dep'
d:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:236:in `activate'
d:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:213:in `rescue in try_activate'
d:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:210:in `try_activate'
d:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:56:in `rescue in require'
d:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:156:in `block in require'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:521:in `new_constants_in'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:156:in `require'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-2.3.3/lib/active_support/core_ext/kernel/requires.rb:7:in `block in require_library_or_gem'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-2.3.3/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-2.3.3/lib/active_support/core_ext/kernel/requires.rb:5:in `require_library_or_gem'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/connection_adapters/sqlite3_adapter.rb:10:in `sqlite3_connection'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `block (2 levels) in checkout'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `loop'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `block in checkout'
d:/Ruby192/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:9:in `cache'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:28:in `call'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/head.rb:9:in `call'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/methodoverride.rb:24:in `call'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/params_parser.rb:15:in `call'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/session/cookie_store.rb:93:in `call'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/reloader.rb:29:in `call'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/failsafe.rb:26:in `call'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/lock.rb:11:in `block in call'
<internal:prelude>:10:in `synchronize'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/lock.rb:11:in `call'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:106:in `call'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/rails-2.3.3/lib/rails/rack/static.rb:31:in `call'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/urlmap.rb:46:in `block in call'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in `each'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in `call'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/rails-2.3.3/lib/rails/rack/log_tailer.rb:17:in `call'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/content_length.rb:13:in `call'
d:/Ruby192/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/handler/webrick.rb:46:in `service'
d:/Ruby192/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
d:/Ruby192/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
d:/Ruby192/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
安裝sqlit3-ruby后,還是一直提示錯誤。后來使用proxy,
gem install sqlite3-ruby #在線安裝,提示
Successfully installed sqlite3-1.3.3-x86-mingw32
Successfully installed sqlite3-ruby-1.3.3
2 gems installed
這樣就ok了。
==========20110420补充
在另一台windowxp上重新安装又是出错
最后终于发现原来是要安装sqlite3-1.3.3-x86-mingw32.gem才可以