cucumber-attic / gherkin2

A fast Gherkin parser in Ragel (The parser behind Cucumber)
MIT License
382 stars 221 forks source link

gherkin 2.12.2 failing to build in Windows #293

Closed apennebaker closed 8 years ago

apennebaker commented 10 years ago

I'm trying to install gherkin in Windows so that I can use cucumber. But gherkin is having trouble building.

Trace:

C:\>gem install gherkin -v '2.12.2'
Building native extensions.  This could take a while...
ERROR:  Error installing gherkin:
        ERROR: Failed to build gem native extension.

    C:/bin/ruby200/bin/ruby.exe extconf.rb
checking for main() in -lc... no
creating Makefile

make "DESTDIR="
generating gherkin_lexer_ar-x64-mingw32.def
compiling gherkin_lexer_ar.c
In file included from c:/bin/ruby200/include/ruby-2.0.0/ruby.h:33,
                 from ragel/i18n/ar.c.rl:2:
c:/bin/ruby200/include/ruby-2.0.0/ruby/ruby.h: In function 'rb_float_value':
c:/bin/ruby200/include/ruby-2.0.0/ruby/ruby.h:767: warning: integer constant is
too large for 'long' type
c:/bin/ruby200/include/ruby-2.0.0/ruby/ruby.h: In function 'rb_float_new':
c:/bin/ruby200/include/ruby-2.0.0/ruby/ruby.h:805: warning: integer constant is
too large for 'long' type
c:/bin/ruby200/include/ruby-2.0.0/ruby/ruby.h:812: warning: integer constant is
too large for 'long' type
linking shared-object gherkin_lexer_ar.so
      0 [main] rm 4204 open_stackdumpfile: Dumping stack trace to rm.exe.stackdu
mp
make: [gherkin_lexer_ar.so] Error 5 (ignored)
gherkin_lexer_ar.o: In function `unindent':
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:265: undefined reference to `ruby_snprintf'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:266: undefined reference to `rb_str_new_cstr'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:266: undefined reference to `rb_reg_regcomp'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:267: undefined reference to `rb_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:267: undefined reference to `rb_intern2'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:267: undefined reference to `rb_funcall'
gherkin_lexer_ar.o: In function `store_kw_con':
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:280: undefined reference to `rb_utf8_encoding'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:280: undefined reference to `rb_enc_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:281: undefined reference to `rb_utf8_encoding'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:281: undefined reference to `rb_enc_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:282: undefined reference to `rb_intern2'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:282: undefined reference to `rb_funcall'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:283: undefined reference to `rb_intern'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:283: undefined reference to `rb_funcall'
gherkin_lexer_ar.o: In function `store_multiline_kw_con':
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:295: undefined reference to `rb_utf8_encoding'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:295: undefined reference to `rb_enc_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:296: undefined reference to `rb_utf8_encoding'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:296: undefined reference to `rb_enc_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:300: undefined reference to `rb_str_split'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:302: undefined reference to `rb_intern2'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:302: undefined reference to `rb_funcall'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:303: undefined reference to `rb_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:303: undefined reference to `rb_ary_join'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:307: undefined reference to `rb_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:309: undefined reference to `rb_intern2'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:309: undefined reference to `rb_funcall'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:311: undefined reference to `rb_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:313: undefined reference to `rb_intern2'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:313: undefined reference to `rb_funcall'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:314: undefined reference to `rb_intern2'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:314: undefined reference to `rb_funcall'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:315: undefined reference to `rb_intern'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:315: undefined reference to `rb_funcall'
gherkin_lexer_ar.o: In function `store_attr':
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:323: undefined reference to `rb_utf8_encoding'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:323: undefined reference to `rb_enc_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:324: undefined reference to `rb_intern'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:324: undefined reference to `rb_funcall'
gherkin_lexer_ar.o: In function `store_docstring_content':
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:335: undefined reference to `rb_utf8_encoding'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:335: undefined reference to `rb_enc_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:336: undefined reference to `rb_utf8_encoding'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:336: undefined reference to `rb_enc_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:340: undefined reference to `rb_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:340: undefined reference to `rb_reg_regcomp'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:341: undefined reference to `rb_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:341: undefined reference to `rb_reg_regcomp'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:342: undefined reference to `rb_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:342: undefined reference to `rb_intern2'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:342: undefined reference to `rb_funcall'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:343: undefined reference to `rb_intern2'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:343: undefined reference to `rb_funcall'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:344: undefined reference to `rb_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:344: undefined reference to `rb_intern2'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:344: undefined reference to `rb_funcall'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:345: undefined reference to `rb_intern2'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:345: undefined reference to `rb_funcall'
gherkin_lexer_ar.o: In function `raise_lexer_error':
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:350: undefined reference to `rb_raise'
gherkin_lexer_ar.o: In function `CLexer_alloc':
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:372: undefined reference to `ruby_xmalloc'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:375: undefined reference to `rb_data_object_alloc'
gherkin_lexer_ar.o: In function `CLexer_init':
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:383: undefined reference to `rb_iv_set'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:386: undefined reference to `rb_check_type'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:386: undefined reference to `rb_eArgError'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:386: undefined reference to `rb_raise'
gherkin_lexer_ar.o: In function `CLexer_scan':
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:397: undefined reference to `rb_iv_get'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:401: undefined reference to `rb_check_type'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:401: undefined reference to `rb_eArgError'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:401: undefined reference to `rb_raise'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:403: undefined reference to `rb_str_dup'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:405: undefined reference to `rb_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:405: undefined reference to `rb_str_append'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:410: undefined reference to `rb_raise'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:182: undefined reference to `rb_ary_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:191: undefined reference to `rb_utf8_encoding'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:191: undefined reference to `rb_enc_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:192: undefined reference to `rb_intern2'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:192: undefined reference to `rb_funcall'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:193: undefined reference to `rb_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:193: undefined reference to `rb_reg_regcomp'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:194: undefined reference to `rb_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:194: undefined reference to `rb_reg_regcomp'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:195: undefined reference to `rb_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:195: undefined reference to `rb_reg_regcomp'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:196: undefined reference to `rb_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:196: undefined reference to `rb_intern2'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:196: undefined reference to `rb_funcall'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:197: undefined reference to `rb_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:197: undefined reference to `rb_intern2'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:197: undefined reference to `rb_funcall'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:198: undefined reference to `rb_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:198: undefined reference to `rb_intern2'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:198: undefined reference to `rb_funcall'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:200: undefined reference to `rb_ary_push'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:204: undefined reference to `rb_intern2'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:204: undefined reference to `rb_funcall'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:225: undefined reference to `rb_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:248: undefined reference to `rb_intern2'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:248: undefined reference to `rb_funcall'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:225: undefined reference to `rb_str_new'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:248: undefined reference to `rb_intern2'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:248: undefined reference to `rb_funcall'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:435: undefined reference to `rb_raise'
gherkin_lexer_ar.o: In function `Init_gherkin_lexer_ar':
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:444: undefined reference to `rb_define_module'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:445: undefined reference to `rb_define_module_under'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:446: undefined reference to `rb_intern2'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:446: undefined reference to `rb_const_get'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:448: undefined reference to `rb_define_module_under'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:449: undefined reference to `rb_cObject'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:449: undefined reference to `rb_define_class_under'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:450: undefined reference to `rb_define_alloc_func'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:451: undefined reference to `rb_define_method'
C:\bin\ruby200\lib\ruby\gems\2.0.0\gems\gherkin-2.12.2\ext\gherkin_lexer_ar/rage
l/i18n/ar.c.rl:452: undefined reference to `rb_define_method'
collect2: ld returned 1 exit status
make: *** [gherkin_lexer_ar.so] Error 1

Gem files will remain installed in C:/bin/ruby200/lib/ruby/gems/2.0.0/gems/gherk
in-2.12.2 for inspection.
Results logged to C:/bin/ruby200/lib/ruby/gems/2.0.0/gems/gherkin-2.12.2/ext/ghe
rkin_lexer_ar/gem_make.out

System:

mscharley commented 10 years ago

See cucumber/gherkin#273. You need to install with --platform=ruby and then apply the patch in cucumber/gherkin#291 to get gherkin running on x64 windows. Note that x64 windows is currently apparently completely unsupported by gherkin, however I've not had any issues using this setup so far.

kramerdog commented 10 years ago

Hi @mscharley

Coincidence that you have just posted on this thread so soon after I posted on the cucumber/gherkin#273 thread?

Maybe you have a suggestion how to use your solution in a monkey patch? It works, I just want to deploy it in a more sustainable way. Due to my clear RoR shortcomings I cant work out how to implement the override!

Thanks for all your efforts on this by the way!

mattwynne commented 8 years ago

Cucumber-Ruby v2.1 now uses the new Gherkin3 parser. Please give it a try!