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

William Lynch
William Lynch
5,636 Points

Trouble running rvm when installing ruby

Ok, here's what we have.

I've installed rails and ruby

localhost:3000 works fine. I just get stuck here.

Sorry, I could not post a screen shot in here.

Ruby and Rails seem to work fine. They can report the version numbers. Ruby is 1.9.3. I get to the point in "Build a simple ruby on rails application" when I try to run "rvm use 1.9.3 from the terminal. I get a host of error messages, The first is an access denied when trying to create a new directory. The directory is based on the "\usr directory/:. However, I do not see "USR" in my directories or in c:.

I'm not sure how the USR directory is supposed to be made. I followed the instructions carefully. Maybe I messed something up.

Any help you can provide would be greatly appreciated.

Dylan Shine
Dylan Shine
17,565 Points

https://rvm.io/rubies/default

Try setting your systems Ruby version to 1.9.3

William Lynch
William Lynch
5,636 Points

Thanks a bunch for responding.

When I enter ruby -v I get: ruby 1.9.3.p0 (2011-10-30 revision 33570) [x86_64_linux] (I had to retype it, so any mistakes are just typos on my part)

Also, I'm running Windows 8.1. I do not have a directory named Usr on my system, but I do have one called Users. However, none of the sub-directories match up at all. I'm glad to reinstall anything, nothing to lose at this point.

I'm a newbie with Ruby, but a long time C and SQL programmer.

For some reason, I can't paste screen shots in here. I would be glad to email them to you if it would help.

Again, thanks so much. Bill

1 Answer

Brandon Barrette
Brandon Barrette
20,485 Points

Pretty sure the instructions are for Mac OSX. If you want to run it on Windows, you need to install rails through the installer. I don't believe it uses rvm. I recommend the instructions here to get rails installed (although it sounds like you might have it working and can therefore skip any notion of rvm, etc and begin coding).

http://installrails.com/

William Lynch
William Lynch
5,636 Points

Ok, I feel like an idiot. It was working all the time. Don't know why it was asking me to do the RVM. I must have gotten the MAC instructions by mistake.

Thanks so much.