2016-11-08 44 views
6

OS X Sierra ile ve bu talimatları uyguladıktan sonra Kapibara-webkit yüklenemiyor: bulunan olmamak https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit#macos-sierra-1012Ben bundler ile Capybara-Webkit mücevher yüklemeye çalışıyorum

Ben Makefile hata içine yayınlanmaya devam . Homebrew'ı, gem sistemini güncelledim ve Xcode 8'i boş araçlarla güncelledim. Gerçekten herhangi bir yardım için minnettarım!

sudo gem install capybara-webkit PATH=/Users/caren/Qt5.5.1/5.5/clang_64/bin:$PATH gem install capybara-webkit 
Password: 
Building native extensions. This could take a while... 
ERROR: Error installing capybara-webkit: 
    ERROR: Failed to build gem native extension. 

    /Users/caren/.rbenv/versions/2.2.3/bin/ruby -r ./siteconf20161108-5610-m00680.rb extconf.rb 
*** 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/caren/.rbenv/versions/2.2.3/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 ' not available 

extconf failed, exit code 1 

Gem files will remain installed in /Users/caren/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/capybara-webkit-1.11.1 for inspection. 
Results logged to /Users/caren/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0-static/capybara-webkit-1.11.1/gem_make.out 
ERROR: Could not find a valid gem 'PATH=/Users/caren/Qt5.5.1/5.5/clang_64/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Users/caren/.nvm/versions/node/v5.4.0/bin:/Users/caren/.rbenv/shims:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/heroku/bin:/usr/local/bin:/usr/local/sbin:/usr/local/share/npm/bin:/Users/caren/.rbenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin' (>= 0) in any repository 
ERROR: Could not find a valid gem 'gem' (>= 0) in any repository 
ERROR: Could not find a valid gem 'install' (>= 0) in any repository 
ERROR: Possible alternatives: installr, instant, instana, instacli, instapi 
Building native extensions. This could take a while... 
ERROR: Error installing capybara-webkit: 
    ERROR: Failed to build gem native extension. 

    /Users/caren/.rbenv/versions/2.2.3/bin/ruby -r ./siteconf20161108-5610-97n2eh.rb extconf.rb 
*** 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/caren/.rbenv/versions/2.2.3/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 ' not available 

extconf failed, exit code 1 

Gem files will remain installed in /Users/caren/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/capybara-webkit-1.11.1 for inspection. 
Results logged to /Users/caren/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0-static/capybara-webkit-1.11.1/gem_make.out 
+0

QT'yi nasıl yüklediniz? – fabersky

+0

çalışıyor olmalısınız 'PATH =/Kullanıcılar/caren/Qt5.5.1/5.5/clang_64/bin: $ PATH gem install capybara-webkit' değil gem yüklemek capybara-webkit PATH =/Kullanıcılar/caren/Qt5.5.1/5.5/clang_64/bin: $ PATH gem install capybara-webkit' ve/ne olursa olsun hata mesajı belirtilen mkmf.log bakmak başarısız olursa –

+1

http://superuser.com/questions/256232/how -can-i-get-qmake-on-mac-os-x –

cevap

9

şu (Homebrew kullanarak) benim için hile yaptı:

brew install qt5 --with-qtwebkit 
brew link --force qt5 
gem install capybara-webkit 

Not: Bu ilk adımı yüklemek için bir süre alacaktır ve Xcode yüklü olması gerekir.

+1

Teşekkürler Mike! Adımlarını denedin ve benim için çalıştım. :) –

+0

Teşekkürler dostum! Derlemek/yapmak için uzun bir zaman aldı ama işe yaradı. Birçok çok Kudos! :) – Autodidact

+0

, bu ilk komuttan çok uzun zaman almıyor. Tüm 3 komutan bir charmed gibi çalıştı! teşekkürler dostum!! – LuAndre