Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Cannot get OS X to use my rbenv installed ruby version
After using "rbenv install 2.3.0", I successfully installed 2.3.0
Then I used "rbenv global 2.3.0"
now when I use "ruby -v" the terminal returns
ruby 2.0.0p645 (2015-04-13 revision 50299) [universal.x86_64-darwin15]
So the ruby version I get from terminal is not the same i installed with rbenv. Is there anything I'm missing? How do I get ruby -v to return the version that I installed with rbenv?
In case anyone revisits this question, I resolved this by typing this exact line into the command line:
then ruby -v will then return 2.3.0 (or whatever version you installed). But I have to retype it every time I start a new session.
Charles Cloud6,134 Points
I think the issue has to do with the version of OSX. I am using 10.10.5 and I think the ~/.bash_profile has been changed for this version onwards. Can anyone confirm this?