rails启动rails服务器时显示错误

时间:2015-08-05 07:43:04

标签: ruby-on-rails ruby-on-rails-3.1

这里我试图在rails服务器上启动ruby。但由于以下这些错误,我无法启动。

我该如何解决这个问题?

C:\Users\hazelnut\Desktop\wardrobe\wardrobe>rails server
Could not find gem 'tzinfo-data (>= 0) x86-mingw32' in the gems available on thi
s machine.
Run `bundle install` to install missing gems.

C:\Users\hazelnut\Desktop\wardrobe\wardrobe>bundle install
DL is deprecated, please use Fiddle
Fetching gem metadata from https://rubygems.org/............
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...

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

C:\Users\hazelnut\Desktop\wardrobe\wardrobe>gem install rake
ERROR:  Could not find a valid gem 'rake' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect retur
ned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (
https://api.rubygems.org/latest_specs.4.8.gz)

1 个答案:

答案 0 :(得分:1)

我认为这是一个常见的SSL问题。

请参阅错误消息:

证书验证失败

错误消息是因为您的系统需要新的SSL证书。

以下是有关它的信息:

http://railsapps.github.io/openssl-certificate-verify-failed.html