0

当我跑

 abhay$ gem install capybara-webkit

我收到以下错误消息。

 Building native extensions.  This could take a while...
 ERROR:  Error installing capybara-webkit:
ERROR: Failed to build gem native extension.

    /Users/abhay/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb


  Gem files will remain installed in /Users/abhay/.rvm/gems/ruby-1.9.2-p180/gems/capybara-     webkit-0.12.1 for inspection.
  Results logged to /Users/abhay/.rvm/gems/ruby-1.9.2-p180/gems/capybara-webkit-0.12.1/./gem_make.out
4

2 回答 2

1

我必须安装 QT链接,因为 capybara-webkit gem 使用它来编译和安装。

于 2012-07-25T06:00:35.490 回答
0

这听起来很像这个https://stackoverflow.com/a/11622193的副本

我发现这个答案中的解决方案效果很好:

https://stackoverflow.com/a/11622193/3088748

于 2014-07-21T10:40:35.913 回答