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 Installing a Ruby Development Environment Installing a Ruby Development Environment Installing Ruby on Windows

Error in installing rails

This error shows up in command prompt when installing rails on windows. gem install rails ( other this have successfully installed).

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

current directory: C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/nio4r-1.2.1/ext/ni

o4r C:/Ruby23-x64/bin/ruby.exe -r ./siteconf20160716-1524-1jnnhod.rb extconf.rb Invalid argument - C:/Ruby23-x64/bin/ruby.exe -r ./siteconf20160716-1524-1jnnhod .rb extconf.rb 2>&1

Gem files will remain installed in C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/nio4r- 1.2.1 for inspection. Results logged to C:/Ruby23-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0 /nio4r-1.2.1/gem_make.out

1 Answer

did you use the keyword 'sudo' ?

i.e. sudo gem install ... ...

???