How to fix problem installing Charlock Holmes Gem

My fix for installing 0.7.6 of the Charlock Holmes gem on macOS

Charlock Holmes is a pain in the ass to install (well at least for me anyway).

After lots of Googling I finally came up with the best way to consistently get Charlock Holmes installing as part of my normal bundle install. This fix has also worked for other teammates as well.

One part of it was upgrading my version from 0.7.5 to 0.7.6 and the other was running these few commands:

$ gem uninstall charlock_holmes
$ brew install icu4c
$ gem install charlock_holmes -- --with-icu-dir=/usr/local/Cellar/icu4c

This helped to fix this error message:

An error occurred while installing charlock_holmes (0.7.6), and Bundler
cannot continue.
Make sure that `gem install charlock_holmes -v '0.7.6' --source
'https://rubygems.org'` succeeds before bundling.

Recent posts View all

Web DevProductivity

Keeping on top of website updates

Learn what website updates are, what they entail, why they are important, and how we can help

Freelancing

Getting the most out of your agency

Here are some tips based on years of working with, for, and as an agency on how to get the most out of any work you do.