Advertisement
Guest User

chef nokogiri error

a guest
Jun 10th, 2014
493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.29 KB | None | 0 0
  1. ================================================================================
  2. Error executing action `install` on resource 'chef_gem[nokogiri]'
  3. ================================================================================
  4.  
  5.  
  6. Gem::Installer::ExtensionBuildError
  7. -----------------------------------
  8. ERROR: Failed to build gem native extension.
  9.  
  10. /opt/chef/embedded/bin/ruby extconf.rb
  11. Building nokogiri using packaged libraries.
  12. checking for iconv.h... yes
  13. checking for iconv_open() in iconv.h... no
  14. checking for iconv_open() in -liconv... yes
  15. Building libxml2-2.8.0 for nokogiri with the following patches applied:
  16. - 0001-Fix-parser-local-buffers-size-problems.patch
  17. - 0002-Fix-entities-local-buffers-size-problems.patch
  18. - 0003-Fix-an-error-in-previous-commit.patch
  19. - 0004-Fix-potential-out-of-bound-access.patch
  20. - 0005-Detect-excessive-entities-expansion-upon-replacement.patch
  21. - 0006-Do-not-fetch-external-parsed-entities.patch
  22. - 0007-Enforce-XML_PARSER_EOF-state-handling-through-the-pa.patch
  23. - 0008-Improve-handling-of-xmlStopParser.patch
  24. - 0009-Fix-a-couple-of-return-without-value.patch
  25. - 0010-Keep-non-significant-blanks-node-in-HTML-parser.patch
  26. - 0011-Do-not-fetch-external-parameter-entities.patch
  27. ************************************************************************
  28. IMPORTANT! Nokogiri builds and uses a packaged version of libxml2.
  29.  
  30. If this is a concern for you and you want to use the system library
  31. instead, abort this installation process and reinstall nokogiri as
  32. follows:
  33.  
  34. gem install nokogiri -- --use-system-libraries
  35.  
  36. If you are using Bundler, tell it to use the option:
  37.  
  38. bundle config build.nokogiri --use-system-libraries
  39. bundle install
  40.  
  41. However, note that nokogiri does not necessarily support all versions
  42. of libxml2.
  43.  
  44. For example, libxml2-2.9.0 and higher are currently known to be broken
  45. and thus unsupported by nokogiri, due to compatibility problems and
  46. XPath optimization bugs.
  47. ************************************************************************
  48. Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.8.0... OK
  49. 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...
  50. 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.
  51. *** extconf.rb failed ***
  52. Could not create Makefile due to some reason, probably lack of
  53. necessary libraries and/or headers. Check the mkmf.log file for more
  54. details. You may need configuration options.
  55.  
  56. Provided configuration options:
  57. --with-opt-dir
  58. --with-opt-include
  59. --without-opt-include=${opt-dir}/include
  60. --with-opt-lib
  61. --without-opt-lib=${opt-dir}/lib
  62. --with-make-prog
  63. --without-make-prog
  64. --srcdir=.
  65. --curdir
  66. --ruby=/opt/chef/embedded/bin/ruby
  67. --help
  68. --clean
  69. --use-system-libraries
  70. --enable-static
  71. --disable-static
  72. --with-zlib-dir
  73. --without-zlib-dir
  74. --with-zlib-include
  75. --without-zlib-include=${zlib-dir}/include
  76. --with-zlib-lib
  77. --without-zlib-lib=${zlib-dir}/lib
  78. --enable-cross-build
  79. --disable-cross-build
  80. /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)
  81. from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mini_portile-0.6.0/lib/mini_portile.rb:271:in `chdir'
  82. from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mini_portile-0.6.0/lib/mini_portile.rb:271:in `execute'
  83. from extconf.rb:282:in `block in patch'
  84. from extconf.rb:279:in `each'
  85. from extconf.rb:279:in `patch'
  86. from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mini_portile-0.6.0/lib/mini_portile.rb:108:in `cook'
  87. from extconf.rb:253:in `block in process_recipe'
  88. from extconf.rb:154:in `tap'
  89. from extconf.rb:154:in `process_recipe'
  90. from extconf.rb:419:in `<main>'
  91.  
  92.  
  93. Gem files will remain installed in /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.2.1 for inspection.
  94. Results logged to /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.2.1/ext/nokogiri/gem_make.out
  95.  
  96.  
  97.  
  98. Cookbook Trace:
  99. ---------------
  100. /tmp/vagrant-chef-1/chef-solo-1/cookbooks/secretserver/recipes/default.rb:21:in `from_file'
  101. /tmp/vagrant-chef-1/chef-solo-1/cookbooks/maytag-apiserver/recipes/nginx.rb:1:in `from_file'
  102. /tmp/vagrant-chef-1/chef-solo-1/cookbooks/maytag-apiserver/recipes/default.rb:3:in `from_file'
  103.  
  104.  
  105. Resource Declaration:
  106. ---------------------
  107. # In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/secretserver/recipes/default.rb
  108.  
  109. 21: chef_gem "nokogiri"
  110. 22: require 'nokogiri'
  111.  
  112.  
  113.  
  114. Compiled Resource:
  115. ------------------
  116. # Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/secretserver/recipes/default.rb:21:in `from_file'
  117.  
  118. chef_gem("nokogiri") do
  119. provider Chef::Provider::Package::Rubygems
  120. action :install
  121. retries 0
  122. retry_delay 2
  123. package_name "nokogiri"
  124. version "1.6.2.1"
  125. cookbook_name :secretserver
  126. recipe_name "default"
  127. end
  128.  
  129.  
  130.  
  131.  
  132. ================================================================================
  133. Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/maytag-apiserver/recipes/default.rb
  134. ================================================================================
  135.  
  136.  
  137. Gem::Installer::ExtensionBuildError
  138. -----------------------------------
  139. chef_gem[nokogiri] (secretserver::default line 21) had an error: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
  140.  
  141. /opt/chef/embedded/bin/ruby extconf.rb
  142. Building nokogiri using packaged libraries.
  143. checking for iconv.h... yes
  144. checking for iconv_open() in iconv.h... no
  145. checking for iconv_open() in -liconv... yes
  146. Building libxml2-2.8.0 for nokogiri with the following patches applied:
  147. - 0001-Fix-parser-local-buffers-size-problems.patch
  148. - 0002-Fix-entities-local-buffers-size-problems.patch
  149. - 0003-Fix-an-error-in-previous-commit.patch
  150. - 0004-Fix-potential-out-of-bound-access.patch
  151. - 0005-Detect-excessive-entities-expansion-upon-replacement.patch
  152. - 0006-Do-not-fetch-external-parsed-entities.patch
  153. - 0007-Enforce-XML_PARSER_EOF-state-handling-through-the-pa.patch
  154. - 0008-Improve-handling-of-xmlStopParser.patch
  155. - 0009-Fix-a-couple-of-return-without-value.patch
  156. - 0010-Keep-non-significant-blanks-node-in-HTML-parser.patch
  157. - 0011-Do-not-fetch-external-parameter-entities.patch
  158. ************************************************************************
  159. IMPORTANT! Nokogiri builds and uses a packaged version of libxml2.
  160.  
  161. If this is a concern for you and you want to use the system library
  162. instead, abort this installation process and reinstall nokogiri as
  163. follows:
  164.  
  165. gem install nokogiri -- --use-system-libraries
  166.  
  167. If you are using Bundler, tell it to use the option:
  168.  
  169. bundle config build.nokogiri --use-system-libraries
  170. bundle install
  171.  
  172. However, note that nokogiri does not necessarily support all versions
  173. of libxml2.
  174.  
  175. For example, libxml2-2.9.0 and higher are currently known to be broken
  176. and thus unsupported by nokogiri, due to compatibility problems and
  177. XPath optimization bugs.
  178. ************************************************************************
  179. Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.8.0... OK
  180. 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...
  181. 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.
  182. *** extconf.rb failed ***
  183. Could not create Makefile due to some reason, probably lack of
  184. necessary libraries and/or headers. Check the mkmf.log file for more
  185. details. You may need configuration options.
  186.  
  187. Provided configuration options:
  188. --with-opt-dir
  189. --with-opt-include
  190. --without-opt-include=${opt-dir}/include
  191. --with-opt-lib
  192. --without-opt-lib=${opt-dir}/lib
  193. --with-make-prog
  194. --without-make-prog
  195. --srcdir=.
  196. --curdir
  197. --ruby=/opt/chef/embedded/bin/ruby
  198. --help
  199. --clean
  200. --use-system-libraries
  201. --enable-static
  202. --disable-static
  203. --with-zlib-dir
  204. --without-zlib-dir
  205. --with-zlib-include
  206. --without-zlib-include=${zlib-dir}/include
  207. --with-zlib-lib
  208. --without-zlib-lib=${zlib-dir}/lib
  209. --enable-cross-build
  210. --disable-cross-build
  211. /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)
  212. from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mini_portile-0.6.0/lib/mini_portile.rb:271:in `chdir'
  213. from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mini_portile-0.6.0/lib/mini_portile.rb:271:in `execute'
  214. from extconf.rb:282:in `block in patch'
  215. from extconf.rb:279:in `each'
  216. from extconf.rb:279:in `patch'
  217. from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mini_portile-0.6.0/lib/mini_portile.rb:108:in `cook'
  218. from extconf.rb:253:in `block in process_recipe'
  219. from extconf.rb:154:in `tap'
  220. from extconf.rb:154:in `process_recipe'
  221. from extconf.rb:419:in `<main>'
  222.  
  223.  
  224. Gem files will remain installed in /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.2.1 for inspection.
  225. Results logged to /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.2.1/ext/nokogiri/gem_make.out
  226.  
  227.  
  228.  
  229. Cookbook Trace:
  230. ---------------
  231. /tmp/vagrant-chef-1/chef-solo-1/cookbooks/secretserver/recipes/default.rb:21:in `from_file'
  232. /tmp/vagrant-chef-1/chef-solo-1/cookbooks/maytag-apiserver/recipes/nginx.rb:1:in `from_file'
  233. /tmp/vagrant-chef-1/chef-solo-1/cookbooks/maytag-apiserver/recipes/default.rb:3:in `from_file'
  234.  
  235.  
  236. Relevant File Content:
  237. ----------------------
  238. /tmp/vagrant-chef-1/chef-solo-1/cookbooks/secretserver/recipes/default.rb:
  239.  
  240. 14: action :nothing
  241. 15: end.run_action(:install)
  242. 16:
  243. 17: package 'libxslt-devel' do
  244. 18: action :nothing
  245. 19: end.run_action(:install)
  246. 20:
  247. 21>> chef_gem "nokogiri"
  248. 22: require 'nokogiri'
  249. 23:
  250. 24: chef_gem 'savon'
  251. 25: require 'savon'
  252. 26:
  253.  
  254.  
  255. [2014-06-10T13:28:33+00:00] ERROR: Running exception handlers
  256. [2014-06-10T13:28:33+00:00] ERROR: Exception handlers complete
  257. [2014-06-10T13:28:33+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
  258. [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.
  259.  
  260. /opt/chef/embedded/bin/ruby extconf.rb
  261. Building nokogiri using packaged libraries.
  262. checking for iconv.h... yes
  263. checking for iconv_open() in iconv.h... no
  264. checking for iconv_open() in -liconv... yes
  265. Building libxml2-2.8.0 for nokogiri with the following patches applied:
  266. - 0001-Fix-parser-local-buffers-size-problems.patch
  267. - 0002-Fix-entities-local-buffers-size-problems.patch
  268. - 0003-Fix-an-error-in-previous-commit.patch
  269. - 0004-Fix-potential-out-of-bound-access.patch
  270. - 0005-Detect-excessive-entities-expansion-upon-replacement.patch
  271. - 0006-Do-not-fetch-external-parsed-entities.patch
  272. - 0007-Enforce-XML_PARSER_EOF-state-handling-through-the-pa.patch
  273. - 0008-Improve-handling-of-xmlStopParser.patch
  274. - 0009-Fix-a-couple-of-return-without-value.patch
  275. - 0010-Keep-non-significant-blanks-node-in-HTML-parser.patch
  276. - 0011-Do-not-fetch-external-parameter-entities.patch
  277. ************************************************************************
  278. IMPORTANT! Nokogiri builds and uses a packaged version of libxml2.
  279.  
  280. If this is a concern for you and you want to use the system library
  281. instead, abort this installation process and reinstall nokogiri as
  282. follows:
  283.  
  284. gem install nokogiri -- --use-system-libraries
  285.  
  286. If you are using Bundler, tell it to use the option:
  287.  
  288. bundle config build.nokogiri --use-system-libraries
  289. bundle install
  290.  
  291. However, note that nokogiri does not necessarily support all versions
  292. of libxml2.
  293.  
  294. For example, libxml2-2.9.0 and higher are currently known to be broken
  295. and thus unsupported by nokogiri, due to compatibility problems and
  296. XPath optimization bugs.
  297. ************************************************************************
  298. Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.8.0... OK
  299. 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...
  300. 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.
  301. *** extconf.rb failed ***
  302. Could not create Makefile due to some reason, probably lack of
  303. necessary libraries and/or headers. Check the mkmf.log file for more
  304. details. You may need configuration options.
  305.  
  306. Provided configuration options:
  307. --with-opt-dir
  308. --with-opt-include
  309. --without-opt-include=${opt-dir}/include
  310. --with-opt-lib
  311. --without-opt-lib=${opt-dir}/lib
  312. --with-make-prog
  313. --without-make-prog
  314. --srcdir=.
  315. --curdir
  316. --ruby=/opt/chef/embedded/bin/ruby
  317. --help
  318. --clean
  319. --use-system-libraries
  320. --enable-static
  321. --disable-static
  322. --with-zlib-dir
  323. --without-zlib-dir
  324. --with-zlib-include
  325. --without-zlib-include=${zlib-dir}/include
  326. --with-zlib-lib
  327. --without-zlib-lib=${zlib-dir}/lib
  328. --enable-cross-build
  329. --disable-cross-build
  330. /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)
  331. from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mini_portile-0.6.0/lib/mini_portile.rb:271:in `chdir'
  332. from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mini_portile-0.6.0/lib/mini_portile.rb:271:in `execute'
  333. from extconf.rb:282:in `block in patch'
  334. from extconf.rb:279:in `each'
  335. from extconf.rb:279:in `patch'
  336. from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mini_portile-0.6.0/lib/mini_portile.rb:108:in `cook'
  337. from extconf.rb:253:in `block in process_recipe'
  338. from extconf.rb:154:in `tap'
  339. from extconf.rb:154:in `process_recipe'
  340. from extconf.rb:419:in `<main>'
  341.  
  342.  
  343. Gem files will remain installed in /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.2.1 for inspection.
  344. Results logged to /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.2.1/ext/nokogiri/gem_make.out
  345.  
  346. [2014-06-10T13:28:33+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
  347. Chef never successfully completed! Any errors should be visible in the
  348. output above. Please fix your recipes so that they properly complete.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement