Can't install capybara-webkit in Windows Serve

2019-07-26 16:49发布

问题:

I need to run tests in Jenkins which is installed on Windows Server 2008 R2 x64, so the advices to run bundle install without "test" section do not fit here.

I NEED to have capybara-webkit be installed in Windows. The error message I'm getting, includes, as always, native extensions:

Installing capybara-webkit (0.12.0) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        C:/Ruby193/bin/ruby.exe extconf.rb


Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/capybara-webkit-0.12.0 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/capybara-webkit-0.12.0/./gem_make.out

Native QT components seem to be installed (I have downloaded 1,7 GB (!!!) distribution package and installed it). Enhancing PATH does not help.

DevKit is installed too.

回答1:

What's the error message?

You need all the right versions of QT, mingw, your path updated, and then to run everything here https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit in the right way... Make sure you're in the pkg directory at the end.

See capybara-webkit (0.8.0) failed to build on window 7