找不到宝石'sdoc(> = 0)红宝石'

时间:2013-12-05 15:54:12

标签: ruby-on-rails

我正在尝试运行我的第一个rails应用程序。我得到的第一个错误是:

Could not find gem 'sdoc (>= 0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.

然后我尝试运行“bundle install”并获取:

Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://s3.amazonaws.com/production.s3.rubygems.org/gems/i18n-0.6.9.gem)
An error occurred while installing i18n (0.6.9), and Bundler cannot continue.
Make sure that `gem install i18n -v '0.6.9'` succeeds before bundling.

然后我尝试了“gem install il8n -v'(0.6.9)'”并得到:

ERROR:  Could not find a valid gem 'il8n' (= 0.6.9), 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://s3.amazonaws.com/production.s3.rubygems.org/specs.4.8.gz)

---------------- UPDATE

然后我改变了

source 'https://rubygems.org'

source 'http://rubygems.org'

尝试捆绑安装后,我现在得到:

An error occurred while installing atomic (1.1.14), and Bundler cannot continue.
Make sure that `gem install atomic -v '1.1.14'` succeeds before bundling.

然后我尝试:

$ bundle update --source atomic

并获取

Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation at bit.ly/bundler-issues.

滞留!任何建议都非常感谢。

查理

3 个答案:

答案 0 :(得分:1)

想出来。需要更新Xcode并同意新许可证。

答案 1 :(得分:1)

适用于RubyMine,Ubuntu 14.04x64

替换你的Gemfile

source 'https://rubygems.org'

source 'http://rubygems.org'

答案 2 :(得分:0)

替换你的Gemfile

source 'https://rubygems.org'

source 'http://rubygems.org'

没有's'意味着安全 然后

bundle install