Skip to content

Instantly share code, notes, and snippets.

@danielfone
Last active August 29, 2015 14:09
Show Gist options
  • Select an option

  • Save danielfone/1498dca4ddac06d6cb04 to your computer and use it in GitHub Desktop.

Select an option

Save danielfone/1498dca4ddac06d6cb04 to your computer and use it in GitHub Desktop.
$ uname -a
Darwin MacBook-Pro.fritz.box 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
$ ruby -v
ruby 2.1.4p265 (2014-10-27 revision 48166) [x86_64-darwin14.0]
$ gem --version
2.4.4
$ GEM_HOME="/tmp/gem_test/mygems" gem install nokogiri
Fetching: nokogiri-1.6.4.1.gem (100%)
Building native extensions. This could take a while...
Successfully installed nokogiri-1.6.4.1
1 gem installed
$ GEM_HOME="/tmp/gem_test/my gems" gem install nokogiri
Fetching: nokogiri-1.6.4.1.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/Users/danielfone/.rubies/ruby-2.1.4/bin/ruby -r ./siteconf20141118-11293-15mev6m.rb extconf.rb
checking if the C compiler accepts ... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using packaged libraries.
Ignoring atomic-1.1.15 because its extensions are not built. Try: gem pristine atomic-1.1.15
Ignoring atomic-1.1.14 because its extensions are not built. Try: gem pristine atomic-1.1.14
Ignoring bcrypt-ruby-3.1.2 because its extensions are not built. Try: gem pristine bcrypt-ruby-3.1.2
Ignoring bcrypt-ruby-3.1.1 because its extensions are not built. Try: gem pristine bcrypt-ruby-3.1.1
Ignoring capybara-webkit-0.11.0 because its extensions are not built. Try: gem pristine capybara-webkit-0.11.0
Ignoring eventmachine-1.0.3 because its extensions are not built. Try: gem pristine eventmachine-1.0.3
Ignoring eventmachine-0.12.10 because its extensions are not built. Try: gem pristine eventmachine-0.12.10
Ignoring ffi-1.9.3 because its extensions are not built. Try: gem pristine ffi-1.9.3
Ignoring ffi-1.5.0 because its extensions are not built. Try: gem pristine ffi-1.5.0
Ignoring ffi-1.0.11 because its extensions are not built. Try: gem pristine ffi-1.0.11
Ignoring http_parser.rb-0.5.3 because its extensions are not built. Try: gem pristine http_parser.rb-0.5.3
Ignoring json-1.8.0 because its extensions are not built. Try: gem pristine json-1.8.0
Ignoring kgio-2.8.1 because its extensions are not built. Try: gem pristine kgio-2.8.1
Ignoring levenshtein-0.2.2 because its extensions are not built. Try: gem pristine levenshtein-0.2.2
Ignoring libv8-3.3.10.4 because its extensions are not built. Try: gem pristine libv8-3.3.10.4
checking for iconv using --with-opt-* flags... yes
************************************************************************
IMPORTANT NOTICE:
Buidling Nokogiri with a packaged version of libxml2-2.9.2
with the following patches applied:
- 0001-Revert-Missing-initialization-for-the-catalog-module.patch
- 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch
Team Nokogiri will keep on doing their best to provide security
updates in a timely manner, but if this is a concern for you and want
to use the system library instead; abort this installation process and
reinstall nokogiri as follows:
gem install nokogiri -- --use-system-libraries
[--with-xml2-config=/path/to/xml2-config]
[--with-xslt-config=/path/to/xslt-config]
If you are using Bundler, tell it to use the option:
bundle config build.nokogiri --use-system-libraries
bundle install
Note, however, that nokogiri is not fully compatible with arbitrary
versions of libxml2 provided by OS/package vendors.
************************************************************************
Extracting libxml2-2.9.2.tar.gz into tmp/x86_64-apple-darwin14.0.0/ports/libxml2/2.9.2... ERROR
bsdtar: Error opening archive: Failed to open '/private/tmp/gem_test/my'
*** 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=/Users/danielfone/.rubies/ruby-2.1.4/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
/Users/danielfone/.gem/ruby/2.1.0/gems/mini_portile-0.5.2/lib/mini_portile.rb:248:in `extract_file': Failed to complete extract task (RuntimeError)
from /Users/danielfone/.gem/ruby/2.1.0/gems/mini_portile-0.5.2/lib/mini_portile.rb:34:in `block in extract'
from /Users/danielfone/.gem/ruby/2.1.0/gems/mini_portile-0.5.2/lib/mini_portile.rb:32:in `each'
from /Users/danielfone/.gem/ruby/2.1.0/gems/mini_portile-0.5.2/lib/mini_portile.rb:32:in `extract'
from /Users/danielfone/.gem/ruby/2.1.0/gems/mini_portile-0.5.2/lib/mini_portile.rb:106:in `cook'
from extconf.rb:268:in `block in process_recipe'
from extconf.rb:167:in `tap'
from extconf.rb:167:in `process_recipe'
from extconf.rb:455:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in /tmp/gem_test/my gems/gems/nokogiri-1.6.4.1 for inspection.
Results logged to /tmp/gem_test/my gems/extensions/x86_64-darwin-14/2.1.0-static/nokogiri-1.6.4.1/gem_make.out
/Users/danielfone/.rubies/ruby-2.1.4/bin/ruby -r ./siteconf20141118-11293-15mev6m.rb extconf.rb
checking if the C compiler accepts ... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using packaged libraries.
Ignoring atomic-1.1.15 because its extensions are not built. Try: gem pristine atomic-1.1.15
Ignoring atomic-1.1.14 because its extensions are not built. Try: gem pristine atomic-1.1.14
Ignoring bcrypt-ruby-3.1.2 because its extensions are not built. Try: gem pristine bcrypt-ruby-3.1.2
Ignoring bcrypt-ruby-3.1.1 because its extensions are not built. Try: gem pristine bcrypt-ruby-3.1.1
Ignoring capybara-webkit-0.11.0 because its extensions are not built. Try: gem pristine capybara-webkit-0.11.0
Ignoring eventmachine-1.0.3 because its extensions are not built. Try: gem pristine eventmachine-1.0.3
Ignoring eventmachine-0.12.10 because its extensions are not built. Try: gem pristine eventmachine-0.12.10
Ignoring ffi-1.9.3 because its extensions are not built. Try: gem pristine ffi-1.9.3
Ignoring ffi-1.5.0 because its extensions are not built. Try: gem pristine ffi-1.5.0
Ignoring ffi-1.0.11 because its extensions are not built. Try: gem pristine ffi-1.0.11
Ignoring http_parser.rb-0.5.3 because its extensions are not built. Try: gem pristine http_parser.rb-0.5.3
Ignoring json-1.8.0 because its extensions are not built. Try: gem pristine json-1.8.0
Ignoring kgio-2.8.1 because its extensions are not built. Try: gem pristine kgio-2.8.1
Ignoring levenshtein-0.2.2 because its extensions are not built. Try: gem pristine levenshtein-0.2.2
Ignoring libv8-3.3.10.4 because its extensions are not built. Try: gem pristine libv8-3.3.10.4
checking for iconv using --with-opt-* flags... yes
************************************************************************
IMPORTANT NOTICE:
Buidling Nokogiri with a packaged version of libxml2-2.9.2
with the following patches applied:
- 0001-Revert-Missing-initialization-for-the-catalog-module.patch
- 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch
Team Nokogiri will keep on doing their best to provide security
updates in a timely manner, but if this is a concern for you and want
to use the system library instead; abort this installation process and
reinstall nokogiri as follows:
gem install nokogiri -- --use-system-libraries
[--with-xml2-config=/path/to/xml2-config]
[--with-xslt-config=/path/to/xslt-config]
If you are using Bundler, tell it to use the option:
bundle config build.nokogiri --use-system-libraries
bundle install
Note, however, that nokogiri is not fully compatible with arbitrary
versions of libxml2 provided by OS/package vendors.
************************************************************************
Extracting libxml2-2.9.2.tar.gz into tmp/x86_64-apple-darwin14.0.0/ports/libxml2/2.9.2... ERROR
bsdtar: Error opening archive: Failed to open '/private/tmp/gem_test/my'
*** 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=/Users/danielfone/.rubies/ruby-2.1.4/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
/Users/danielfone/.gem/ruby/2.1.0/gems/mini_portile-0.5.2/lib/mini_portile.rb:248:in `extract_file': Failed to complete extract task (RuntimeError)
from /Users/danielfone/.gem/ruby/2.1.0/gems/mini_portile-0.5.2/lib/mini_portile.rb:34:in `block in extract'
from /Users/danielfone/.gem/ruby/2.1.0/gems/mini_portile-0.5.2/lib/mini_portile.rb:32:in `each'
from /Users/danielfone/.gem/ruby/2.1.0/gems/mini_portile-0.5.2/lib/mini_portile.rb:32:in `extract'
from /Users/danielfone/.gem/ruby/2.1.0/gems/mini_portile-0.5.2/lib/mini_portile.rb:106:in `cook'
from extconf.rb:268:in `block in process_recipe'
from extconf.rb:167:in `tap'
from extconf.rb:167:in `process_recipe'
from extconf.rb:455:in `<main>'
extconf failed, exit code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment