Specified Ruby version not showing as default


Hello… Running through the “Installing Ruby” of the Odin project course. Everything up through specifying the default version works perfect. I specify the following:

$ rbenv glogal 2.5.3

I am then instructed to check the correct version output with ruby -v. I should see:

$ ruby -v
ruby 2.5.3p82 (2018-09-12)

Instead I receive:

ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]

How do I default to my specified version?

Thank you!


What is the output of echo $PATH?




It looks like rbenv has not been set up properly. What OS are you using?


MacOS Mojave 10.14


What does cat ~/.bash_profile output?


alias textedit='open -a TextEdit’eval “$(rbenv init -)”


Are you using VSCode?


That is correct


Type code ~/.bash_profile and check that the eval "$(rbenv init -)" is on it’s own line. If it isn’t move it to it’s own line and save the file. Then close and open a new terminal and then try ruby -v


ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin18]

That did it! Thank you for the help!

Was on the same line asalias textedit='open -a TextEdit’

Is it normal for that to happen?


Not usually. If I hear of it happening with anyone else I’ll investigate.

Glad you got it working.


Thanks again