2017-10-27 1 views
0

Ruby on Rails 용 capybara-webkit을 설치하려고합니다. 처음에는 컴퓨터에 qmake이 설치되지 않았기 때문에 문제가있었습니다. (윈도우 10에 Qt는 버전 5.9.1)이 설치 점점 후 나는 다음과 같은 오류 있어요 : 내 틀림없이 훈련받지 않은 눈에'qmake'명령이 실패했습니다.

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> 

를, 내가 가지고있는 구성 옵션 괜찮아. qmake 오류 인 것 같습니다. 문제는 exit code 1이 여기서 무슨 일이 일어나는지 진단하려고 할 때별로 도움이되지 않는다는 것입니다.
윈도우 10
Qt는 버전 5.9.1
qmake를 버전 3.1
루비 보석 2.6.13
루비 버전 2.4.2p198 2017-09 (: 그것은 관련이 경우 다음

, 내 현재 소프트웨어 버전입니다 -14 개정 59899) [64-mingw32]

편집 :

내가 내 IS를 알아 내려고 this 공급을 따라 다음과 같은 오류 코드와 관련되어서 고소합니다. Project ERROR: Cannot run compiler 'cl'. Maybe you forgot to setup the environment? 불행히도 내 특정 오류가 제안 된 의견 피드처럼 MySQL과 아무런 관련이 없으므로 충분하지 않았습니다.

+0

나는 포함 된 링크의 의견을 따라했으며 내 문제를 해결할 수 없었습니다. https://forum.qt.io/topic/81290/cannot-run-compiler-cl – ajsmart

답변

0

관련 오류는 Project ERROR: Cannot run compiler 'cl'. Maybe you forgot to setup the environment?이라고 생각합니다. Visual Studio와 함께 제공되는 C/C++ 컴파일러는 cl.exe처럼 보입니다. 설치되어 있습니까?

+0

위의 질문에서 편집을 참조하십시오. – ajsmart

관련 문제