2017-10-19 8 views
0

실패, 난 아직도 레일 프로젝트 내 루비를 완료하려면 설치 카피 바라 보석을 얻을 수없는 것, 여기카피 바라 - 웹킷 많이도 여기에 StackOverflow에, 찾고 후

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/[email protected]/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 

입니다!

+0

카피 바라 - 웹킷은 Qt는에서 웹킷 구현에 따라 달라집니다. https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit#xcode-80을 읽으셨습니까? –

+0

안녕 케빈, 네, Qt를 설치하고 심볼릭 링크를했습니다. 그래서 저에게 난처한 처지가됩니다. brew (OS X의 패키지 관리자)를 사용하여 다시 설치하고 다시 symlinking을 시도해 볼 수있을 것 같습니까? – Montana

답변

0

Capybara-webkit에는 네이티브 확장이 필요하며 컴파일러를 사용하여 빌드합니다.

이전에 Xcode의 라이센스 계약에 동의와 컴파일러를 사용해야합니다, 그래서 당신은 OS X를 사용하는 :

sudo xcodebuild -license accept 
+0

조언을 주셔서 고맙습니다. 그래, 내가 도망 쳤어. "xcode-select : error : tool 'xcodebuild'는 Xcode가 필요하지만 활성 개발자 디렉토리 '/ Library/Developer/CommandLineTools'는 명령 행 도구 인스턴스" – Montana

+0

Xcode가 설치되어 있습니까? 그렇지 않다면 앱 스토어로 가서 다운로드하십시오 :) – spuyet

+0

정말 Xcode가 필요합니까? CLI 도구를 설치했는데 충분하다고 생각했습니다. CLI 도구를 설치하면 동의하게됩니다. 다시 말하지만, 나는 정말 도움 스파이웨어에 감사드립니다. – Montana