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

Open
suiyujin opened this Issue Jun 27, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@suiyujin

起きた問題 :

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

% bundle install --path vendor/bundle                                                                                                     
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
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 1.6.6.2
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:
        --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/ippe/.rbenv/versions/2.2.2/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/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.

解決策 :

下記Webサイトを参考にして、Qtをインストールすることで解決しました。
Installing Qt and compiling capybara webkit

改善案 :

開発者向けドキュメントを用意して、Qtのインストールを手順に含めると良いと思いましたがいかがでしょうか。

@rust

This comment has been minimized.

Show comment
Hide comment
@rust

rust Jun 27, 2015

Member

👍

Member

rust commented Jun 27, 2015

👍

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