首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Capybara-Webkit失败

Capybara-Webkit失败
EN

Stack Overflow用户
提问于 2017-10-19 15:32:01
回答 1查看 383关注 0票数 0

经过多次查看,即使是在StackOverflow上,我似乎仍然无法安装Capybara gem来完成我的Ruby on Rails项目,以下是我在运行时收到的错误消息

代码语言:javascript
复制
gem install capybara-webkit 

我得到的错误是

代码语言:javascript
复制
current directory: /Users/montana/.rvm/gems/ruby-2.4.1/gems/capybara-webkit-1.14.0
/Users/montana/.rvm/rubies/ruby-2.4.1/bin/ruby -r ./siteconf20171019-31585-1203ped.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
    --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/montana/.rvm/rubies/ruby-2.4.1/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 LIBS\ \+\=\ -L/usr/local/opt/libyaml/lib\ -L/usr/local/opt/readline/lib\ -L/usr/local/opt/libksba/lib\ -L/usr/local/opt/openssl@1.1/lib' failed

extconf failed, exit code 1

Gem files will remain installed in /Users/montana/.rvm/gems/ruby-2.4.1/gems/capybara-webkit-1.14.0 for inspection.
Results logged to /Users/montana/.rvm/gems/ruby-2.4.1/extensions/x86_64-darwin-17/2.4.0/capybara-webkit-1.14.0/gem_make.out

任何帮助都非常感谢,一如既往地,干杯,快乐的编码!

EN

回答 1

Stack Overflow用户

发布于 2017-10-19 16:20:51

Capybara-webkit需要一些本机扩展,并使用编译器来构建它们。

您使用的是OS X,因此在使用以下编译器之前必须接受Xcode许可协议:

代码语言:javascript
复制
sudo xcodebuild -license accept
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46824737

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档