2015-05-08 16 views
5

Sto tentando di installare Ruby su rotaie ma continuo a ricevere così tanti errori quando sto provando a creare un'applicazione.Gem :: RemoteFetcher :: FetchError: SSL_connect restituito = 1 errno = 0 stato = SSLv3 letto

Ecco quello che ho fatto sulla mia macchina Windows:

1) scaricati railsinstaller-3.0.0.exe software 2) Rails installati sulla mia macchina. 3) ha verificato che l'installazione è riuscita:

E:\Rails>ruby -v ruby 2.0.0p598 (2014-11-13) [i386-mingw32]

E:\Rails>sqlite3 --version 3.8.7.2 2014-11-18 20:57:56 2ab564bf9655b7c7b97ab85cafc8a48329b27f93

E:\Rails>rails -v DL is deprecated, please use Fiddle Rails 4.1.8

Ora, quando sto cercando di creare un'applicazione io sono sempre qui di seguito eccezione:

comando utilizzato è: rails new blog

  run 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. 

Ora ho provato per eseguire questo comando - gem install rake -v '10.4.2', ho iniziato a ottenere sotto l'errore ora:

E:\Rails>gem install rake -v '10.4.2' 
ERROR: Could not find a valid gem 'rake' (= 10.4.2), here is why: 
      Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/specs.4.8.gz) 

Sono completamente bloccato qui, puoi dire dove sto sbagliando in questa installazione? Ho provato varie opzioni fornite in SO ma sto fallendo tutte le volte.

Se provo ad avviare il server, allora io sono sempre al di sotto di eccezione:

E:\Rails> cd blog 
E:\Rails\blog>rails server 
Could not find gem 'tzinfo-data (>= 0) x86-mingw32' in the gems available on this machine. 
Run `bundle install` to install missing gems. 

Ora, se corro bundle install sto ottenendo nuovo errore:

E:\Rails\blog>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. 

Anche in questo caso, se cerco di installare rake Ricevo una nuova eccezione:

E:\Rails\blog>gem install rake -v '10.4.2' 
ERROR: Could not find a valid gem 'rake' (= 10.4.2), here is why: 
      Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/specs.4.8.gz) 

Sto provando questo per gli ultimi 2 giorni, ma st non riesco a capire dove sto facendo errore nell'installazione.

+3

La risposta a questo problema sembra essere ben documentata nell'essenza collegata. https://gist.github.com/luislavena/f064211759ee0f806c88 –

+0

Grazie mille, ha funzionato ora. – user3181365

risposta

0

Come aggiungere certificati attendibili in Ruby

La soluzione per SL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed è qui: How to Manually add Trust Certificate


Grazie per @luislavena soluzione & @BenY la risposta.

2

Aggiornare il Gemfile: da

https://rubygems.org 

a

http://rubygems.org 
+1

Questa soluzione è una soluzione temporanea, ma è una raccomandazione non sicura e non è affatto vicina a una correzione permanente. –

0

gem update --system installerà l'ultima versione di Rubygems, comprese le corrette certificati fiducia up-to-date.

Problemi correlati