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.

Ruby Build a Simple Ruby on Rails Application Getting Started with Rails Generate a Rails Application

rvm use 2.0.0 isn't working on Mac

I've been trying to get past the very begging step of this project, but am having no luck with the "rvm use 2.0.0" I'm completely new to Ruby, and have felt like the videos skipped a couple of steps, assuming that I know what to do. But clearly I do not. I fumbled through setting up the [Projects] directory, so I'm not sure if I've even done that part correctly. All of the steps that I have performed are as follows:

treehouse:~ $ cd Projects
-bash: cd: Projects: No such file or directory
treehouse:~ $ mkdir [Projects]
treehouse:~ $ cd Projects
-bash: cd: Projects: No such file or directory
treehouse:~ $ cd [Projects]
treehouse:~/[Projects] $ rvm use 2.0.0
The program 'rvm' is currently not installed.  You can install it by typing:
sudo apt-get install ruby-rvm
treehouse:~/[Projects] $ sudo apt-get install ruby-rvm

After that this happened…

treehouse:~/[Projects] $ rvm use 2.0.0
ERROR: Unknown ruby interpreter version: '2.0.0'
treehouse:~/[Projects] $ ruby -v
ruby 2.0.0p353 (2013-11-22 revision 43784) [i686-linux]

Thanks in advance for the help!

4 Answers

Deoward Kotze
Deoward Kotze
14,604 Points

Are you running this on a mac?

If so then you need to install rvm like so --> \curl -sSL https://get.rvm.io | bash -s stable

sudo apt-get will only work on linux based systems

Deoward Kotze
Deoward Kotze
14,604 Points

Hi Dinar,

You need to say --> rvm use ruby-2.0.0-p353

You can use rvm list to see which ruby versions are installed

If that does not do the trick you can try to update rvm --> rvm get head

The enable autolibs so rvm can install required libraries when needed --> rvm autolibs enable

Hi Deoward,

Thank you for your reply. I attempted what you suggested, and got the following results.

treehouse dinardavis$ cd [Projects] [Projects] dinardavis$ rvm use ruby-2.0.0-p353 -bash: rvm: command not found [Projects] dinardavis$ rvm get head -bash: rvm: command not found [Projects] dinardavis$ rvm autolibs enable -bash: rvm: command not found [Projects] dinardavis$

Is there something else that could be wrong? Also, I have gone back to the very beginning and reinstalled everything in the hopes that this might help, but the result does not change. Also, I'm wondering, does it matter which directory I'm in when I input these commands?

That fixed it, Deoward. Thank you very much!