# ERROR: CMake is required to build Rugged

**URL:** <https://meta.discourse.org/t/error-cmake-is-required-to-build-rugged/142900>\
**Category:** Product Support\
**Created:** [February 28, 2020, 5:11pm UTC](https://meta.discourse.org/t/error-cmake-is-required-to-build-rugged/142900 "2020-02-28T17:11:23Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)\
**Post date:** [February 28, 2020, 5:11pm UTC](https://meta.discourse.org/t/error-cmake-is-required-to-build-rugged/142900/1 "2020-02-28T17:11:24Z")

</div>

The latest release `2.5.0beta1` gives an error when trying to _upgrade all_ (from the admin interface) with the `discourse-code-review` plugin:

```plaintext
gem install rugged -v 0.28.4.1 -i /var/www/discourse/plugins/discourse-code-review/gems/2.6.5 --no-document --ignore-dependencies --no-user-install
ERROR: Error installing rugged:
	ERROR: Failed to build gem native extension.

    current directory: /var/www/discourse/plugins/discourse-code-review/gems/2.6.5/gems/rugged-0.28.4.1/ext/rugged
/usr/local/bin/ruby -I /usr/local/lib/ruby/site_ruby/2.6.0 -r ./siteconf20200228-3888-511nfm.rb extconf.rb
checking for gmake... no
checking for make... yes
checking for cmake... no
ERROR: CMake is required to build Rugged.

```

I guess CMake can be used to build the extensions in a separate Docker layer so it does not remain part of the final image…  
In the current state, I guess removing the faulty plugin might be a solution, unless rebuilding from the console works (which I’m testing…)

---

_[View the full topic](https://meta.discourse.org/t/error-cmake-is-required-to-build-rugged/142900)._
