2012-04-26 53 views
7

当调用“包安装”引起宝石:: RemoteFetcher :: FetchError每个宝石

rails new project 

程序进行,直到我打了包安装。在这一点上:

identical vendor/plugins/.gitkeep 
     run bundle install 
Fetching gem metadata from https://rubygems.org/......... 

Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=unknown state: sslv3 alert handshake failure (https://d2chzxaqi4y7f8.cloudfront.net/gems/rake-0.9.2.2.gem) 
An error occured while installing rake (0.9.2.2), and Bundler cannot continue. 
Make sure that `gem install rake -v '0.9.2.2'` succeeds before bundling. 

我可以用宝石手动安装宝石安装并启动新的轨道再次,并为下一个宝石重复错误。我最终手动安装每一颗宝石。

我使用rvm 1.13.0单用户。

+0

如果您使用的是RVM,您应该阅读'rvm requirements'。 – mpapis 2012-04-26 20:38:16

回答

6

您是否安装了OpenSSL?你不提你的操作系统,但Ubunutu(或其他基于Debian的发行版),你这样做:

sudo apt-get install openssl 

做不到这一点,尝试http://railsapps.github.com/openssl-certificate-verify-failed.html

+1

谢谢。 “失败”选项保存了一天。 – darioshanghai 2012-04-26 09:52:33

+1

:ssl_verify_mode:0在〜/ .gemrc中的“失败”解决了我的问题。谢谢! – 2013-01-08 03:07:38

+0

我遵循“失败的”选项并查找Windows指令。如果你有RailsInstaller,有一个如何解决这个问题的链接。我没有RailsInstaller,只有Ruby,所以我遵循了“手动”指令,并将RailsInstaller更改为Ruby200-x64,它工作正常!谢谢! – 2013-11-09 01:48:25

5

试试这个。

rvm pkg install openssl 
rvm reinstall 1.9.2 --with-openssl-dir=$rvm_path/usr 
+0

在Mac OS X 10.8上有帮助,谢谢 – sekrett 2013-10-02 11:30:00