nhuff / chef-augeas

chef augeas provider
Apache License 2.0
12 stars 0 forks source link

Install required `make` package for chef_gem[ruby-augeas] #4

Closed Sliim closed 10 years ago

Sliim commented 10 years ago

augeas::geminstall recipe fails when make package is missing on host.

Part of kitchen logs:

[2014-09-09T09:39:25+00:00] ERROR: chef_gem[ruby-augeas] (augeas::geminstall line 10) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
       ---- Begin output of /opt/chef/embedded/bin/gem install ruby-augeas -q --no-rdoc --no-ri -v "0.5.0" ----
       STDOUT: Building native extensions.  This could take a while...
       STDERR: ERROR:  Error installing ruby-augeas:
        ERROR: Failed to build gem native extension.

        /opt/chef/embedded/bin/ruby extconf.rb
       creating Makefile

       make
       sh: 1: make: not found
nhuff commented 10 years ago

Can you throw up your entire kitchen log up, possibly in a gist? build-essentials should be installing make. I think there is probably some other error happening causing make to not be installed.

Sliim commented 10 years ago

You are right, build-essential is supposed to install make package but I don't know why, augeas::geminstall attempt to install ruby-augeas gem package before including build-essential recipe..

Sliim commented 10 years ago

Ok I found the problem, it's not related to your chef-augeas cookbook.. Sorry for the inconvenience..