无法在任何源代码中找到json-1.8.3运行`bundle install`来安装缺失的gem

时间:2016-03-15 16:08:04

标签: ruby-on-rails ruby json

我正在使用Windows 8进行开发。当我尝试使用Rails安装程序安装Ruby 2.2.2时,我的问题就出现了,这对我试图克隆的源代码来说甚至是癫痫。

我为Ruby2.2.2卸载了RailsInstaller,我的旧Ruby2.0.0开发控制台开始给我发现问题/错误。

运行bundle install时出现错误:

Gem files will remain installed in F:/Rails
Programs/RubymineProjects/Rails-Bootstrap
Template/vendor/bundle/gems/json-1.8.3 for inspection. Results logged
to F:/Rails Programs/RubymineProjects/Rails-Bootstrap
Template/vendor/bundle/gems/json-1.8.3/ext/json/ext/generator/gem_make.out
An error occurred while installing json (1.8.3), and Bundler cannot
continue. Make sure that `gem install json -v '1.8.3'` succeeds before
bundling.

我还尝试按照说明安装JSON,但也失败了:

ERROR:  Could not find a valid gem 'json' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B:
certificate verify failed (https://rubygems.org/l atest_specs.4.8.gz)

我几乎尝试了所有与此相关的内容,但都无济于事。

我篡改的一些东西是DevKit,我设置为Ruby 2.2.2但是在卸载Ruby 2.2.2之后我将它重新配置为Ruby 2.0.0。

1 个答案:

答案 0 :(得分:1)

以下是我为解决问题所采取的步骤。

  1. 我从Gemfile.lock删除了所有json条目,然后
  2. 我确实运行了bundle install,然后是
  3. 通过运行rails server
  4. 启动服务器

    它有效。感谢。