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

Deployment to EBS - Helo debugging ERROR: CMake is required to build Rugged.

Rails • Asked by Lauro

Being trying to deploy my rails app using EBS. I kepp getting the following error.

I've tried updating and installing rugged. But the problem seems to be cmake on EBS. CMake is an extensible the depends from the Rugged gem.

Any ideas on how to debug this?

Im using rails 5.0.1 and Ruby 2.3.1.

-------------------------------------
/var/log/eb-commandprocessor.log
-------------------------------------
  Installing coffee-script-source 1.12.2
  Installing crass 0.2.1
  Installing orm_adapter 0.5.0
  Installing unf_ext 0.0.7.2 with native extensions
  Installing escape_utils 1.1.1 with native extensions
  Installing gemoji 2.1.0
  Installing rugged 0.25.0b10 with native extensions

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

      current directory: /var/app/ondeck/vendor/bundle/gems/rugged-0.25.0b10/ext/rugged
  /opt/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20161231-16631-uz4bvl.rb extconf.rb
  checking for gmake... yes
  checking for cmake... no
  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.

  Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/opt/rubies/ruby-2.3.1/bin/$(RUBY_BASE_NAME)
    --use-system-libraries

  To see why this extension failed to compile, please check the mkmf.log which can be found here:

    /var/app/ondeck/vendor/bundle/extensions/x86_64-linux/2.3.0-static/rugged-0.25.0b10/mkmf.log

Unless I'm just reading it wrong, the error is just that, you don't have cmake installed...

ERROR: CMake is required to build Rugged.

sudo apt-get install cmake

http://stackoverflow.com/questions/27472234/an-error-occurred-while-installing-rugged

If you do have cmake, check the end of your error log, it says:

To see why this extension failed to compile, please check the mkmf.log which can be found here:
/var/app/ondeck/vendor/bundle/extensions/x86_64-linux/2.3.0-static/rugged-0.25.0b10/mkmf.log

So you can check the log there to see if it gives any additional details


Thanks Jacob! I apperently did have cmake installed on my local machine but not in AWS.


Sweet, I'm glad that really was the issue!

I've done that countless times, imagemagick gets me everytime!!


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 29,763+ 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.