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 ''.
1) Install RVM
$ sudo apt-get install curl
$ curl -L https://get.rvm.io | bash -s stable --ruby
(Refer https://rvm.io/rvm/install/)
$ source /home/sodel/.rvm/scripts/rvm ( enable rvm)
This installs latest stable ruby. To install another version run rvm install
2) rvm install 1.9.3 (it will install ruby 1.9.3)
3) rvm use 1.9.3 (to use latest version of ruby)
4) Start installing gems Ex: gem install bundle
5) bundle install (for all gems)
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With