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/binwhich rvm
If all of this has worked, run...
gem install pry