Closed wolf31o2 closed 9 years ago
Solves this problem:
Recipe: krb5::rkerberos_gem
- install version 1.10.3-37.el6_6 of package krb5-devel
* chef_gem[rkerberos] action install
================================================================================
Error executing action `install` on resource 'chef_gem[rkerberos]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /opt/chef/embedded/bin/gem install rkerberos -q --no-rdoc --no-ri -v "0.1.3" ----
STDOUT: Successfully installed rake-compiler-0.9.5
Building native extensions. This could take a while...
STDERR: ERROR: Error installing rkerberos:
ERROR: Failed to build gem native extension.
/opt/chef/embedded/bin/ruby -r ./siteconf20150608-2634-1iaav4n.rb extconf.rb
checking for krb5.h... *** 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
--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/chef/embedded/bin/ruby
--with-rkerberos-dir
--without-rkerberos-dir
--with-rkerberos-include
--without-rkerberos-include=${rkerberos-dir}/include
--with-rkerberos-lib
--without-rkerberos-lib=${rkerberos-dir}/lib
/opt/chef/embedded/lib/ruby/2.1.0/mkmf.rb:467:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /opt/chef/embedded/lib/ruby/2.1.0/mkmf.rb:598:in `try_cpp'
from /opt/chef/embedded/lib/ruby/2.1.0/mkmf.rb:1078:in `block in have_header'
from /opt/chef/embedded/lib/ruby/2.1.0/mkmf.rb:929:in `block in checking_for'
from /opt/chef/embedded/lib/ruby/2.1.0/mkmf.rb:351:in `block (2 levels) in postpone'
from /opt/chef/embedded/lib/ruby/2.1.0/mkmf.rb:321:in `open'
from /opt/chef/embedded/lib/ruby/2.1.0/mkmf.rb:351:in `block in postpone'
from /opt/chef/embedded/lib/ruby/2.1.0/mkmf.rb:321:in `open'
from /opt/chef/embedded/lib/ruby/2.1.0/mkmf.rb:347:in `postpone'
from /opt/chef/embedded/lib/ruby/2.1.0/mkmf.rb:928:in `checking_for'
from /opt/chef/embedded/lib/ruby/2.1.0/mkmf.rb:1077:in `have_header'
from extconf.rb:5:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/rkerberos-0.1.3 for inspection.
Results logged to /opt/chef/embedded/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0/rkerberos-0.1.3/gem_make.out
LGTM
Otherwise, the Gem will fail to build due to missing dependencies.