Skip to content

Instantly share code, notes, and snippets.

@alxsimo
Created December 19, 2015 13:02
Show Gist options
  • Save alxsimo/e674231d9868bbb0b925 to your computer and use it in GitHub Desktop.
Save alxsimo/e674231d9868bbb0b925 to your computer and use it in GitHub Desktop.
[linux] install ruby with rvm on ubuntu

Install ruby with rvm on ubuntu

Install RVM

Update repositories
sudo apt-get update

Install curl

sudo apt-get install curl

Download RVM

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

Note: probally need to import GPG key and re-execute

Re-open terminal or execute:

source ~/.rvm/scripts/rvm

Install RVM requirements

rvm requirements

Install Ruby

rvm install ruby
rvm use ruby --default

Install RubyGems

rvm rubygems current

Example:

gem install rails
gem install jekyll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment