Ask A Question

Notifications

You’re not receiving notifications from this thread.

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

Lauro asked in Rails

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
Reply

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

Reply

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

Reply

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

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

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,329+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.