我刚刚安装了rails 3.0.1,当我尝试做类似rails服务器的操作时,我收到以下错误信息。
注意第一行说它无法找到rails gem 3.0.0.rc: 在任何一个gem中都找不到gem'rail(= 3.0.0.rc,runtime)' OURCES。 (捆扎机:: GemNotFound)
如何让我的rails3应用程序使用rails 3.0.1?
谢谢,
-p.s。完整的错误:
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/resolver.rb:280:在
resolve': Could not find gem 'rails (= 3.0.0.rc, runtime)' in any of the gem s
ources. (Bundler::GemNotFound)
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/resol
ver.rb:162:in
开始”
来自C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/resol
ver.rb:131:block in resolve'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/resol
ver.rb:130:in
抓住'
来自C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/resol
ver.rb:130:在resolve'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/defin
ition.rb:153:in
解析'
来自C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/defin
ition.rb:93:specs'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/defin
ition.rb:137:in
specs_for'
来自C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/defin
ition.rb:126:在requested_specs'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/envir
onment.rb:23:in
requested_specs'中
来自C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/runti
me.rb:11:in setup'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler.rb:10
0:in
setup'
来自C:/ Users / soheil / Documents / Aptana Studio 3工作区/ pakrat-rails3 / c
onfig / boot.rb:5:in <top (required)>'
from <internal:lib/rubygems/custom_require>:29:in
require'
来自:29:require'
from script/rails:8:in
'
答案 0 :(得分:1)
在你的gemfile中你可以改变这一行:
gem'rail','3.0.1'
然后跑 捆绑安装