1

我一直在按照说明在 Mac OS X 10.8 上安装 capybara-webkit。我已经下载并安装了:

  • qt-mac-opensource-4.8.5
  • qt-mac-opensource-4.8.5-debug-libs
  • Xcode 命令行工具 + 我后来安装了完整的 XCode 5.0
  • qt4 使用 brew

此顺序不需要

运行gem install capybara-webkit抛出错误

# lots of output omitted
/Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/fileutils.rb:1620:in `stat': No such file or directory - src/webkit_server (Errno::ENOENT)
    from /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/fileutils.rb:1620:in `block in fu_each_src_dest'
    from /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/fileutils.rb:1633:in `fu_each_src_dest0'
    from /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/fileutils.rb:1618:in `fu_each_src_dest'
    from /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/fileutils.rb:466:in `cp'
    from /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/capybara-webkit-1.0.0/lib/capybara_webkit_builder.rb:76:in `build'
    from /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/capybara-webkit-1.0.0/lib/capybara_webkit_builder.rb:88:in `build_all'
    from extconf.rb:2:in `<main>'


Gem files will remain installed in /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/capybara-webkit-1.0.0 for inspection.
Results logged to /Users/lenart/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/capybara-webkit-1.0.0/./gem_make.out

我试过重新安装 qt,安装 XQuartz-2.7.4,......没有运气。Github 上没有类似问题的痕迹 :(

如果它可以帮助某人找出原因,这里有一些额外的信息 - http://pastie.org/8355714

4

1 回答 1

2

回答我自己的问题感觉很愚蠢,但看起来我需要实际运行 XCode 并接受他们的条款和条件。在这样做之后运行gem install capybara-webkit工作。

于 2013-09-25T22:16:37.233 回答