Skip to content

Instantly share code, notes, and snippets.

@harchs
Last active August 29, 2015 13:56
Show Gist options
  • Save harchs/8928553 to your computer and use it in GitHub Desktop.
Save harchs/8928553 to your computer and use it in GitHub Desktop.
Install ROR on Ubuntu
1. First we have to make sure that we have some dependencies installed, so run the following command to take care of them.
sudo apt-get install build-essential git-core
2. Now we need to install RVM (Ruby Version Manager) using curl. If you do not have curl installed yet on your system, you can issue the following command
sudo apt-get install curl
3. To start the RVM installation run the following command
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
4. Now we need to add a line to our bashrc file so run the following command
echo '[[ -s "/home/username/.rvm/scripts/rvm" ]] && source "/home/username/.rvm/scripts/rvm"' >> ~/.bashrc
5. Now run
source ~/.bashrc
6. To test if our installation of RVM was succesfull, we can run a command and check its output.
type rvm | head -1
If the output of the above command is equivalent to rvm is a function, then we now have a working RVM installation
7. Run command as login shell
gedit ~/.bash_profile
source ~/.profile
source ~/.bashrc
https://rvm.io/integration/gnome-terminal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment