Environment Setup Issue for Ruby installation


I am on the First we will install rbenv, then use it to install our desired version of Ruby.
So I have installed rbenv install 2.3.1 and also typed in rbenv global 2.3.1. When I type in rbenv versions, I get * 2.3.1 (set by /Users/estherahn92/.rbenv/version). When I type in ruby -v I get ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]. And when I type in which ruby I get /usr/bin/ruby. I would like to know how I am able to change this into the ruby version I am supposed to use.

Jonathan Ahn

did you follow all of the instructions for setting it up by any chance?

add to path, initialize, update current console, .bashrc from .bash_profile, rbenv rehash

# check the version
ruby -v # => 2.3.1

# check that we are using rbenv's version of ruby
which ruby # => /Users/your-username/.rbenv/shims/ruby

after you do all of the above, you should get that part