在Windows 7上使用Ruby 1.9.2-P180和Rails 3.0.5安裝,如果我當前的Rails 3.0.5和Bundler依賴項設置是否錯誤?
rails new trytry
cd trytry
bundle install
它只有在經過
gem install bundler
或可能顯示
C:\ror\trytry>bundle install
c:/ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/bundler/ui.rb:46:in `<class:UI>': uninitialized constant Gem::SilentUI (NameError)
from c:/ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/bundler/ui.rb:2:in `<module:Bundler>'
from c:/ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/bundler/ui.rb:1:in `<top (required)>'
from c:/ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/bundler/cli.rb:17:in `initialize'
from c:/ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/bundler/vendor/thor.rb:246:in `new'
from c:/ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/bundler/vendor/thor.rb:246:in `dispatch'
from c:/ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/lib/bundler/vendor/thor/base.rb:389:in `start'
from c:/ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.0/bin/bundle:13:in `<top (required)>'
from c:/Ruby192/bin/bundle:19:in `load'
from c:/Ruby192/bin/bundle:19:in `<main>
a
gem update bundler
然後bundle install
將工作。所以看起來Rails 3.0.5需要一個更新的捆綁器,它在依賴關係中沒有正確列出?否則當我爲爲3.0.5時,它應該有更新捆綁器以及,是嗎?
根據我的經驗,Windows 7上的Rails只使用Ruby 1.8.7穩定,特別是一旦你開始安裝gem。 – RSG 2011-04-02 21:47:49