Welcome to the Treehouse Community
Looking to learn something new?
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!
Deoward Kotze14,604 Points
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
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!