LoginSignup
2
1

More than 5 years have passed since last update.

MacOSX で No rule to make target `webkit_server_.gch/c++' のようなエラーで capybara-webkit のインストールに失敗する時の対応

Last updated at Posted at 2017-08-16

事象

MAcOSX で Rails アプリケーションを実装しようとした時に、 capybara-webkit のインストールで失敗してしまう。その時のエラーメッセージには

No rule to make target `webkit_server_.gch/c++'

なんて書かれている。

結論

qt のバージョンが新しすぎます。
capybara-webkit は qt のバージョン5.5以下で動きます。

% brew install qt@5.5

もし、5.9 等をインストールしていたら、先に削除してしまいましょう。
5.9 でないと困る場面はおそらく無いと思います。特にwebアプリケーションを実装するような場合。

参考

Installing Qt and compiling capybara webkit
https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit#macos-sierra-1012-el-capitan-1011-and-yosemite-1010

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1