2017-10-27 5 views
0

Ich versuche, Capybara-Webkit für Ruby on Rails zu installieren. Anfangs hatte ich Probleme, weil der Computer qmake nicht installiert hatte. Nachdem ich bekam ich diese installiert ist (Qt-Version 5.9.1 unter Windows 10) die folgenden Fehler:Befehl 'qmake' fehlgeschlagen

C:\Users\ajsmart\Documents\RORapp>gem install capybara-webkit 
Temporarily enhancing PATH for MSYS/MINGW... 
Building native extensions. This could take a while... 
ERROR: Error installing capybara-webkit: 
     ERROR: Failed to build gem native extension. 

    current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/capybara-webkit-1.14.0 
C:/Ruby24-x64/bin/ruby.exe -r ./siteconf20171027-15232-1js9zey.rb extconf.rb 
Project ERROR: Cannot run compiler 'cl'. Maybe you forgot to setup the environment? 
*** 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=C:/Ruby24-x64/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 C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/capybara-webkit-1.14.0 for inspection. 
Results logged to C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/capybara-webkit-1.14.0/gem_make.out 

C:\Users\ajsmart\Documents\RORapp> 

Zu meinem zugegebenermaßen ungeübten Auge, die Konfigurationsoptionen ich habe, sind in Ordnung. Es scheint ein qmake Fehler zu sein. Die Sache ist, dass exit code 1 nicht sehr hilfreich ist, wenn man versucht zu diagnostizieren, was hier vor sich geht.

Die folgenden sind meine aktuellen Software-Versionen, wenn es relevant ist:
10 Windows-
Qt-Version 5.9.1
Qmake Version 3.1
Ruby-Gems 2.6.13
Ruby-Version 2.4.2p198 (2017-09 -14 Revision 59899) [x64-mingw32]

EDIT:

ich folgte this Feed versucht, meine ist es, herauszufinden verklagen, wie es sich auf den folgenden Fehlercode bezieht: Project ERROR: Cannot run compiler 'cl'. Maybe you forgot to setup the environment? Leider war das nicht genug, da mein bestimmter Fehler nichts mit MySQL zu tun hat, wie der vorgeschlagene Kommentar-Feed.

+0

Ich folgte den Kommentaren in dem enthaltenen Link und konnte mein Problem nicht lösen. https://forum.qt.io/topic/81290/cannot-run-compiler-cl – ajsmart

Antwort

0

Ich denke, der relevante Fehler ist Project ERROR: Cannot run compiler 'cl'. Maybe you forgot to setup the environment?. Sieht aus wie cl.exe ist der C/C++ - Compiler, der mit Visual Studio kommt - haben Sie das installiert?

+0

Bitte beachten Sie die Änderung in der obigen Frage. – ajsmart