Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Ruby Version 2.2.2

Not sure what exactly's wrong. I followed the instructions (with added 'sudo' commands) and everything seemed to install correctly, but when I check the version, it says "2.0.0p481" which I'm pretty sure was the version that was installed before I did all of this.

tyler-herbsts-macbook-pro:~ therbst$ sudo rbenv install 2.2.2
Password:
Downloading openssl-1.0.1m.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/095f0b7b09116c0c5526422088058dc7e6e000aa14d22acca6a4e2babcdfef74
Installing openssl-1.0.1m...
Installed openssl-1.0.1m to /Users/therbst/.rbenv/versions/2.2.2

Downloading ruby-2.2.2.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/5ffc0f317e429e6b29d4a98ac521c3ce65481bfd22a8cf845fa02a7b113d9b44
Installing ruby-2.2.2...
Installed ruby-2.2.2 to /Users/therbst/.rbenv/versions/2.2.2

tyler-herbsts-macbook-pro:~ therbst$ sudo rbenv global 2.2.2
Password:
tyler-herbsts-macbook-pro:~ therbst$ ruby -v
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]

Thanks!

1 Answer

Figured it out. For anyone else having this issue...just quit the terminal and launch it again.