capybara-webkit のインストールにおけるエラー改善案 #95

suiyujin opened this Issue Jun 27, 2015 · 1 comment


None yet
2 participants

起きた問題 :

git clone後にbundle install時の capybara-webkit のインストールにおいて、qmakeコマンドが無いためエラーとなりました。

% bundle install --path vendor/bundle                                                                                                     
Fetching gem metadata from
Fetching version metadata from
Resolving dependencies...
Using rake 10.4.2
Installing i18n 0.7.0
Installing json 1.8.3
Installing minitest 5.7.0
Installing thread_safe 0.3.5
Installing tzinfo 1.2.2
Installing activesupport 4.2.3
Installing builder 3.2.2
Installing erubis 2.7.0
Installing mini_portile 0.6.2
Installing nokogiri
Installing rails-deprecated_sanitizer 1.0.3
Installing rails-dom-testing 1.0.6
Installing loofah 2.0.2
Installing rails-html-sanitizer 1.0.2
Installing actionview 4.2.3
Installing rack 1.6.4
Installing rack-test 0.6.3
Installing actionpack 4.2.3
Installing globalid 0.3.5
Installing activejob 4.2.3
Installing mime-types 2.6.1
Installing mail 2.6.3
Installing actionmailer 4.2.3
Installing activemodel 4.2.3
Installing arel 6.0.0
Installing activerecord 4.2.3
Using bundler 1.9.9
Installing xpath 2.0.0
Installing capybara 2.4.4

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /Users/ippe/.rbenv/versions/2.2.2/bin/ruby -r ./siteconf20150627-32583-1rwnvoi.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:
Command 'qmake ' not available

extconf failed, exit code 1

Gem files will remain installed in /Users/ippe/sezemi/oss_hack_beginners/jpmobile/vendor/bundle/ruby/2.2.0/gems/capybara-webkit-1.6.0 for inspection.
Results logged to /Users/ippe/sezemi/oss_hack_beginners/jpmobile/vendor/bundle/ruby/2.2.0/extensions/x86_64-darwin-13/2.2.0-static/capybara-webkit-1.6.0/gem_make.out
An error occurred while installing capybara-webkit (1.6.0), and Bundler cannot continue.
Make sure that `gem install capybara-webkit -v '1.6.0'` succeeds before bundling.

解決策 :

Installing Qt and compiling capybara webkit

改善案 :



This comment has been minimized.

Show comment
Hide comment

rust Jun 27, 2015




rust commented Jun 27, 2015


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment