Error installing Ruby 2.2.2 with RVM on Ubuntu 14.04

That's what. I first did:

rvm get stable rvm install ruby-2.2.2 

No deal. This shows me the following:

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

I increased the timeout as it says:

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

But no deals. I also did the rvm get head and did it all over again with higher timeouts, but that still wasn't good.

what can i do to properly install ruby-2.2.2 on ubuntu?

+6
source share
1 answer

I feel lame, but the problem is that my internet connection on the Internet was unsuccessful. (I think I skipped Troubleshooting-101, hehe)

I changed the PC network and the virtual virtual machine did not upgrade or connect to the new network. To add to the problem, none of the commands ( rvm get stable ; rvm get head ; rvm install ruby-2.2.2 ) raised a warning, so it occurred to me that this was something else.

"Mistakes should never pass silently." (Zen Python)

+4
source

Source: https://habr.com/ru/post/986138/


All Articles