2015-04-28 10 views
6

Oto co. Po raz pierwszy wykonałem:Błąd podczas instalacji Ruby 2.2.2 z RVM na Ubuntu 14.04

rvm get stable 
rvm install ruby-2.2.2 

Bez umowy. To pokazuje mi, co następuje:

$ rvm install ruby-2.2.2 
Searching for binary rubies, this might take some time. 
No binary rubies available for: ubuntu/14.04/i386/ruby-2.2.2. 
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. 
Checking requirements for ubuntu. 
Requirements installation successful. 
Installing Ruby from source to: /home/myuser/.rvm/rubies/ruby-2.2.2, this may take a while depending on your cpu(s)... 
ruby-2.2.2 - #downloading ruby-2.2.2, this may take a while depending on your connection... 
    % Total % Received % Xferd Average Speed Time Time  Time Current 
           Dload Upload Total Spent Left Speed 
    0  0 0  0 0  0  0  0 --:--:-- 0:00:19 --:--:--  0Warning: Transient problem: timeout Will retry in 2 seconds. 3 retries left. 
    0  0 0  0 0  0  0  0 --:--:-- 0:00:19 --:--:--  0Warning: Transient problem: timeout Will retry in 2 seconds. 2 retries left. 
    0  0 0  0 0  0  0  0 --:--:-- 0:00:19 --:--:--  0Warning: Transient problem: timeout Will retry in 2 seconds. 1 retries left. 
    0  0 0  0 0  0  0  0 --:--:-- 0:00:19 --:--:--  0curl: (6) Could not resolve host: cache.ruby-lang.org 
There was an error(6). 
Checking fallback: http://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.bz2 
Checking fallback: http://www.mirrorservice.org/sites/ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.bz2 
No fallback URL could be found, try increasing timeout with: 

    echo "export rvm_max_time_flag=20" >> ~/.rvmrc 

There has been an error fetching the ruby interpreter. Halting the installation. 

zwiększyłem limit czasu, jak powiedział:

echo "export rvm_max_time_flag=20" >> ~/.rvmrc 

Ale żaden interes. Zrobiłem też rvm get head i zrobiłem to wszystko z wyższymi czasami, ale wciąż nie było dobrze.

co mogę zrobić, aby poprawnie zainstalować Ruby-2.2.2 na Ubuntu?

+0

Sprawdź, czy to pomaga http://stackoverflow.com/questions/23339379/rvm-fails-installing-ruby –

+0

To nie działa. To może być ten sam problem. Nie jestem tego pewien. –

Odpowiedz

4

Czuję się kulawy, ale problem polegał na tym, że moje połączenie internetowe VM zawodziło. (Chyba brakowało mi Rozwiązywanie problemów - 101, hehe)

Zmieniłem sieć komputera, a maszyna wirtualna VM nie zaktualizowała się ani nie połączyła z nową siecią. Aby dodać do problemu, żadne z poleceń () nie wygenerowało ostrzeżenia, więc poprowadzono mnie do wniosku, że to coś innego.

"Błędy nigdy nie powinny przechodzić w ciszy." (The Zen of Python)

Powiązane problemy