【发布时间】:2019-03-10 16:41:04
【问题描述】:
我的配置是 MAC Mojave v10.14。
我尝试安装需要 qt5.5 的 gem Capybara-webkit -v '1.15.0',但是 qt5.5 已从自制软件中删除,并且与 Xcode v10 不兼容。
我试试这个:
- 卸载 Xcode v10
- 安装 Xcode 9.4.1,在 developer.apple.com/ 中找到
- 安装qt5.5,我在qt.io/的存档里找到了
- 运行包
但它失败了,我的错误在于 gem capybara-webkit -v '1.15.0':
Fetching capybara-webkit 1.15.0
Installing capybara-webkit 1.15.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/Users/thomas/.rbenv/versions/2.4.4/lib/ruby/gems/2.4.0/gems/capybara-
webkit-1.15.0
/Users/thomas/.rbenv/versions/2.4.4/bin/ruby -r ./siteconf20181005-763-1bppnfh.rb extconf.rb
Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.
*** 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=/Users/thomas/.rbenv/versions/2.4.4/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 ' failed
extconf failed, exit code 1
Gem files will remain installed in
/Users/thomas/.rbenv/versions/2.4.4/lib/ruby/gems/2.4.0/gems/capybara-webkit-1.15.0 for inspection.
Results logged to /Users/thomas/.rbenv/versions/2.4.4/lib/ruby/gems/2.4.0/extensions/x86_64- darwin-18/2.4.0-static/capybara-webkit-1.15.0/gem_make.out
An error occurred while installing capybara-webkit (1.15.0), and Bundler
cannot continue.
Make sure that `gem install capybara-webkit -v '1.15.0' --source
'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
capybara-webkit
接下来,我做了:
sudo xcodebuild -license agree
但错误仍然存在...
感谢您的帮助!
【问题讨论】:
-
请发布您的解决方案作为您问题的答案。然后,您可以接受自己的答案。这样一来,如果人们有类似的问题,就可以更轻松地进行搜索。
标签: macos qt rubygems capybara-webkit