RVM Cannot Install Ruby

I am trying to install an older version of Ruby using RVM, but the installation fails with an error that I have never seen before. I already changed rvm_max_time_flag , but that did not help. What can i do here?

 rvm install 1.9.3p484 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.9/x86_64/ruby-1.9.3p484. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Checking requirements for osx. Certificates in '/usr/local/etc/openssl/cert.pem' already are up to date. Requirements installation successful. Installing Ruby from source to: /Users/nandersen/.rvm/rubies/ruby-1.9.3p484, this may take a while depending on your cpu(s)... ruby-1.9.3p484 - #downloading ruby-1.9.3p484, 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 curl: (22) The requested URL returned error: 404 Not Found The requested url does not exist(22): 'http://cache.ruby-lang.org/pub/ruby/./ruby-1.9.3p484.tar.bz2' Checking fallback: http://ftp.ruby-lang.org/pub/ruby/./ruby-1.9.3p484.tar.bz2 Checking fallback: http://www.mirrorservice.org/sites/ftp.ruby-lang.org/pub/ruby/./ruby-1.9.3p484.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. 
+1
source share
4 answers

It says that the URL does not exist OR the URL does not have a ruby ​​version available for download.

Try installing with a compatible version of ruby-gem:

 rvm install 1.9.3p484 --rubygems 2.0.9 

OR

Update

Are you sure you are using an updated version of RVM?

 rvm get head rvm install 1.9.3 

Hope this helps :)

+3
source

1) Make sure that you are using the latest version of RVM rvm get head 2), and then install the new ruby rvm install ruby-2.3

+2
source

Decision

Make the rvm list known . If it does not display the ruby ​​version that it runs, it can be installed from a local source. Some versions of Ruby are not supported and will not be listed, and rvm may create the wrong URL.

For example, installing ruby-1.9.3-p484 is as follows:

First upload the ruby ​​archive to the RVM archives folder:

cd ~/.rvm/archives; wget http://cache.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p484.tar.bz2

Then set the following flags:

rvm install 1.9.3-p484 --verify-downloads 2 --disable-binary

Explanation

I had to do it so as not to do it: rvm install ruby-1.9.3p484

Since the above command generated this error:

The requested URL does not exist (22): ' https://cache.ruby-lang.org/pub/ruby/./ruby-1.9.3p484.tar.bz2 ' Check backup: https: //ftp.ruby-lang .org / pub / ruby ​​/./ ruby-1.9.3p484.tar.bz2 Unable to find the backup URL, try increasing the timeout with:

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

Error getting ruby ​​interpreter. Complete installation.

Also see this SO RVM install ruby answer from local source

0
source

I decided that just changing the rvm path mod

 sudo chmod 777 -R /path/to/rvm 

in my case: / usr / local / rvm

-4
source

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


All Articles