Skip to main content
Ask A Question
You’re not receiving notifications from this thread.

[Hatch Deployment] - Cannot bundle commonmarker due to cmake

Gems / Libraries • Asked by Lauro

Im using commonmarker for the HTML::Pipeline::MarkdownFilter. And when trying to deploy my app, I get this exception:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/home/deploy/.rbenv/versions/2.4.1/bin/ruby -r
./siteconf20170721-22951-szfhyg.rb extconf.rb
checking for cmake... no

[ERROR]: cmake is required and not installed. Get it here:

*** 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.

Provided configuration options:

How can I instal cmake?

It's as easy as SSHing into your server and running sudo apt-get install cmake.

If you're interested in trying out a new feature, I added Scripts at the top of the page and you can create little bash scripts to install things like cmake. You can create a new Recipe and paste that line into that and tell it to run on your server (as root, not deploy) and it'll install it for ya.

Thanks Chris. Worked perfectly!

I forgot that Hatch sends an email with the deploy user's sudo password.

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 29,237+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.