创建新的Rails应用程序时出现NoMethodError

时间:2013-02-25 13:54:46

标签: ruby-on-rails nomethoderror

我在创建新的Rails文件夹(rails new my_app时)时出现此错误:

http://cl.ly/image/3S071x1l0w3J

-> NoMethodError: private method 'open' called for Gem::Package:Class
An error occured while installing rake (10.0.3), and Bundler cannot continue.
Make sure that 'gem install rake -v '10.0.3' succeeds before bundling.

请帮忙吗?

1 个答案:

答案 0 :(得分:0)

似乎是rubygems版本的问题:See here

尝试使用以下命令进行更新:

gem update --system