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

MySQL and rails

I have been learning Ruby on Rails via the track.

When I got to the database section, I finally installed MySQL per the instructions.

After the install and a reboot of my computer, rails and gems is no long a valid command in cmder.

I am now getting this error when I start commander.

'MySQL' is not recognized as an internal or external command, operable program or batch file.

And these errors when I try rails or gem.

'rails' is not recognized as an internal or external command, operable program or batch file.

'gem' is not recognized as an internal or external command, operable program or batch file.

I am getting very upset about this at this point. I have re-installed ruby on rails. I even uninstalled everything and re-installed after doing registry and a windows cleanup.

Now all my projects and lessons are on hold again for the second time because of this. The only way I can get rails to run is if I uninstall MySQL, clean my registry, the re-install ruby on rails.

WTF!!!!!!

4 Answers

That is not my issue. I am following the track for Rails Development. I install everything per their videos. As soon as I install MySQL it breaks ruby on rails. I can't user the rails commands at all on cmder. The system is telling me that Rails or gem is not a command or program anymore.

I just want to get through the Track without having to go to some cloud based system or have to install thing that they haven't talked about.............

So right now I am going through the database course and as soon as I am finished I am going to Uninstall MySQL. Clean my system for the THIRD time, then go back to rails.

It sucks because I am going to need MySQL for my project later as sqlite3 isn't strong enough or robust enough for it.

Hi Scott,

I have similar experiences with this issue but it was not fun at all. :(

That's why many people suggest not to use WINDOWS, real-life developers use Apple Macbook or Ubuntu. Right now you still have option to use either Cloud9 or Nitrous Pro without installing anything on your computer. Yes it is also free.

All I have is a Windows Machine and I don't want to go out to a cloud developers site. I just need a fix for this and the treehouse staff should be aware of this problem and know how to fix it.