Help getting started

Running windows 8. Uninstalled older version of rails and installed the most recent version using railsinstaller. Also installed DevKit. When I do a bundle install, however, I get the following:

c:\RubymineProjects\untitled>bundle install Fetching gem metadata from https://rubygems.org/… Fetching version metadata from https://rubygems.org/… Resolving dependencies... Using rake 10.4.2 Using i18n 0.7.0

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    C:/RailsInstaller/Ruby22/bin/ruby.exe -r ./siteconf20150419-17152-1ik7eap.rb extconf.rb creating Makefile

make "DESTDIR=" clean

make "DESTDIR=" generating generator-i386-mingw32.def compiling generator.c In file included from c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby.h:33:0,                  from ../fbuffer/fbuffer.h:5,                  from generator.c:1: c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h:111:14: error: size of a rray 'ruby_check_sizeof_voidp' is negative In file included from c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby.h:33:0,                  from ../fbuffer/fbuffer.h:5,                  from generator.c:1: c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h: In function 'rb_obj_fre eze_inline': c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h:1156:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h:1157:2: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h:1158:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h:1158:27: warning: cast t o pointer from integer of different size [-Wint-to-pointer-cast] c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h: In function 'rb_data_ob ject_get': c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h:1192:13: warning: cast t o pointer from integer of different size [-Wint-to-pointer-cast] c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h: In function 'rb_obj_wri tten': c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h:1271:10: warning: cast t o pointer from integer of different size [-Wint-to-pointer-cast] c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h:1271:34: warning: cast t o pointer from integer of different size [-Wint-to-pointer-cast] c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h: In function 'rb_num2cha r_inline': c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h:1344:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h:1344:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h:1344:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h:1344:36: warning: cast t o pointer from integer of different size [-Wint-to-pointer-cast] c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h:1344:36: warning: cast t o pointer from integer of different size [-Wint-to-pointer-cast] c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h:1344:36: warning: cast t o pointer from integer of different size [-Wint-to-pointer-cast] c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h:1345:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h:1345:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h:1345:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h: In function 'rb_class_o f': c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h:1670:12: warning: cast t o pointer from integer of different size [-Wint-to-pointer-cast] c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h: In function 'rb_type': c:/RailsInstaller/Ruby22/include/ruby-2.2.0/ruby/ruby.h:1687:12: warning: cast t o 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:127:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ../fbuffer/fbuffer.h:127:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ../fbuffer/fbuffer.h:127: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 [-Wi nt-to-pointer-cast] generator.c:129:35: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:129:35: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:130:38: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:130:38: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:130:38: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c: In function 'convert_UTF8_to_JSON': generator.c:227:23: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:227:23: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:227:23: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:228:25: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:228:25: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:228:25: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c: In function 'cState_configure': generator.c:559:15: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:559:15: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:559:15: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:560:34: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:560:34: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:560:34: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:567:15: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:567:15: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:567:15: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:568:33: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:568:33: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:568:33: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:575:15: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:575:15: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:575:15: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:576:40: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:576:40: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:576:40: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:583:15: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:583:15: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:583:15: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:584:36: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:584:36: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:584:36: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:591:15: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:591:15: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:591:15: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:592:37: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:592:37: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:592:37: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c: In function 'set_state_ivars': generator.c:640:21: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:640:21: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:640:21: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:642:24: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:642:24: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:642:24: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c: In function 'generate_json_object': generator.c:727:20: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:727:20: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:727:20: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c: In function 'generate_json_array': generator.c:773:20: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:773:20: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:773:20: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c: In function 'isArrayOrObject': generator.c:930:23: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:930:23: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:930:23: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:931:15: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:931:15: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c:931:15: warning: cast to pointer from integer of different size [-Wi nt-to-pointer-cast] generator.c: In function 'cState_indent_set': generator.c:1055:11: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1055:11: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1055:11: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1064:32: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1064:32: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1064:32: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c: In function 'cState_space_set': generator.c:1093:11: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1093:11: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1093:11: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1102:31: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1102:31: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1102:31: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c: In function 'cState_space_before_set': generator.c:1129:11: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1129:11: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1129:11: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1138:38: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1138:38: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1138:38: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c: In function 'cState_object_nl_set': generator.c:1167:11: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1167:11: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1167:11: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1175:35: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1175:35: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1175:35: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c: In function 'cState_array_nl_set': generator.c:1202:11: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1202:11: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1202:11: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1210:34: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1210:34: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] generator.c:1210:34: warning: cast to pointer from integer of different size [-W int-to-pointer-cast] make: *** [generator.o] Error 1

make failed, exit code 2

Gem files will remain installed in C:/RailsInstaller/Ruby22/lib/ruby/gems/2.2.0/ gems/json-1.8.2 for inspection. Results logged to C:/RailsInstaller/Ruby22/lib/ruby/gems/2.2.0/extensions/x86-mi ngw32/2.2.0/json-1.8.2/gem_make.out An error occurred while installing json (1.8.2), and Bundler cannot continue. Make sure that `gem install json -v '1.8.2'` succeeds before bundling.

Extra info:

Tried gem install json -v 1,8,2 as suggested as well, same error message.

Also: c:\\RubymineProjects\untitled>ruby -v ruby 2.2.1p85 (2015-02-26 revision 49769) [i386-mingw32]

Any ideas?

try this one : gem install json -v ‘1.8.2’

在 2015年4月21日星期二 UTC+8上午10:40:11,Ruby-Forum.com User写道:

I get a basically identical error message.

Tried just 'gem install json" as well. Still same error messages. Not sure what to do since I get the same error messages when trying to install/bundle. Anyone else seen anything similar?

I always recommend not using Windows for Rails, use Mac or Linux (eg Ubuntu) instead. However since no-one seems able to help you I googled for size of array 'ruby_check_sizeof_voidp' is negative which took me straight to

which suggests you may have the wrong version of devkit installed.

It is always worth while googling for error messages.

Colin

Except even the one you linked pointed out, they WERE using the appropriate version, no one answered there either. Having the same problem myself

Except even the one you linked pointed out, they WERE using the appropriate version, no one answered there either. Having the same problem myself

Don't understand your comment, the link I posted (Why does installing Ruby on Rails generate error "size of array 'ruby_check_sizeof_voidp' is negative"? - Stack Overflow) is answered and the answer has been accepted by the OP as correct.

Colin

Colin is right about switching to Mac or Linux. If you really want to use Ruby & Rails, setup up a VM in VirtualBox. I use Linux Mint which is great for traditional Windows users. Be fearless and jump right in. Google Search is your friend.