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
It could be many things as Windows is quite finicky to run Rails in. Off the top of my head:
gem install rails -v 4.1.8
(which works on my windows setup) or other specific versions and see if one works.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.