找不到宝石'摩卡(= 0.12.3)x86-mingw32'

时间:2012-10-24 09:03:43

标签: ruby-on-rails-3

我尝试从IDE启动redmine:

  

rails / redmine / script / rails server -b 127.0.0.1 -p 3000 -e development

但我收到错误:

/resolver.rb:287:in `resolve': Could not find gem 'mocha (= 0.12.3) x86-mingw32' in the gems available on this machine. (Bundler::GemNotFound)

我安装了mocha:

gem install mocha

但错误仍然存​​在。

1 个答案:

答案 0 :(得分:4)

尝试使用相同的版本安装它:

gem install mocha -v '0.12.3'