0

我的系统有问题,所以我卸载了旧的 ruby​​ 目录,现在正尝试重新安装。我下载并安装了最新的 ruby​​ 版本。

但是,当我尝试运行 Rails 服务器时,它说我需要安装一些 gem。所以我运行了捆绑安装,结果发现它也被卸载了。

所以我做了 gem install bundler,但是现在,每当我运行 bundle install 时,它都不起作用。我不断收到此错误的某些版本:

Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed ...
An error occurred while installing ThisGem ('0.3.4'), and Bundler cannot continue. 
Make sure that "gem install ThisGem '0.3.4' " succeeds before bundling.

“gem install”命令每次都有效,但是当我安装一个gem时,它只会在下一个时出错,必须手动安装,这会破坏Bundler的意义。

任何想法为什么会发生这种情况?

4

1 回答 1

0

在您的 Gemfile 中手动包含 gem "ThisGem '0.3.4'" 并尝试运行:

捆绑安装--本地

于 2014-02-27T09:51:50.283 回答