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

Ruby on Rails problem install json Windows 7

$ gem install json
Temporarly enhancing PATH to include DevKit....
Building native extensions. This could take a while......
ERROR: error installing json:
               ERROR: failed to build gem native extension.
C:/Ruby200-x64/bin/ruby.exe extconf.rb
creating makefile

make
generating generator-x64-ming32.def
compiling generator.c
make: x86_64-w64-ming32-gcc: Command not found
make: ***[generator.o] Error 127

Hey Tony McCabe are you trying to follow

It's generally considered poor form to make a forum post that is just a block of code.

Here a few things to include:

  • What Treehouse video (if any) are you trying to follow
  • What did you type in to get the error
  • What have you tried to fix the issue

Any time you get an error the first thing you should do is try to Google the error, give that a shot for a about 30 minutes before asking for help.

3 Answers

Google has informed me that you need to install DevKit to compile Ruby gems on Windows

Instructions for installing DevKit here: http://stackoverflow.com/questions/7780756/cannot-install-json-gem-in-rails-using-windows

P.S. - It was the 2nd link on Goolge for the search string of failed to build gem native extension json windows

Cool thanks, Sorry, but they always say talk to the genius, they have all the answers. If I was a genius I would not need you guy's.

In fact, I love Treehouse.com, because its like going to school for dirt cheap. You also have all the support from you guy's to help those who are seriously interested in chaging careers, or just trying to develop a hobby. Most importantly, I had the funds I would invest in your business. You guy's are great and very helpful. Just keep at it!