ERROR: CMake is required to build Rugged

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

gem install rugged -v -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-
/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…)

1 Like

Rebuilding from console works and is needed for the updated discourse-code-review plugin.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.