Ruby Bundler尝试重新安装已安装的Gem

Ruby Bundler尝试重新安装已安装的Gem,ruby,rubygems,Ruby,Rubygems,我必须在我的Windows机器上卸载并重新构建json gem,因为最初安装的gem导致了NoMethodError(如上所述)。 我发出了以下命令: gem uninstall json --all gem install json --platform=ruby 这构建了json 1.4.6,一切正常。但是,后来我发出了一个bundler命令: bundle update 我看到Bundler报告“正在安装json(1.4.6)”。之后,错误又出现了,所以我不得不再次重新安装json 我

我必须在我的Windows机器上卸载并重新构建json gem,因为最初安装的gem导致了NoMethodError(如上所述)。 我发出了以下命令:

gem uninstall json --all
gem install json --platform=ruby
这构建了json 1.4.6,一切正常。但是,后来我发出了一个bundler命令:

bundle update
我看到Bundler报告“正在安装json(1.4.6)”。之后,错误又出现了,所以我不得不再次重新安装json


我想知道是什么原因导致Bundler重新安装系统上已经存在的具有匹配版本号的gem。

原因是Bundler试图为您的平台安装二进制版本的json,而您手动安装了ruby platform one(我相信可以解决json gem的其他问题)

我建议您在更新后卸载bundler安装的json gem

bundle update
gem uninstall json --platform=x86-mingw32
同时也向捆绑程序开发人员及其


很抱歉没有提供更多帮助,但您的问题没有已知的答案。

谢谢您,路易斯!我将在Bundler的问题跟踪程序中提出这个问题。