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 trialJoel Buzzanco
Courses Plus Student 2,738 Pointsruby is not recognized as a command?
I've been trying the installation for ruby for a while now but keep having issues.
At around 2:20 in the video, after installing ruby and the devkit, you are to go in the console and to the ruby directory. MY directory for ruby is \ruby\22
Once you are in the directory, you are to type ruby dk.rb. But whenever I do this, I get an error saying that 'ruby' is not recognized as an internal or external command, operable program or batch file.
I also did the "newer workshop version" for installing ruby on windows, and got to near the end but had the exact error, that ruby is not recognized as a command.
I changed the path value in my computer to ruby 22 as it was suggested from another persons q&a for a similar issue for this video. https://teamtreehouse.com/community/i-am-having-an-issue-installing-the-ruby-devkit
but even still, I get the same error.
This is really frustrating, please help.
1 Answer
David Tonge
Courses Plus Student 45,640 Pointstry typing "ruby dk.rb init" to start. I had similar problems on my work machine that is windows. The other suggestion I have would be to add ruby to your PATH variable.
Joel Buzzanco
Courses Plus Student 2,738 PointsJoel Buzzanco
Courses Plus Student 2,738 PointsI changed my Path variable to \Ruby22\bin and it seemed to work. First I just changed the path to Ruby22 but nothing changed but when I went further into the directory to 'bin', ruby commands started working.
Thanks for the help anyways though.
I wish they would have included going into your computers environmental variables to change the path in the video, or at least in the notes or something.
David Tonge
Courses Plus Student 45,640 PointsDavid Tonge
Courses Plus Student 45,640 PointsYeah. I had a hard time setting up my work machine at first. I use a mac at home so I def remember some of the things I had problems with. I'm happy that worked out for you though.