在Windows 7上安装capybara 0.8.0时出错

时间:2012-07-31 11:02:01

标签: ruby-on-rails windows-7 capybara-webkit

我使用Ruby时很新,我需要在Windows 7上安装rails服务器,以便在IE中测试一些应用程序。

我做的一切都很好(我希望),但现在当我尝试在cmd上运行bundle install时,我收到此错误:

An error occured while installing capybara-webkit (0.8.0), and Bundler cannot co
ntinue.
Make sure that `gem install capybara-webkit -v '0.8.0'` succeeds before bundling
.

如何在Windows 7上安装capybara-webkit?

我还尝试按照Stackoverflow上的其他说明运行Bundle而不进行测试,但它不起作用。

我希望你能提供帮助。

我无法在Ubuntu上构建虚拟机,所以不建议我这样做,而且我没有Mac。


安装capybara-webkit -v'0.8.0'时出错:

暂时增强PATH以包含DevKit ...... 构建原生扩展。这可能需要一段时间...... 错误:安装capybara-webkit时出错:         错误:无法构建gem原生扩展。

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

其中:没有qmake(。; C:\ Ruby \ DevKit \ bin; C:\ Ruby \ DevKit \ mingw \ bin; C:\ Program Fil es \ Common Files \ Microsoft Shared \ Windows Live; C:\ Program Files(x86)\ Common File s \ Microsoft Shared \ Windows Live; C:\ Windows \ system32; C:\ Windows; C:\ Windows \ System 32 \ Wbem; C:\ Windows \ System32 \ WindowsPowerShell \ v1.0 \; C:\ Program Files \ WIDCOMM \ Blu etooth Software \; C:\ Program Files \ WIDCOMM \ Bluetooth Software \ syswow64; C:\ Program  文件(x86)\ ATI Technologies \ ATI.ACE \ Core-Static; C:\ Program Files \ Broadcom \ Broa dcom 802.11网络适配器; C:\ Program Files(x86)\ Windows Live \ Shared; C:\ Progra m Files \ TortoiseSVN \ bin; c:\ Program Files(x86)\ Microsoft SQL Server \ 100 \ Tools \ Bi nn \; c:\ Program Files \ Microsoft SQL Server \ 100 \ Tools \ Binn \; c:\ Program Files \ Micro 软SQL Server \ 100 \ DTS \ Binn \; c:\ Program Files(x86)\ Microsoft SQL Server \ 100 \ To ols \ Binn \ VSShell \ Common7 \ IDE \; c:\ Program Files(x86)\ Microsoft SQL Server \ 100 \ DT S \ Binn \; C:\ Program Files(x86)\ QuickTime \ QTSystem \; c:\ Program Files(x86)\ Micros ASP.NET \ ASP.NET网页\ v1.0 \; C:\ Program Files(x86)\ VisualSVN \ bin:C:\ Wind ows \ Microsoft.NET \ Framework \ v3.5; C:\ Program Files \ TortoiseGit \ bin; C:\ Ruby \ bin; C: \ Ruby193 \ BIN) 其中:没有qmake-qt4(。; C:\ Ruby \ DevKit \ bin; C:\ Ruby \ DevKit \ mingw \ bin; C:\ Program  Files \ Common Files \ Microsoft Shared \ Windows Live; C:\ Program Files(x86)\ Common Files \ Microsoft Shared \ Windows Live; C:\ Windows \ system32; C:\ Windows; C:\ Windows \ Sy stem32 \ Wbem; C:\ Windows \ System32 \ WindowsPowerShell \ v1.0 \; C:\ Program Files \ WIDCOMM \ Bluetooth Software \; C:\ Program Files \ WIDCOMM \ Bluetooth Software \ syswow64; C:\ Pro gram文件(x86)\ ATI Technologies \ ATI.ACE \ Core-Static; C:\ Program Files \ Broadcom \ Broadcom 802.11网络适配器; C:\ Program Files(x86)\ Windows Live \ Shared; C:\ Pr ogram Files \ TortoiseSVN \ bin; c:\ Program Files(x86)\ Microsoft SQL Server \ 100 \ Tool s \ Binn \; c:\ Program Files \ Microsoft SQL Server \ 100 \ Tools \ Binn \; c:\ Program Files \ M icrosoft SQL Server \ 100 \ DTS \ Binn \; c:\ Program Files(x86)\ Microsoft SQL Server \ 10 0 \ Tools \ Binn \ VSShell \ Common7 \ IDE \; c:\ Program Files(x86)\ Microsoft SQL Server \ 10 0 \ DTS \ Binn \; C:\ Program Files(x86)\ QuickTime \ QTSystem \; c:\ Program Files(x86)\ Mi crosoft ASP.NET \ ASP.NET网页\ v1.0 \; C:\ Program Files(x86)\ VisualSVN \ bin:C:\ Windows \ Microsoft.NET \ Framework \ v3.5; C:\ Program Files \ TortoiseGit \ bin; C:\ Ruby \ bi N; C:\ Ruby193 \ bin)中

Gem文件将保留在C:/Ruby/lib/ruby/gems/1.9.1/gems/capybara-web中 kit-0.8.0用于检查。 结果记录到C:/Ruby/lib/ruby/gems/1.9.1/gems/capybara-webkit-0.8.0 /./ gem_m ake.out

0 个答案:

没有答案