2016-11-08 1 views
6

Ich habe versucht zu installieren, das Capybara-Webkit Juwel mit Bündler und nach dem folgenden Anweisungen installieren: https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit#macos-sierra-1012kann nicht Capybara-webkit mit O X Sierra

ich laufe immer in den Fehler des Makefile nicht gefunden werden . Ich habe Homebrew, das Edelstein-System, aktualisiert und Xcode 8 mit Cli-Tools vergeblich aktualisiert. Würde wirklich jede Hilfe zu schätzen wissen!

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

Wie haben Sie QT installiert? – fabersky

+0

sollten Sie laufen 'PATH =/Benutzer/caren/Qt5.5.1/5.5/clang_64/bin: $ PATH gem installieren capybara-webkit 'nicht' gem install capybara-webkit PATH =/Benutzer/caren/Qt5.5.1/5.5/clang_64/bin: $ PATH gem installiere capybara-webkit' und wenn/falls dies fehlschlägt, schaue in die mkmf.log in der Fehlermeldung, um zu sehen, welche Fehler auftreten –

+1

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

Antwort

9

Im Folgenden hat den Trick für mich (mit Homebrew):

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

Hinweis: Es wird eine Weile dauern, den ersten Schritt zu installieren, und Sie werden Xcode installiert haben müssen.

+1

Danke Mike! Habe deine Schritte versucht und für mich ausgearbeitet. :) –

+0

Danke Kumpel! Es dauerte eine lange Zeit zu kompilieren/machen, aber es hat geklappt. Viele viele Kudos! :) – Autodidact

+0

kein Scherz über diesen ersten Befehl dauert eine sehr lange Zeit. Alle 3 Befehle funktionierten wie ein Zauber! Danke Kumpel !! – LuAndre

Verwandte Themen