2012-04-07 15 views
14

Pracuję nad względnie czystą instalacją OS X. Miałem Xcode, ale usunąłem go.RVM odmawia instalacji - zwinięcie weryfikacji certyfikatu SSL nie powiodło się

Po wpisaniu rvm install 1.9.3, otrzymuję:

max-macbook:~ max$ rvm install 1.9.3 Fetching yaml-0.1.4.tar.gz to /Users/max/.rvm/archives % Total % Received % Xferd Average Speed Time Time  Time Current 
           Dload Upload Total Spent Left Speed 0  0 0  0 0  0  0  0 --:--:-- --:--:-- 
--:--:--  0 curl: (60) SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed More details here: http://curl.haxx.se/docs/sslcerts.html 

curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. There was an error, please check /Users/max/.rvm/log//*.log. Next we'll try to fetch via http. Trying ftp:// URL instead. % Total % Received % Xferd Average Speed Time Time  Time Current 
           Dload Upload Total Spent Left Speed 0  0 0  0 0  0  0  0 --:--:-- --:--:-- 
--:--:--  0 curl: (60) SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed More details here: http://curl.haxx.se/docs/sslcerts.html 

curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. There was an error, please check /Users/max/.rvm/log//*.log Extracting yaml-0.1.4.tar.gz to /Users/max/.rvm/src Error running 'tar xmzf /Users/max/.rvm/archives/yaml-0.1.4.tar.gz -C /Users/max/.rvm/src ', please read /Users/max/.rvm/log/ruby-1.9.3-p125/yaml/extract.log /Users/max/.rvm/scripts/functions/pkg: line 52: cd: /Users/max/.rvm/src/yaml-0.1.4: No such file or directory Configuring yaml in /Users/max/.rvm/src/yaml-0.1.4. Error running ' ./configure 
--prefix="/Users/max/.rvm/usr" ', please read /Users/max/.rvm/log/ruby-1.9.3-p125/yaml/configure.log Compiling yaml in /Users/max/.rvm/src/yaml-0.1.4. Error running 'make ', please read /Users/max/.rvm/log/ruby-1.9.3-p125/yaml/make.log 


Database file /Users/max/.rvm/config/packages does not exist. 

/Users/max/.rvm/scripts/functions/build: line 28: --version: command not found Installing Ruby from source to: /Users/max/.rvm/rubies/ruby-1.9.3-p125, this may take a while depending on your cpu(s)... 

ruby-1.9.3-p125 - #fetching ruby-1.9.3-p125 - #downloading ruby-1.9.3-p125, this may take a while depending on your connection... 

dziwne rzeczy wydaje się dzieje, jak nie mam systemu domyślnego. Po raz pierwszy próbowałem zainstalować Ruby (ostatecznie próbując dostać się do Rails), więc cały ten proces jest dla mnie obcy.

Sprawdziłem kilka logów, o których mowa w wynikach, a przez większość czasu RVM szuka pliku, który nie istnieje (ale jest napisane, że został pobrany) lub programu, który nie istnieje (próbował uruchomić) ./configure i otrzymałem "Plik nie znaleziony").

Czy ktoś może rzucić jakiekolwiek wgląd w to? Chcę zabrudzić sobie ręce za pomocą Rails ASAP.

+0

Certyfikat RVM wygasł. Możesz to obejść. Myślę, że tak czy inaczej rubyenv jest o wiele bardziej przejrzysty niż rvm. – frp

Odpowiedz

26

starego certyfikatów RVM wygasły, byliśmy migracji do krótszej domeny rvm.io, I zostały zaktualizowane wszystkie zasoby i kod, aby wskazywała na nową domenę, wystarczy zaktualizować RVM:

rvm get head # OR: 
rvm get stable 

również istnieje nowa komenda krótszy instalator:

curl -L get.rvm.io | bash -s stable 

dla starszych wersji RVM może być konieczne:

rvm get head 
rvm reload 
rvm get stable 
+0

To najlepsze rozwiązanie, jakie widziałem. To rozwiązało problem, który miałem z certyfikatami, i ściągnąłem yaml. Dziękuję Ci. – demersus

+1

Również może pomóc 'reload rvm'. –

+0

świetna odpowiedź. Muszę nabrać nawyku aktualizowania rvm od czasu do czasu. "rvm get stable" jest naprawdę łatwe do zrobienia. – Kevin

1

Otrzymuję te same błędy podczas instalowania wersji 1.9.3 w systemie Ubuntu. Certyfikat SSL witryny rvm: has expired; błędy pochodzą z próby pobrania yaml-0.1.4.tar.gz.

Wygląda na to, że poprawnie przechodzi w zwykły HTTP lub FTP po kilku próbach, więc nie powinno być o co martwić się (chociaż czerwony tekst wygląda złowrogo).

Jeśli naprawdę chcesz, aby stłumić komunikaty o błędach, poszukaj tych dwóch linii (dla mnie, linie 62 i 66) ~/.rvm/scripts/fetch:

fetch_command="curl -x${rvm_proxy} -f -L --create-dirs -C - " # -s for silent 

fetch_command="curl -f -L --create-dirs -C - " # -s for silent 

i dodać flagę -k zwijanie się tak, że nie robi „t potwierdzić cert SSL:

fetch_command="curl -k -x${rvm_proxy} -f -L --create-dirs -C - " # -s for silent 

fetch_command="curl -k -f -L --create-dirs -C - " # -s for silent 
+1

dokładnie ten sam błąd po mojej stronie. Tłumienie komunikatów o błędach nie spowoduje jednak zniesienia błędu.Jeśli yaml nie zostanie prawidłowo pobrany/zainstalowany, szyny prawdopodobnie napotkają wtedy pewien problem. – Luc

+0

Dziękuję Abe za otwarcie problemu. – Luc

16

naprawiliśmy problem z:

echo 'insecure' > ~/.curlrc 
+0

to działa dla mnie! – xhan

+1

Niesamowita, szybka naprawa. Uwaga: należy usunąć niepewność z ~/.curlrc po uruchomieniu instalatora. – erran

+0

Tak, działa w moim starym Centos! – holly

1

@ odpowiedź mpapis koszulka nie działa na mnie jak od 2 listopada 2013. Ostatecznie RVM fail wiadomości wskazał mi rvm.io/support/fixing-broken -ssl-certyfikaty, gdzie mówi o uruchomieniu sudo apt-get install ca-certificates dla Ubuntu. Wtedy zadziałał standard /curl -L get.rvm.io | bash -s stable.

+0

Napotykając podobny problem tutaj; Po zainstalowaniu certyfikatów typu ca był '/ curl -L get.rvm.io | bash -s stable' required? – kiddorails

Powiązane problemy