Friday, October 21, 2011

[Rails] Re: Cucumber installation problem

Try adding

gem 'ffi','1.0.9'

To your gemfile, 1.1.0 has issues.

On Oct 20, 8:37 am, Mathew Birch <li...@ruby-forum.com> wrote:
> Okay I managed to install cucumber but faced another problem when i
> tried to install cucumber-rails. My cmd shows:
>
> C:\Users\Mathew>gem install cucumber-rails
> Temporarily enhancing PATH to include DevKit...
> Building native extensions.  This could take a while...
> ERROR:  Error installing cucumber-rails:
>         ERROR: Failed to build gem native extension.
>
>         C:/Ruby192/bin/ruby.exe extconf.rb
> checking for ffi.h... no
> checking for ffi.h in /usr/local/include... no
> checking for rb_thread_blocking_region()... yes
> checking for ruby_thread_has_gvl_p()... yes
> checking for ruby_native_thread_p()... yes
> checking for rb_thread_call_with_gvl()... yes
> creating extconf.h
> creating Makefile
>
> make
> C:/Ruby192/bin/ruby -e "puts 'EXPORTS', 'Init_ffi_c'"  >
> ffi_c-i386-mingw32.def
> gcc -I. -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32
> -I/C/Ruby192/include/ruby-1
> .9.1/ruby/backward -I/C/Ruby192/include/ruby-1.9.1 -I.
> -DRUBY_EXTCONF_H=\"extcon
> f.h\"    -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses
> -Wpointer-arith -
> Wwrite-strings -Wno-missing-field-initializers -Wno-long-long
> -Wno-declaration-a
> fter-statement   -o AbstractMemory.o -c AbstractMemory.c
> In file included from AbstractMemory.c:28:0:
> compat.h:65:20: warning: extra tokens at end of #ifndef directive
> compat.h:69:24: warning: extra tokens at end of #ifndef directive
> In file included from AbstractMemory.h:29:0,
>                  from AbstractMemory.c:29:
> Types.h:68:17: fatal error: ffi.h: No such file or directory
> compilation terminated.
> make: *** [AbstractMemory.o] Error 1
>
> Gem files will remain installed in
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/ffi-1.0.1
> 0 for inspection.
> Results logged to
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/ffi1.0.10/ext/ffi_c/gem_make.out
>
> --
> Posted viahttp://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate