首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > Ruby Rails >

rails安装出错怎么处理

2012-03-07 
rails安装出错怎么办请教一下各位高手我的rails安装出这个错怎么解决C:\Windows\System32gem install rai

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, 用代理, 或下载安装。

热点排行