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

Cannot find rvm command

I installed ruby 1.9.3125p. I am having trouble with ruby --w command,it doesn't work , and the rvm command is not working too :(

Any suggestion will be highly appreciated. Thanks a lot in advance

8 Answers

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hi Nikunj,

Did you follow along with the video using the Rails Installer project? You don't need to run the rvm command if you did. Try following along without it and let us know how it works.

What op system are you working on? and what exactly are you trying to do?

Thank you for your concern. I am just starting ruby on rails. My system is windows 7. After installing ruby, and to start a new project, the video teaches to use the command "rvm use ruby versionname" but the cmd does not recognize the command "rvm"

Sorry I'm on a Mac. are you trying to install rails? I know with the Mac platform to check the version you would use ruby -v in the command line and to create a new "app" you would insert rails new projects/app/treebook.

and so on

Thanks a lot for your reply.

Hi Nikunj,

It's going to be tricky following along with Windows, since the videos use a UNIX-like command line .

You could try installing something like Cygwin that simulates bash, or you could install a Linux distro on a virtual machine on your Windows 7 PC.

RVM is just for mac (and linux?). There are other tools for windows, like pik that does the same thing. However, if you only have 1 version of ruby installed it's not needed. It's just for managing you various ruby installations if you have more then 1 version installed.

You can check out these pages for instructions on how to correctly install & generate your first rails app on Windows.

http://pragmaticstudio.com/blog/2010/9/23/install-rails-ruby-windows


On windows the way to start rails is to type rails s webbrick will then tell you the address it's starting on. By default you can access the rails web server webbrick on 127.0.0.1:3000.

Both the rvm and 0.0.0.0 only apply if you are working on a OS X.

If you close your command prompt, kill the process or use CTRL-Break to stop the webbrick server.