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

Failed to build gem native extension.

while installing rails ( gem install rails ) this error shows up:

Building native extensions. This could take a while...

ERROR: Error installing rails: ERROR: Failed to build gem native extension.

C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20160716-3500-cejnk5.rb extconf.rb

Invalid argument - C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20160716-3500-cejnk5. rb extconf.rb 2>&1

Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/websoc ket-driver-0.6.4 for inspection.

Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0 /websocket-driver-0.6.4/gem_make.out
Marissa Richardson
Marissa Richardson
47,542 Points

Are you on a Windows machine? If you are, you should consider trying Cloud9 IDE instead. The URL is c9.io, and you can set up a rails environment very quickly. Windows has a lot of weird quirks when it comes to ruby and rails, so I'm not quite sure why you are getting an error.