Skip to content

Instantly share code, notes, and snippets.

@evan4498
Created June 12, 2012 14:01
Show Gist options
  • Save evan4498/2917708 to your computer and use it in GitHub Desktop.
Save evan4498/2917708 to your computer and use it in GitHub Desktop.
failure
r = gem_package "rackspace-monitoring" do
version node['cloud_monitoring']['version']
action :nothing
end
pkg_chk_cmd="dpkg -s libxslt-dev libxml2-dev"
if `#{pkg_chk_cmd}`
r.run_action(:install)
end
require 'rubygems'
Gem.clear_paths
require 'rackspace-monitoring'
root@cmtest:~# chef-client
[2012-06-12T14:00:37+00:00] INFO: *** Chef 0.10.10 ***
[2012-06-12T14:00:40+00:00] INFO: Run List is [role[base]]
[2012-06-12T14:00:40+00:00] INFO: Run List expands to [apt, users::sysadmins, chef-client, autoetchosts, cloud_monitoring, rsdns]
[2012-06-12T14:00:40+00:00] INFO: Starting Chef Run for cmtest.linuxhorn.com
[2012-06-12T14:00:40+00:00] INFO: Running start handlers
[2012-06-12T14:00:40+00:00] INFO: Start handlers complete.
[2012-06-12T14:00:49+00:00] INFO: Loading cookbooks [apt, autoetchosts, build-essential, chef-client, cloud_monitoring, python, rsdns, users]
[2012-06-12T14:00:49+00:00] WARN: Missing gem 'rackspace-monitoring'
Package `libxslt-dev' is not installed and no info is available.
Package `libxml2-dev' is not installed and no info is available.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
[2012-06-12T14:00:49+00:00] INFO: Processing gem_package[rackspace-monitoring] action install (cloud_monitoring::default line 20)
[2012-06-12T14:00:54+00:00] ERROR: gem_package[rackspace-monitoring] (cloud_monitoring::default line 20) has had an error
[2012-06-12T14:00:54+00:00] ERROR: Running exception handlers
[2012-06-12T14:00:54+00:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[2012-06-12T14:00:54+00:00] ERROR: Exception handlers complete
[2012-06-12T14:00:54+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2012-06-12T14:00:54+00:00] FATAL: Gem::Installer::ExtensionBuildError: gem_package[rackspace-monitoring] (cloud_monitoring::default line 20) had an error: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
checking for libxml/parser.h... no
-----
libxml2 is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** 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=/usr/bin/ruby1.8
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
--with-iconv-dir
--without-iconv-dir
--with-iconv-include
--without-iconv-include=${iconv-dir}/include
--with-iconv-lib
--without-iconv-lib=${iconv-dir}/lib
--with-xml2-dir
--without-xml2-dir
--with-xml2-include
--without-xml2-include=${xml2-dir}/include
--with-xml2-lib
--without-xml2-lib=${xml2-dir}/lib
--with-xslt-dir
--without-xslt-dir
--with-xslt-include
--without-xslt-include=${xslt-dir}/include
--with-xslt-lib
--without-xslt-lib=${xslt-dir}/lib
--with-libxslt-config
--without-libxslt-config
--with-pkg-config
--without-pkg-config
--with-libxml-2.0-config
--without-libxml-2.0-config
--with-pkg-config
--without-pkg-config
--with-libiconv-config
--without-libiconv-config
--with-pkg-config
--without-pkg-config
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/nokogiri-1.5.4 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/nokogiri-1.5.4/ext/nokogiri/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment