Skip to content

Instantly share code, notes, and snippets.

@annacruz
Last active March 20, 2023 07:28
Show Gist options
  • Save annacruz/21d0887c15bd16c226802164957fbd74 to your computer and use it in GitHub Desktop.
Save annacruz/21d0887c15bd16c226802164957fbd74 to your computer and use it in GitHub Desktop.
Steps to install capybara-webkit with qtwebkit on mac
  • Install Xcode
  • Accept the xcode license with sudo xcodebuild -license
  • Install qt from: https://download.qt.io/new_archive/qt/5.5/5.5.0/
  • Add the following line in .bashrc or .zshrc or whatever -> export PATH="$HOME/Qt5.5.0/5.5/clang_64/bin/:$PATH"
  • Reload the terminal or source .zshrc
  • Go to the directory /Applications/Xcode.app/Contents/Developer/usr/bin/
  • Make the symlink: ln -s xcodebuild xcrun
  • Install the lib with gem install capybara-webkit

If any problem accepting the license occurs, here are one solution to it: https://medium.com/@vschroeder/xcode-select-error-tool-xcodebuild-requires-xcode-but-active-developer-directory-fb7d3408c80b

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