Error installing rvm (Ruby version Manager)

rvm

I was trying to install Ruby Version Manager for installing Ruby on Rails.

I am following this link. : https://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin-with-rvm

However, I am getting this error.

$ curl -L get.rvm.io | bash -s stable --auto
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   184  100   184    0     0      8      0  0:00:23  0:00:20  0:00:03   562
100 11861  100 11861    0     0    251      0  0:00:47  0:00:47 --:--:--  1974
Warning, --auto is deprecated in favor of --auto-dotfiles.
Downloading RVM from wayneeseguin branch stable
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   124  100   124    0     0      5      0  0:00:24  0:00:23  0:00:01    35
100 1631k  100 1631k    0     0   5867      0  0:04:44  0:04:44 --:--:-- 11223

Could not download 'https://github.com/wayneeseguin/rvm/archive/stable.tar.gz'.
  curl returned status ''.

Best Answer

Install RVM with RUBY

sudo apt-get install curl

after install install rvm also ruby

\curl -sSL https://get.rvm.io | bash -s stable

if you face issue with the above line (Failed to connect to get.rvm.io port 443: Network is unreachable)

in browser go to https://get.rvm.io save the page in any location

make it executable file name rvm-installer

chmod +x rvm-installer

then do the following

bash rvm-installer stable --ruby

then check rvm list note the version of ruby listing on terminal

**change terminal to login shell. open a new terminal **

then rvm use 2.1.1 => ( 2.1.1 version )

then its done!

pd@admin:~$ ruby -v

ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]


STEPS
1: go to [https://get.rvm.io][1] save the page in in home directory(filename rvm-installer) 
2: chmod +x rvm-installer
3: bash rvm-installer stable --ruby
4:rvm use 2.1.1
5:gem install rails

programmers keep on coding with ruby.

Related Topic