2014-05-08 66 views
0

我想創建一個示例應用程序,這就是發生了什麼。我想知道重新安裝會更好嗎?無法創建新的導軌應用程序

**這是我所得到的,當我運行

$ rails new sample_app 

有此以前更加明顯爲好,請大家幫幫忙,謝謝**

make: *** [generator.o] Error 1 


Gem files will remain installed in c:/Ruby200/lib/ruby/gems/2.0.0/gems/json-1.8. 
1 for inspection. 
Results logged to c:/Ruby200/lib/ruby/gems/2.0.0/gems/json-1.8.1/ext/json/ext/ge 
nerator/gem_make.out 
An error occurred while installing json (1.8.1), and Bundler cannot continue. 
Make sure that `gem install json -v '1.8.1'` succeeds before bundling. 

然後當我運行 gem install json -v '1.8.1'我收到這個

`c:/Ruby200/bin/ruby.exe extconf.rb creat荷蘭國際集團的Makefile

`make "DESTDIR=`" 
generating generator-i386-mingw32.def 
compiling generator.c 
In file included from c:/Ruby200/include/ruby-2.0.0/ruby.h:33:0, 
       from ../fbuffer/fbuffer.h:5, 
       from generator.c:1: 
c:/Ruby200/include/ruby-2.0.0/ruby/ruby.h:125:14: error: size of array 'ruby_check_sizeof_voidp' is negative 
In file included from c:/Ruby200/include/ruby-2.0.0/ruby.h:33:0, 
       from ../fbuffer/fbuffer.h:5, 
       from generator.c:1: 
c:/Ruby200/include/ruby-2.0.0/ruby/ruby.h: In function 'rb_float_value': 
c:/Ruby200/include/ruby-2.0.0/ruby/ruby.h:826:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
c:/Ruby200/include/ruby-2.0.0/ruby/ruby.h: In function 'rb_num2char_inline': 
c:/Ruby200/include/ruby-2.0.0/ruby/ruby.h:1214:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
c:/Ruby200/include/ruby-2.0.0/ruby/ruby.h:1214:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
c:/Ruby200/include/ruby-2.0.0/ruby/ruby.h:1214:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
c:/Ruby200/include/ruby-2.0.0/ruby/ruby.h:1215:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
c:/Ruby200/include/ruby-2.0.0/ruby/ruby.h:1215:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
c:/Ruby200/include/ruby-2.0.0/ruby/ruby.h:1215:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
c:/Ruby200/include/ruby-2.0.0/ruby/ruby.h: In function 'rb_class_of': 
c:/Ruby200/include/ruby-2.0.0/ruby/ruby.h:1515:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
c:/Ruby200/include/ruby-2.0.0/ruby/ruby.h: In function 'rb_type': 
c:/Ruby200/include/ruby-2.0.0/ruby/ruby.h:1532:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
In file included from generator.c:1:0: 
../fbuffer/fbuffer.h: In function 'fbuffer_append_str': 
../fbuffer/fbuffer.h:118:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
../fbuffer/fbuffer.h:118:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
../fbuffer/fbuffer.h:118:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'convert_UTF8_to_JSON_ASCII': 
generator.c:129:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:129:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:129:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:130:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:130:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:130:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'convert_UTF8_to_JSON': 
generator.c:227:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:227:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:227:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:228:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:228:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:228:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'mHash_to_json': 
generator.c:330:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'mArray_to_json': 
generator.c:342:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'mFixnum_to_json': 
generator.c:352:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'mBignum_to_json': 
generator.c:362:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'mFloat_to_json': 
generator.c:372:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'mString_to_json': 
generator.c:394:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'mTrueClass_to_json': 
generator.c:449:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'mFalseClass_to_json': 
generator.c:459:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'mNilClass_to_json': 
generator.c:469:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_configure': 
generator.c:524:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:532:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:532:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:532:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:533:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:533:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:533:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:540:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:540:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:540:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:541:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:541:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:541:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:548:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:548:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:548:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:549:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:549:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:549:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:556:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:556:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:556:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:557:36: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:557:36: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:557:36: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:564:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:564:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:564:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:565:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:565:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:565:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'set_state_ivars': 
generator.c:613:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:613:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:613:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:615:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:615:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:615:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_to_h': 
generator.c:630:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'generate_json_object': 
generator.c:700:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:700:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:700:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'generate_json_array': 
generator.c:746:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:746:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:746:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_prepare_buffer': 
generator.c:860:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_partial_generate': 
generator.c:890:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'isArrayOrObject': 
generator.c:902:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:902:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:902:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:903:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:903:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:903:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_generate': 
generator.c:920:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_initialize': 
generator.c:950:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_init_copy': 
generator.c:968:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:969:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_indent': 
generator.c:1012:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_indent_set': 
generator.c:1024:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1026:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1026:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1026:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1035:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1035:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1035:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_space': 
generator.c:1049:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_space_set': 
generator.c:1062:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1064:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1064:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1064:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1073:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1073:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1073:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_space_before': 
generator.c:1086:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_space_before_set': 
generator.c:1098:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1100:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1100:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1100:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1109:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1109:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1109:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_object_nl': 
generator.c:1123:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_object_nl_set': 
generator.c:1136:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1138:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1138:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1138:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1146:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1146:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1146:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_array_nl': 
generator.c:1159:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_array_nl_set': 
generator.c:1171:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1173:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1173:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1173:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1181:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1181:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c:1181:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_check_circular_p': 
generator.c:1196:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_max_nesting': 
generator.c:1208:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_max_nesting_set': 
generator.c:1220:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_allow_nan_p': 
generator.c:1233:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_ascii_only_p': 
generator.c:1245:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_quirks_mode_p': 
generator.c:1256:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_quirks_mode_set': 
generator.c:1267:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_depth': 
generator.c:1279:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_depth_set': 
generator.c:1291:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_buffer_initial_length': 
generator.c:1304:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
generator.c: In function 'cState_buffer_initial_length_set': 
generator.c:1317:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 

    make: *** [generator.o] Error 1 
+0

你可以添加的C'的內容:/ Ruby200/lib目錄/ ruby/gems/2.0.0/gems/json-1.8.1/ext/json/ext/ge nerator/gem_make.out'來編輯你的問題?這可能會包含實際的構建錯誤(您可能是谷歌)。 –

+0

剛發佈,謝謝! –

+0

重裝會更好 –

回答

0

請升級到更高版本RubyGems的2.0(2.0.14)

gem update --system 2.0.14 

這個工作我的Windows機器上

+0

試過這個,但它沒有解決問題,謝謝你的幫助 –

相關問題