ERROR: Failed to build gem native extension. while executing "bundle install" command

1,991 views
Skip to first unread message

Pramod Tekula

unread,
Dec 3, 2015, 6:52:51 PM12/3/15
to RubyInstaller

C:\capybara_demo>bundle install

Fetching gem metadata from https://rubygems.org/.........

Fetching version metadata from https://rubygems.org/..

Resolving dependencies...

Installing builder 3.2.2

Using bundler 1.10.6

Installing mime-types-data 3.2015.1120

Installing mime-types 3.0

Installing mini_portile2 2.0.0

Installing nokogiri 1.6.7

Installing rack 1.6.4

Installing rack-test 0.6.3

Installing xpath 2.0.0

Installing capybara 2.5.0

Installing json 1.8.3 with native extensions

Installing capybara-webkit 1.7.1 with native extensions

 

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

 

    C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20151203-6572-10tfuei.rb extconf.rb

*** extconf.rb failed ***

Could not create Makefile due to some reason, probably lack of necessary

libraries and/or headers.  Check the mkmf.log file for more details.  You may

need configuration options.

 

Provided configuration options:

        --with-opt-dir

        --without-opt-dir

        --with-opt-include

        --without-opt-include=${opt-dir}/include

        --with-opt-lib

        --without-opt-lib=${opt-dir}/lib

        --with-make-prog

        --without-make-prog

        --srcdir=.

        --curdir

        --ruby=C:/Ruby22-x64/bin/$(RUBY_BASE_NAME)

        --with-gl-dir

        --without-gl-dir

        --with-gl-include

        --without-gl-include=${gl-dir}/include

        --with-gl-lib

        --without-gl-lib=${gl-dir}/lib

        --with-zlib-dir

        --without-zlib-dir

        --with-zlib-include

        --without-zlib-include=${zlib-dir}/include

        --with-zlib-lib

        --without-zlib-lib=${zlib-dir}/lib

Command 'qmake ' not available

 

extconf failed, exit code 1

 

Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/capyba

ra-webkit-1.7.1 for inspection.

Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0

/capybara-webkit-1.7.1/gem_make.out

An error occurred while installing capybara-webkit (1.7.1), and Bundler cannot

continue.

Make sure that `gem install capybara-webkit -v '1.7.1'` succeeds before

bundling.



Can someone help me on this...

Justin Baker

unread,
Dec 4, 2015, 9:32:23 PM12/4/15
to RubyInstaller
Hi! Welcome to the RubyInstaller mailing group.

It looks like there is some additional setup with `capybara-webkit`. Have you take a look at this?

It should help you solve your problem.

Justin
Reply all
Reply to author
Forward
0 new messages