Web Development

In Rails development, some testing would require capybara to be installed. However, sometimes, errors like this show up.

An error occurred while installing capybara-webkit (1.1.0), and Bundler cannot
continue.
Make sure that `gem install capybara-webkit -v ’1.1.0’` succeeds before
bundling.

The fix is to install Qt.

brew update
brew install qt

You will have something like the following:

$ brew update
Initialized empty Git repository in /usr/local/.git/
remote: Counting objects: 201664, done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 201664 (delta 19), reused 10 (delta 7)
Receiving objects: 100% (201664/201664), 42.32 MiB | 310.00 KiB/s, done.
Resolving deltas: 100% (145935/145935), done.
From https://github.com/Homebrew/homebrew
 * [new branch]      gh-pages   -> origin/gh-pages
 * [new branch]      go         -> origin/go
 * [new branch]      master     -> origin/master
HEAD is now at 4baa24c gmtl: add 0.6.1 bottle.
Already up-to-date.
$ brew install qt
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/qt-4.8.6.mavericks.bottle.5.tar.gz
######################################################################## 100.0%
==> Pouring qt-4.8.6.mavericks.bottle.5.tar.gz
==> Caveats
We agreed to the Qt opensource license for you.
If this is unacceptable you should uninstall.

.app bundles were installed.
Run `brew linkapps` to symlink these to /Applications.
==> Summary
/usr/local/Cellar/qt/4.8.6: 2790 files, 119M