轨道 'Bundle Install' 不工作

Rail 'Bundle Install' not working

我是 Rails 编程新手。当我在 rails 命令提示符中尝试 运行 命令 'bundle install' 时,出现以下错误。

C:\Sites\blog>bundle install
DL is deprecated, please use Fiddle
Fetching gem metadata from https://rubygems.org/.Retrying dependency api due to
error (2/3): Zlib::BufError buffer error
.........
Resolving dependencies...
Using rake 10.4.2
Using i18n 0.7.0
Using json 1.8.2
Using minitest 5.5.1
Using thread_safe 0.3.5
Using tzinfo 1.2.2
Using activesupport 4.1.8
Using builder 3.2.2
Using erubis 2.7.0
Using actionview 4.1.8
Using rack 1.5.2
Using rack-test 0.6.3
Using actionpack 4.1.8
Using mime-types 2.4.3
Using mail 2.6.3
Using actionmailer 4.1.8
Using activemodel 4.1.8
Using arel 5.0.1.20140414130214
Using activerecord 4.1.8
Using bundler 1.7.7
Using coffee-script-source 1.9.1
Using execjs 2.4.0
Using coffee-script 2.3.0
Using thor 0.19.1
Using railties 4.1.8

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

即使在我安装了所需的 gem 之后,该捆绑包仍会继续显示相同的消息以安装不同的 gem。谁能帮帮我!
谢谢

尝试运行gem update --system

您也可以通过更改 gemfile 中的第一行来尝试临时解决方法

source 'https://rubygems.org'

source: 'http://rubygems.org'

使用这两个中的任何一个,bundle 一定会奏效。