Skip to content

[MacOS] How to Resolve 'ERROR: CMake is required to build Rugged.'

Published: at 12:44 PM (1 min read)

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

Previous Post
[MacOS] How to Resolve 'Can't find the libpq-fe.h header' Error
Next Post
[MacOS] Fix the ModuleNotFoundError: No module named 'distutils'.