Skip to content

Instantly share code, notes, and snippets.

@ga-wolf
Last active March 13, 2016 23:47
Show Gist options
  • Save ga-wolf/98718aa5c63d8323ae46 to your computer and use it in GitHub Desktop.
Save ga-wolf/98718aa5c63d8323ae46 to your computer and use it in GitHub Desktop.
Installing RVM and Ruby

Installing RVM and Ruby

Install the Developer Tools from Xcode (this should have happened for most of you)

xcode-select --install

Access a specific URL using a secured line and run the downloaded program

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

Restart the terminal, and try running the command rvm.

If it doesn't work...

  • Open the bash_profile up in Sublime

    subl ~/.bash_profile

  • Add these lines into the bottom of the bash_profile and save it

    [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" `
    export PATH="$PATH:$HOME/.rvm/bin"
    source ~/.profile
    

Restart the terminal again

rvm

rvm list known

rvm get stable --auto

Go here and find the most recent version - https://www.ruby-lang.org/en/downloads/

Latest version at the time of writing was 2.3.0, swap those in for the latest stable version that shows on that website

rvm install ruby-2.3.0

rvm --default use 2.3.0

Let's test that it has all worked.

  • ruby -v
  • rvm -v
  • which ruby - should not return anything in the /usr/local/bin
  • which rvm

If all of this has worked, run...

gem install pry

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