LoginSignup
3
4

More than 5 years have passed since last update.

Macの環境でCucumber (capybara-webkit) でXvfbが無いよと言われたときの対処法

Posted at

前提

OS X 10.9.5
capybara-webkit (1.0.0)
qt4

$ bundle exec cucumber
Xvfb not found on your system (Headless::Exception)
...vendor/bundle/ruby/2.0.0/gems/headless-1.0.1/lib/headless/cli_util.rb:9:in `ensure_application_exists!'
...vendor/bundle/ruby/2.0.0/gems/headless-1.0.1/lib/headless.rb:68:in `initialize'

qt入ってんだけどなぁ。。。。

メッセージでググると
/opt/X11/bin/Xvfb
が無いと行けないっぽい。

確認したら無い。

Apple公式情報からXQuartzをインストール
https://support.apple.com/ja-jp/HT201341

ls -al /opt/X11/bin/Xvfb
-rwxr-xr-x  1 root  wheel  3037632  8 12  2014 /opt/X11/bin/Xvfb

でてきた

$ bundle exec cucumber

#language: ja
フィーチャ: ....

うごいたっ!

3
4
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
3
4