Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ================================================================================
- Error executing action `install` on resource 'chef_gem[nokogiri]'
- ================================================================================
- Gem::Installer::ExtensionBuildError
- -----------------------------------
- ERROR: Failed to build gem native extension.
- /opt/chef/embedded/bin/ruby extconf.rb
- Building nokogiri using packaged libraries.
- checking for iconv.h... yes
- checking for iconv_open() in iconv.h... no
- checking for iconv_open() in -liconv... yes
- Building libxml2-2.8.0 for nokogiri with the following patches applied:
- - 0001-Fix-parser-local-buffers-size-problems.patch
- - 0002-Fix-entities-local-buffers-size-problems.patch
- - 0003-Fix-an-error-in-previous-commit.patch
- - 0004-Fix-potential-out-of-bound-access.patch
- - 0005-Detect-excessive-entities-expansion-upon-replacement.patch
- - 0006-Do-not-fetch-external-parsed-entities.patch
- - 0007-Enforce-XML_PARSER_EOF-state-handling-through-the-pa.patch
- - 0008-Improve-handling-of-xmlStopParser.patch
- - 0009-Fix-a-couple-of-return-without-value.patch
- - 0010-Keep-non-significant-blanks-node-in-HTML-parser.patch
- - 0011-Do-not-fetch-external-parameter-entities.patch
- ************************************************************************
- IMPORTANT! Nokogiri builds and uses a packaged version of libxml2.
- If this is a concern for you and you want to use the system library
- instead, abort this installation process and reinstall nokogiri as
- follows:
- gem install nokogiri -- --use-system-libraries
- If you are using Bundler, tell it to use the option:
- bundle config build.nokogiri --use-system-libraries
- bundle install
- However, note that nokogiri does not necessarily support all versions
- of libxml2.
- For example, libxml2-2.9.0 and higher are currently known to be broken
- and thus unsupported by nokogiri, due to compatibility problems and
- XPath optimization bugs.
- ************************************************************************
- Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.8.0... OK
- Running patch with /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.2.1/ports/patches/libxml2/0001-Fix-parser-local-buffers-size-problems.patch...
- Running 'patch' for libxml2 2.8.0... ERROR, review 'tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.8.0/patch.log' to see what happened.
- *** 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
- --help
- --clean
- --use-system-libraries
- --enable-static
- --disable-static
- --with-zlib-dir
- --without-zlib-dir
- --with-zlib-include
- --without-zlib-include=${zlib-dir}/include
- --with-zlib-lib
- --without-zlib-lib=${zlib-dir}/lib
- --enable-cross-build
- --disable-cross-build
- /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mini_portile-0.6.0/lib/mini_portile.rb:279:in `block in execute': Failed to complete patch task (RuntimeError)
- from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mini_portile-0.6.0/lib/mini_portile.rb:271:in `chdir'
- from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mini_portile-0.6.0/lib/mini_portile.rb:271:in `execute'
- from extconf.rb:282:in `block in patch'
- from extconf.rb:279:in `each'
- from extconf.rb:279:in `patch'
- from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mini_portile-0.6.0/lib/mini_portile.rb:108:in `cook'
- from extconf.rb:253:in `block in process_recipe'
- from extconf.rb:154:in `tap'
- from extconf.rb:154:in `process_recipe'
- from extconf.rb:419:in `<main>'
- Gem files will remain installed in /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.2.1 for inspection.
- Results logged to /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.2.1/ext/nokogiri/gem_make.out
- Cookbook Trace:
- ---------------
- /tmp/vagrant-chef-1/chef-solo-1/cookbooks/secretserver/recipes/default.rb:21:in `from_file'
- /tmp/vagrant-chef-1/chef-solo-1/cookbooks/maytag-apiserver/recipes/nginx.rb:1:in `from_file'
- /tmp/vagrant-chef-1/chef-solo-1/cookbooks/maytag-apiserver/recipes/default.rb:3:in `from_file'
- Resource Declaration:
- ---------------------
- # In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/secretserver/recipes/default.rb
- 21: chef_gem "nokogiri"
- 22: require 'nokogiri'
- Compiled Resource:
- ------------------
- # Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/secretserver/recipes/default.rb:21:in `from_file'
- chef_gem("nokogiri") do
- provider Chef::Provider::Package::Rubygems
- action :install
- retries 0
- retry_delay 2
- package_name "nokogiri"
- version "1.6.2.1"
- cookbook_name :secretserver
- recipe_name "default"
- end
- ================================================================================
- Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/maytag-apiserver/recipes/default.rb
- ================================================================================
- Gem::Installer::ExtensionBuildError
- -----------------------------------
- chef_gem[nokogiri] (secretserver::default line 21) had an error: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
- /opt/chef/embedded/bin/ruby extconf.rb
- Building nokogiri using packaged libraries.
- checking for iconv.h... yes
- checking for iconv_open() in iconv.h... no
- checking for iconv_open() in -liconv... yes
- Building libxml2-2.8.0 for nokogiri with the following patches applied:
- - 0001-Fix-parser-local-buffers-size-problems.patch
- - 0002-Fix-entities-local-buffers-size-problems.patch
- - 0003-Fix-an-error-in-previous-commit.patch
- - 0004-Fix-potential-out-of-bound-access.patch
- - 0005-Detect-excessive-entities-expansion-upon-replacement.patch
- - 0006-Do-not-fetch-external-parsed-entities.patch
- - 0007-Enforce-XML_PARSER_EOF-state-handling-through-the-pa.patch
- - 0008-Improve-handling-of-xmlStopParser.patch
- - 0009-Fix-a-couple-of-return-without-value.patch
- - 0010-Keep-non-significant-blanks-node-in-HTML-parser.patch
- - 0011-Do-not-fetch-external-parameter-entities.patch
- ************************************************************************
- IMPORTANT! Nokogiri builds and uses a packaged version of libxml2.
- If this is a concern for you and you want to use the system library
- instead, abort this installation process and reinstall nokogiri as
- follows:
- gem install nokogiri -- --use-system-libraries
- If you are using Bundler, tell it to use the option:
- bundle config build.nokogiri --use-system-libraries
- bundle install
- However, note that nokogiri does not necessarily support all versions
- of libxml2.
- For example, libxml2-2.9.0 and higher are currently known to be broken
- and thus unsupported by nokogiri, due to compatibility problems and
- XPath optimization bugs.
- ************************************************************************
- Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.8.0... OK
- Running patch with /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.2.1/ports/patches/libxml2/0001-Fix-parser-local-buffers-size-problems.patch...
- Running 'patch' for libxml2 2.8.0... ERROR, review 'tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.8.0/patch.log' to see what happened.
- *** 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
- --help
- --clean
- --use-system-libraries
- --enable-static
- --disable-static
- --with-zlib-dir
- --without-zlib-dir
- --with-zlib-include
- --without-zlib-include=${zlib-dir}/include
- --with-zlib-lib
- --without-zlib-lib=${zlib-dir}/lib
- --enable-cross-build
- --disable-cross-build
- /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mini_portile-0.6.0/lib/mini_portile.rb:279:in `block in execute': Failed to complete patch task (RuntimeError)
- from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mini_portile-0.6.0/lib/mini_portile.rb:271:in `chdir'
- from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mini_portile-0.6.0/lib/mini_portile.rb:271:in `execute'
- from extconf.rb:282:in `block in patch'
- from extconf.rb:279:in `each'
- from extconf.rb:279:in `patch'
- from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mini_portile-0.6.0/lib/mini_portile.rb:108:in `cook'
- from extconf.rb:253:in `block in process_recipe'
- from extconf.rb:154:in `tap'
- from extconf.rb:154:in `process_recipe'
- from extconf.rb:419:in `<main>'
- Gem files will remain installed in /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.2.1 for inspection.
- Results logged to /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.2.1/ext/nokogiri/gem_make.out
- Cookbook Trace:
- ---------------
- /tmp/vagrant-chef-1/chef-solo-1/cookbooks/secretserver/recipes/default.rb:21:in `from_file'
- /tmp/vagrant-chef-1/chef-solo-1/cookbooks/maytag-apiserver/recipes/nginx.rb:1:in `from_file'
- /tmp/vagrant-chef-1/chef-solo-1/cookbooks/maytag-apiserver/recipes/default.rb:3:in `from_file'
- Relevant File Content:
- ----------------------
- /tmp/vagrant-chef-1/chef-solo-1/cookbooks/secretserver/recipes/default.rb:
- 14: action :nothing
- 15: end.run_action(:install)
- 16:
- 17: package 'libxslt-devel' do
- 18: action :nothing
- 19: end.run_action(:install)
- 20:
- 21>> chef_gem "nokogiri"
- 22: require 'nokogiri'
- 23:
- 24: chef_gem 'savon'
- 25: require 'savon'
- 26:
- [2014-06-10T13:28:33+00:00] ERROR: Running exception handlers
- [2014-06-10T13:28:33+00:00] ERROR: Exception handlers complete
- [2014-06-10T13:28:33+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
- [2014-06-10T13:28:33+00:00] ERROR: chef_gem[nokogiri] (secretserver::default line 21) had an error: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
- /opt/chef/embedded/bin/ruby extconf.rb
- Building nokogiri using packaged libraries.
- checking for iconv.h... yes
- checking for iconv_open() in iconv.h... no
- checking for iconv_open() in -liconv... yes
- Building libxml2-2.8.0 for nokogiri with the following patches applied:
- - 0001-Fix-parser-local-buffers-size-problems.patch
- - 0002-Fix-entities-local-buffers-size-problems.patch
- - 0003-Fix-an-error-in-previous-commit.patch
- - 0004-Fix-potential-out-of-bound-access.patch
- - 0005-Detect-excessive-entities-expansion-upon-replacement.patch
- - 0006-Do-not-fetch-external-parsed-entities.patch
- - 0007-Enforce-XML_PARSER_EOF-state-handling-through-the-pa.patch
- - 0008-Improve-handling-of-xmlStopParser.patch
- - 0009-Fix-a-couple-of-return-without-value.patch
- - 0010-Keep-non-significant-blanks-node-in-HTML-parser.patch
- - 0011-Do-not-fetch-external-parameter-entities.patch
- ************************************************************************
- IMPORTANT! Nokogiri builds and uses a packaged version of libxml2.
- If this is a concern for you and you want to use the system library
- instead, abort this installation process and reinstall nokogiri as
- follows:
- gem install nokogiri -- --use-system-libraries
- If you are using Bundler, tell it to use the option:
- bundle config build.nokogiri --use-system-libraries
- bundle install
- However, note that nokogiri does not necessarily support all versions
- of libxml2.
- For example, libxml2-2.9.0 and higher are currently known to be broken
- and thus unsupported by nokogiri, due to compatibility problems and
- XPath optimization bugs.
- ************************************************************************
- Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.8.0... OK
- Running patch with /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.2.1/ports/patches/libxml2/0001-Fix-parser-local-buffers-size-problems.patch...
- Running 'patch' for libxml2 2.8.0... ERROR, review 'tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.8.0/patch.log' to see what happened.
- *** 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
- --help
- --clean
- --use-system-libraries
- --enable-static
- --disable-static
- --with-zlib-dir
- --without-zlib-dir
- --with-zlib-include
- --without-zlib-include=${zlib-dir}/include
- --with-zlib-lib
- --without-zlib-lib=${zlib-dir}/lib
- --enable-cross-build
- --disable-cross-build
- /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mini_portile-0.6.0/lib/mini_portile.rb:279:in `block in execute': Failed to complete patch task (RuntimeError)
- from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mini_portile-0.6.0/lib/mini_portile.rb:271:in `chdir'
- from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mini_portile-0.6.0/lib/mini_portile.rb:271:in `execute'
- from extconf.rb:282:in `block in patch'
- from extconf.rb:279:in `each'
- from extconf.rb:279:in `patch'
- from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mini_portile-0.6.0/lib/mini_portile.rb:108:in `cook'
- from extconf.rb:253:in `block in process_recipe'
- from extconf.rb:154:in `tap'
- from extconf.rb:154:in `process_recipe'
- from extconf.rb:419:in `<main>'
- Gem files will remain installed in /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.2.1 for inspection.
- Results logged to /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.2.1/ext/nokogiri/gem_make.out
- [2014-06-10T13:28:33+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
- Chef never successfully completed! Any errors should be visible in the
- output above. Please fix your recipes so that they properly complete.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement