RBENV
rbenv install -l
rbenv install 2.4.3
rbenv local 2.4.3
gem bundler install
bundle install
RVM
![Update Ruby On Mac Update Ruby On Mac](http://www.temptalia.com/images/holiday2011/mac_rubywoo002.jpg)
Jun 30, 2017 - In this tutorial, you'll set up a Ruby programming environment on your local macOS. Step 2 — Installing Xcode's Command Line Tools.
Install RVM if Necessary
![Update Ruby On Mac Update Ruby On Mac](http://railsapps.github.io/images/installing-mavericks-popup.png)
- Install with curl
curl -sSL https://get.rvm.io | bash -s stable
- Source the RVM
source /Users/wrburgess/.rvm/scripts/rvm
Upgrading Ruby with RVM
- Update RVM with
rvm get stable --ruby
- Tell RVM to install new ruby with
rvm install [version_number]
- Change the ruby version in the app's
.ruby-version
file - Change the ruby version in the app's
Gemfile
- Rebuild your gems with
bundle install
- Reload your terminal with
source ~/.bash_profile
- Confirm ruby version changed with
ruby -v
CI Environment
- Ignore unless you manage this aspect of the project
- Change the ruby version in Codeship/Travis
Error Messages
If you receive the message:
run
sudo gcc
, hit Enter
, type q
, type agree
, type Enter