Problem
When installing the Rugged gem, you might encounter the following error:
ERROR: CMake is required to build Rugged.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Solution
To resolve this issue, you need to install CMake on your Mac.
brew install cmake
After installing CMake, you can retry the installation of the Rugged
# Install the Rugged gem
gem install rugged
# or if you're using Bundler
bundle install