Skip to content

Instantly share code, notes, and snippets.

@eherot
Created June 9, 2012 20:59
Show Gist options
  • Save eherot/2902578 to your computer and use it in GitHub Desktop.
Save eherot/2902578 to your computer and use it in GitHub Desktop.
post to #chef about 'ruby-shadow chef "You have to install development tools first"'
ec2-107-21-90-172.compute-1.amazonaws.com [Sat, 09 Jun 2012 20:52:56 +0000] INFO: Processing chef_gem[ruby-shadow] action install (dynamically defined)
ec2-107-21-90-172.compute-1.amazonaws.com [Sat, 09 Jun 2012 20:53:01 +0000] ERROR: chef_gem[ruby-shadow] (dynamically defined) has had an error
ec2-107-21-90-172.compute-1.amazonaws.com [Sat, 09 Jun 2012 20:53:01 +0000] ERROR: Running exception handlers
ec2-107-21-90-172.compute-1.amazonaws.com [Sat, 09 Jun 2012 20:53:01 +0000] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
ec2-107-21-90-172.compute-1.amazonaws.com [Sat, 09 Jun 2012 20:53:01 +0000] ERROR: Exception handlers complete
ec2-107-21-90-172.compute-1.amazonaws.com [Sat, 09 Jun 2012 20:53:01 +0000] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
ec2-107-21-90-172.compute-1.amazonaws.com [Sat, 09 Jun 2012 20:53:01 +0000] FATAL: Mixlib::ShellOut::ShellCommandFailed: chef_gem[ruby-shadow] (dynamically defined) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
ec2-107-21-90-172.compute-1.amazonaws.com ---- Begin output of /opt/opscode/embedded/bin/gem install ruby-shadow -q --no-rdoc --no-ri -v "2.1.4" ----
ec2-107-21-90-172.compute-1.amazonaws.com STDOUT: Building native extensions. This could take a while...
ec2-107-21-90-172.compute-1.amazonaws.com STDERR: ERROR: Error installing ruby-shadow:
ec2-107-21-90-172.compute-1.amazonaws.com ERROR: Failed to build gem native extension.
ec2-107-21-90-172.compute-1.amazonaws.com
ec2-107-21-90-172.compute-1.amazonaws.com /opt/opscode/embedded/bin/ruby extconf.rb
ec2-107-21-90-172.compute-1.amazonaws.com checking for getspent() in -lshadow... *** extconf.rb failed ***
ec2-107-21-90-172.compute-1.amazonaws.com Could not create Makefile due to some reason, probably lack of
ec2-107-21-90-172.compute-1.amazonaws.com necessary libraries and/or headers. Check the mkmf.log file for more
ec2-107-21-90-172.compute-1.amazonaws.com details. You may need configuration options.
ec2-107-21-90-172.compute-1.amazonaws.com
ec2-107-21-90-172.compute-1.amazonaws.com Provided configuration options:
ec2-107-21-90-172.compute-1.amazonaws.com --with-opt-dir
ec2-107-21-90-172.compute-1.amazonaws.com --with-opt-include
ec2-107-21-90-172.compute-1.amazonaws.com --without-opt-include=${opt-dir}/include
ec2-107-21-90-172.compute-1.amazonaws.com --with-opt-lib
ec2-107-21-90-172.compute-1.amazonaws.com --without-opt-lib=${opt-dir}/lib
ec2-107-21-90-172.compute-1.amazonaws.com --with-make-prog
ec2-107-21-90-172.compute-1.amazonaws.com --without-make-prog
ec2-107-21-90-172.compute-1.amazonaws.com --srcdir=.
ec2-107-21-90-172.compute-1.amazonaws.com --curdir
ec2-107-21-90-172.compute-1.amazonaws.com --ruby=/opt/opscode/embedded/bin/ruby
ec2-107-21-90-172.compute-1.amazonaws.com --with-shadowlib
ec2-107-21-90-172.compute-1.amazonaws.com --without-shadowlib
ec2-107-21-90-172.compute-1.amazonaws.com /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed to generate an executable file. (RuntimeError)
ec2-107-21-90-172.compute-1.amazonaws.com You have to install development tools first.
ec2-107-21-90-172.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:435:in `try_link0'
ec2-107-21-90-172.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:440:in `try_link'
ec2-107-21-90-172.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:552:in `try_func'
ec2-107-21-90-172.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:748:in `block in have_library'
ec2-107-21-90-172.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:693:in `block in checking_for'
ec2-107-21-90-172.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:280:in `block (2 levels) in postpone'
ec2-107-21-90-172.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:254:in `open'
ec2-107-21-90-172.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:280:in `block in postpone'
ec2-107-21-90-172.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:254:in `open'
ec2-107-21-90-172.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:276:in `postpone'
ec2-107-21-90-172.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:692:in `checking_for'
ec2-107-21-90-172.compute-1.amazonaws.com from /opt/opscode/embedded/lib/ruby/1.9.1/mkmf.rb:743:in `have_library'
ec2-107-21-90-172.compute-1.amazonaws.com from extconf.rb:13:in `<main>'
ec2-107-21-90-172.compute-1.amazonaws.com
ec2-107-21-90-172.compute-1.amazonaws.com
ec2-107-21-90-172.compute-1.amazonaws.com Gem files will remain installed in /opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/ruby-shadow-2.1.4 for inspection.
ec2-107-21-90-172.compute-1.amazonaws.com Results logged to /opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/ruby-shadow-2.1.4/gem_make.out
ec2-107-21-90-172.compute-1.amazonaws.com ---- End output of /opt/opscode/embedded/bin/gem install ruby-shadow -q --no-rdoc --no-ri -v "2.1.4" ----
ec2-107-21-90-172.compute-1.amazonaws.com Ran /opt/opscode/embedded/bin/gem install ruby-shadow -q --no-rdoc --no-ri -v "2.1.4" returned 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment