NoMethodError:私有方法'打开”呼吁宝石::套餐:安装耙(10.0.3)类时发生

2019-08-17 06:51发布

我想对在轨道上的项目,我从GitHub同步红宝石工作。 尽管耙10.0.3被成功安装后,“包安装”失败。 我是新来的铁轨和不知道如何着手对this.I一派的错误,并试图安装不同版本耙由解决方案的建议,但它并没有帮助。

这里就是我想要做的...请帮助。

ruby 1.9.3p374 (2013-01-15) [i386-mingw32]

 >rails s ←[31mCould not find kaminari-0.14.1 in any of the sources←[0m ←[33mRun `bundle install` to install missing gems.←[0m >bundle install Fetching gem metadata from https://rubygems.org/........... Fetching gem metadata from https://rubygems.org/.. NoMethodError: private method `open' called for Gem::Package:Class An error occurred while installing rake (10.0.3), and Bundler cannot continue. Make sure that `gem install rake -v '10.0.3'` succeeds before bundling. >gem install rake -v '10.0.3' Successfully installed rake-10.0.3 Done installing documentation for rake (1 sec). 1 gem installed >bundle install Fetching gem metadata from https://rubygems.org/........... Fetching gem metadata from https://rubygems.org/.. NoMethodError: private method `open' called for Gem::Package:Class An error occurred while installing rake (10.0.3), and Bundler cannot continue. Make sure that `gem install rake -v '10.0.3'` succeeds before bundling. 

谢谢!

Answer 1:

你应该首先更新的RubyGems:

gem update --system

然后更新捆扎机:

gem install bundler


文章来源: NoMethodError: private method `open' called for Gem::Package:Class An error occurred while installing rake (10.0.3), and Bundler cannot continue