2012-04-26 52 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