[英]Capybara-Webkit fails
經過仔細查看,即使在StackOverflow上,我似乎仍然無法安裝Capybara gem來完成Ruby on Rails項目,這是我在運行時收到的錯誤消息
gem install capybara-webkit
我得到的錯誤是
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
與往常一樣,任何幫助都將不勝感激,並祝您編程愉快!
Capybara-webkit需要一些本機擴展,並且確實使用編譯器來構建它們。
您正在使用OS X,因此在將編譯器用於以下用途之前,您必須接受Xcode許可協議:
sudo xcodebuild -license accept
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.