当前位置: 代码迷 >> Ruby/Rails >> rails安装出错怎么处理
  详细解决方案

rails安装出错怎么处理

热度:180   发布时间:2016-05-06 04:23:31.0
rails安装出错怎么办
请教一下各位高手

我的rails安装出这个错怎么解决

C:\Windows\System32>gem install rails
Building native extensions. This could take a while...
ERROR: Error installing rails:
  ERROR: Failed to build gem native extension.

  D:/Ruby/bin/ruby.exe extconf.rb
creating Makefile

make
D:/Ruby/bin/ruby -e "puts 'EXPORTS', 'Init_parser'" > parser-i386-mingw32.def
gcc -I. -ID:/Ruby/include/ruby-1.9.1/i386-mingw32 -I/D/Ruby/include/ruby-1.9.1/ruby/backward -I/D/Ruby/include/ruby-1.9.1 -I. -O3 -g -Wextra -Wno-unused-param
eter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -O3 -Wall -o parser.o -c parser.c
cc1.exe: error: unrecognized command line option "-Wno-missing-field-initializers"
make: *** [parser.o] Error 1


Gem files will remain installed in D:/Ruby/lib/ruby/gems/1.9.1/gems/json-1.6.3 for inspection.
Results logged to D:/Ruby/lib/ruby/gems/1.9.1/gems/json-1.6.3/ext/json/ext/parser/gem_make.out


------解决方案--------------------
windows屏了官方ip, 用代理, 或下载安装。
  相关解决方案
本站暂不开放注册!
内测阶段只得通过邀请码进行注册!
 
  • 最近登录:Sat Jul 22 18:50:13 CST 2017
  • 最近登录:Sat Jul 22 18:50:13 CST 2017
  • 最近登录:Sat Jul 22 18:50:13 CST 2017
  • 最近登录:Sat Jul 22 18:50:13 CST 2017
  • 最近登录:Sat Jul 22 18:50:13 CST 2017