rvm / rvm

Ruby enVironment Manager (RVM)
https://rvm.io
Other
5.12k stars 1.03k forks source link

ruby installation issue #3599

Open ghost opened 8 years ago

ghost commented 8 years ago

aarzoo@aarzoo-Vostro-3446:~/Documents/myintrosite$ rvm install ruby-2.2.1p85 Searching for binary rubies, this might take some time. No binary rubies available for: ubuntu/15.10/x86_64/ruby-2.2.1p85. 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/aarzoo/.rvm/rubies/ruby-2.2.1p85, this may take a while depending on your cpu(s)... ruby-2.2.1p85 - #downloading ruby-2.2.1p85, 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 --:--:-- --:--:-- --:--:-- 0curl: (22) The requested URL returned error: 404 Not Found The requested url does not exist(22): 'http://cache.ruby-lang.org/pub/ruby/./ruby-2.2.1p85.tar.bz2' Checking fallback: http://ftp.ruby-lang.org/pub/ruby/./ruby-2.2.1p85.tar.bz2 Checking fallback: http://www.mirrorservice.org/sites/ftp.ruby-lang.org/pub/ruby/./ruby-2.2.1p85.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. aarzoo@aarzoo-Vostro-3446:~/Documents/myintrosite$ rvm -v rvm 1.26.11 (latest) by Wayne E. Seguin wayneeseguin@gmail.com, Michal Papis mpapis@gmail.com [https://rvm.io/] aarzoo@aarzoo-Vostro-3446:~/Documents/myintrosite$

ghost commented 8 years ago

Why ruby is not being install?

raul782 commented 8 years ago

@pkuczynski The reason is rvm is not recognizing the following variables when parsing that ruby version. $rvm_ruby_release_version and $rvm_ruby_major_version are empty https://github.com/rvm/rvm/blob/master/scripts/functions/manage/base_fetch#L67

I tried to find the source of the bug, but couldn't get that far. I thought this could be the one, https://github.com/rvm/rvm/blob/master/scripts/functions/selector#L59 But didn't have much luck Any advice?