Impossible to install Nokogiri with libiconv in Mac OSX 10.11 El Capitan

124 views
Skip to first unread message

Tito David Peña Montenegro

unread,
Jan 16, 2016, 10:08:01 PM1/16/16
to nokogiri-talk
I am trying desperately to install git2r in R, but libiconv is corrupted thanks to Nokogiri conflicts. 

I have read a ton of posts and everything has successfully failed. Yes. I already tried what is in http://www.nokogiri.org/tutorials/installing_nokogiri.html#mac_os_x

What can I do?  Below is the list of commands I tried in bold. 

s172-21-36-h118:~ samanthajoye$ sudo gem update --system

Password:

Updating rubygems-update

Fetching: rubygems-update-2.5.1.gem (100%)

Successfully installed rubygems-update-2.5.1

Parsing documentation for rubygems-update-2.5.1

Installing ri documentation for rubygems-update-2.5.1

Installing darkfish documentation for rubygems-update-2.5.1

Done installing documentation for rubygems-update after 15 seconds

Parsing documentation for rubygems-update-2.5.1

Done installing documentation for rubygems-update after 0 seconds

Installing RubyGems 2.5.1

RubyGems 2.5.1 installed

Parsing documentation for rubygems-2.5.1

Installing ri documentation for rubygems-2.5.1


=== 2.5.1 / 2015-12-10


Bug fixes:


* Ensure platform sorting only uses strings. Affected binary installs on Windows.

  Issue #1369 reported by Ryan Atball (among others).

  Pull request #1375 by Samuel E. Giddins.

* Revert PR #1332. Unable to reproduce, and nil should be impossible.

* Gem::Specification#to_fullpath now returns .rb extensions when such a file

  exists.  Pull request #1114 by y-yagi.

* RubyGems now handles Net::HTTPFatalError instead of crashing.  Pull

  request #1314 by Samuel E. Giddins.

* Updated bundled Molinillo to 0.4.0.  Pull request #1322, #1396 by Samuel E.

  Giddins.

* Improved performance of spec loading by reducing likelihood of loading he

  complete specification.  Pull request #1373 by Aaron Patterson.

* Improved caching of requirable files  Pull request #1377 by Aaron Patterson.

* Fixed activation of gems with development dependencies.  Pull request #1388

  by Samuel E. Giddins.

* RubyGems now uses the same Molinillo vendoring strategy as Bundler.  Pull

  request #1397 by Samuel E. Giddins.

* Fixed documentation of Gem::Requirement.parse.  Pull request #1398 by

  Juanito Fatas.

* RubyGems no longer warns when a prerelease gem has prerelease dependencies.

  Pull request #1399 by Samuel E. Giddins.

* Fixed Gem::Version documentation example.  Pull request #1401 by Guilherme

  Goettems Schneider.

* Updated documentation links to https://.  Pull request #1404 by Suriyaa

  Kudo.

* Fixed double word typo.  Pull request #1411 by Jake Worth.


=== 2.5.0 / 2015-11-03


Major enhancements:


* Added the Gem::Licenses class which provides a set of standard license

  identifiers as set by spdx.org. This is now used by the

  Gem::Specification#license attribute to try to standardize (though not

  enforce) licenses set by gem authors.


  Pull request #1249 by Kyle Mitchell.


Minor enhancements:


* Use Molinillo as the resolver library.  This is the same resolver as used by

  Bundler.  Pull request #1189 by Samuel E. Giddins.

* Add `--skip=gem_name` to Pristine command.  Pull request #1018 by windwiny.

* The parsed gem dependencies file is now available via Gem.gemdeps following

  Gem.use_gemdeps.  Pull request #1224 by Hsing-Hui Hsu, issue #1213 by

  Michal Papis.

* Moved description attribute to recommended for Gem::Specification.

  Pull request #1046 by Michal Papis

* Moved `Gem::Indexer#abbreviate` and `#sanitize` to `Gem::Specification`.

  Pull request #1145 by Arthur Nogueira Neves

* Cache Gem::Version segments for `#bump` and `#release`.

  Pull request #1131 by Matijs van Zuijlen

* Fix edge case in `levenshtein_distance` for comparing longer strings.

  Pull request #1173 by Richard Schneeman

* Remove duplication from List#to_a, improving from O(n^2) to O(n) time.

  Pull request #1200 by Marc Siegel.

* Gem::Specification.add_specs is deprecated and will be removed from version

  3.0 with no replacement.  To add specs, install the gem, then reset the

  cache.

* Gem::Specification.add_spec is deprecated and will be removed from version

  3.0 with no replacement.  To add specs, install the gem, then reset the

  cache.

* Gem::Specification.remove_spec is deprecated and will be removed from version

  3.0 with no replacement.  To remove specs, uninstall the gem, then reset the

  cache by calling Gem::Specification.reset.

* Call Array#compact before calling Array#uniq for minor speed improvement in

  the Gem::Specification#files method.

  Pull request #1253 by Marat Amerov.

* Use stringio instead of custom String classes.

  Pull request #1250 by Petr Skocik.

* Use URI#host instead of URI#hostname to retain backwards compatibility with

  Ruby 1.9.2 and earlier in util library.

  Pull request #1288 by Joe Rafaniello.

* Documentation update for gem sources.

  Pull request #1324 by Ilya Vassilevsky.

* Documentation update for required_ruby_version.

  Pull request #1321 by Matt Patterson.

* Documentation update for gem update.

  Pull request #1306 by Tim Blair.

* Emit a warning on SRV resolve failure.

  Pull request #1023 by Ivan Kuchin.

* Allow duplicate dependencies between runtime and development.

  Pull request #1032 by Murray Steele.

* The gem env command now shows the user installation directory.

  Pull request #1343 by Luis Sagastume.

* The Gem::Platform#=== method now treats a nil cpu arch the same as 'universal'.

  Pull request #1356 by Daniel Berger.

* Improved memory performance in Gem::Specification.traverse.  Pull request

  #1188 by Aaron Patterson.

* RubyGems packages now support symlinks.  Pull request #1209 by Samuel E.

  Giddins.

* RubyGems no longer outputs mkmf.log if it does not exist.  Pull request

  #1222 by Andrew Hooker.

* Added Bitrig platform.  Pull request #1233 by John C. Vernaleo.

* Improved error message for first-time RubyGems developers.  Pull request

  #1241 by André Arko

* Improved performance of Gem::Specification#load with cached specs.  Pull

  request #1297 by Samuel E. Giddins.

* Gem::RemoteFetcher allows users to set HTTP headers.  Pull request #1363 by

  Agis Anastasopoulos.


Bug fixes:


* Fixed Rake homepage url in example for Gem::Specification#homepage.

  Pull request #1171 by Arthur Nogueira Neves

* Don't crash if partially uninstalled gem can't be found.

  Pull request #1283 by Cezary Baginski.

* Test warning cleanup.

  Pull request #1298 by Samuel E. Giddins.

* Documentation fix for GemDependencyAPI.

  Pull request #1308 by Michael Papis.

* Fetcher now ignores ENOLCK errors in single threaded environments. This

  handles an issue with gem installation on NFS as best we can. Addresses

  issue #1176 by Ryan Moore.

  Pull request #1327 by Daniel Berger.

* Fix some path quoting issues in the test suite.

  Pull request #1328 by Gavin Miller.

* Fix NoMethodError in running ruby processes when gems are uninstalled.

  Pull request #1332 by Peter Drake.

* Fixed a potential NoMethodError for gem cleanup.

  Pull request #1333 by Peter Drake.

* Fixed gem help bug.

  Issue #1352 reported by bogem, pull request #1357 by Luis Sagastume.

* Remove temporary directories after tests finish.  Pull request #1181 by

  Nobuyoshi Nokada.

* Update links in RubyGems documentation.  Pull request #1185 by Darío Hereñú.

* Prerelease gem executables can now be run.  Pull request #1186 by Samuel E.

  Giddins.

* Updated RubyGems travis-ci ruby versions.  Pull request #1187 by Samuel E.

  Giddins.

* Fixed release date of RubyGems 2.4.6.  Pull request #1190 by Frieder

  Bluemle.

* Fixed bugs in gem activation.  Pull request #1202 by Miklós Fazekas.

* Fixed documentation for `gem list`.  Pull request #1228 by Godfrey Chan.

* Fixed #1200 history entry.  Pull request #1234 by Marc Siegel.

* Fixed synchronization issue when resetting the Gem::Specification gem list.

  Pull request #1239 by Samuel E. Giddins.

* Fixed running tests in parallel.  Pull request #1257 by SHIBATA Hiroshi.

* Fixed running tests with `--program-prefix` or `--program-suffix` for ruby.

  Pull request #1258 by Shane Gibbs.

* Fixed Gem::Specification#to_yaml.  Pull request #1262 by Hiroaki Izu.

* Fixed taintedness of Gem::Specification#raw_require_paths.  Pull request

  #1268 by Sam Ruby.

* Fixed sorting of platforms when installing gems.  Pull request #1271 by

  nonsequitur.

* Use `--no-document` over deprecated documentation options when installing

  dependencies on travis.  Pull request #1272 by takiy33.

* Improved support for IPv6 addresses in URIs.  Pull request #1275 by Joe

  Rafaniello.

* Spec validation no longer crashes if a file does not exist.  Pull request

  #1278 by Samuel E. Giddins.

* Gems can now be installed within `rescue`.  Pull request #1282 by Samuel E.

  Giddins.

* Increased Diffie-Hellman key size for tests for modern OpenSSL.  Pull

  request #1290 by Vít Ondruch.

* RubyGems handles invalid config files better.  Pull request #1367 by Agis

  Anastasopoulos.


=== 2.4.8 / 2015-06-08


Bug fixes:


* Tightened API endpoint checks for CVE-2015-3900


=== 2.4.7 / 2015-05-14


Bug fixes:


* Limit API endpoint to original security domain for CVE-2015-3900.

  Fix by claudijd


=== 2.4.6 / 2015-02-05


Bug fixes:


* Fixed resolving gems with both upper and lower requirement boundaries.

  Issue #1141 by Jakub Jirutka.

* Moved extension directory after require_paths to fix missing constant bugs

  in some gems with C extensions.  Issue #784 by André Arko, pull request

  #1137 by Barry Allard.

* Use Gem::Dependency#requirement when adding a dependency to an existing

  dependency instance.  Pull request #1101 by Josh Cheek.

* Fixed warning of shadowed local variable in Gem::Specification.  Pull request

  #1109 by Rohit Arondekar

* Gem::Requirement should always sort requirements before coercion to Hash.

  Pull request #1139 by Eito Katagiri.

* The `gem open` command should change the current working directory before

  opening the editor.  Pull request #1142 by Alex Wood.

* Ensure quotes are stripped from the Windows launcher script used to install

  gems.  Pull request #1115 by Youngjun Song.

* Fixed errors when writing to NFS to to 0444 files.  Issue #1161 by Emmanuel

  Hadoux.

* Removed dead code in Gem::StreamUI.  Pull request #1117 by mediaslave24.

* Fixed typos.  Pull request #1096 by hakeda.

* Relaxed CMake dependency for RHEL 6 and CentOS 6.  Pull request #1124 by Vít

  Ondruch.

* Relaxed Psych dependency.  Pull request #1128 by Vít Ondruch.



------------------------------------------------------------------------------


RubyGems installed the following executables:

/Users/samanthajoye/.rbenv/versions/2.2.3/bin/gem


Ruby Interactive (ri) documentation was installed. ri is kind of like man 

pages for ruby libraries. You may access it like this:

  ri Classname

  ri Classname.class_method

  ri Classname#instance_method

If you do not wish to install this documentation in the future, use the

--no-document flag, or set it as the default in your ~/.gemrc file. See

'gem help env' for details.


RubyGems system software updated

s172-21-36-h118:~ samanthajoye$ brew unlink gcc-4.2

Error: No such keg: /usr/local/Cellar/gcc-4.2

s172-21-36-h118:~ samanthajoye$ gem uninstall nokogiri

s172-21-36-h118:~ samanthajoye$ xcode-select --install

xcode-select: error: command line tools are already installed, use "Software Update" to install updates

s172-21-36-h118:~ samanthajoye$ gem install nokogiri

Building native extensions.  This could take a while...

ERROR:  Error installing nokogiri:

ERROR: Failed to build gem native extension.


    current directory: /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/ext/nokogiri

/Users/samanthajoye/.rbenv/versions/2.2.3/bin/ruby -r ./siteconf20160116-73460-1wabdhb.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.

Using mini_portile version 2.0.0

checking for iconv.h... yes

checking for gzdopen() in -lz... yes

checking for iconv... yes

************************************************************************

IMPORTANT NOTICE:


Building 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

- 0003-Stop-parsing-on-entities-boundaries-errors.patch

- 0004-Cleanup-conditional-section-error-handling.patch

- 0005-CVE-2015-1819-Enforce-the-reader-to-run-in-constant-.patch

- 0006-Another-variation-of-overflow-in-Conditional-section.patch

- 0007-Fix-an-error-in-previous-Conditional-section-patch.patch

- 0008-CVE-2015-8035-Fix-XZ-compression-support-loop.patch

- 0009-Updated-config.guess.patch

- 0010-Fix-parsering-short-unclosed-comment-uninitialized-access.patch

- 0011-Avoid-extra-processing-of-MarkupDecl-when-EOF.patch

- 0012-Avoid-processing-entities-after-encoding-conversion-.patch

- 0013-CVE-2015-7497-Avoid-an-heap-buffer-overflow-in-xmlDi.patch

- 0014-CVE-2015-5312-Another-entity-expansion-issue.patch

- 0015-Add-xmlHaltParser-to-stop-the-parser.patch

- 0016-Detect-incoherency-on-GROW.patch

- 0017-CVE-2015-7500-Fix-memory-access-error-due-to-incorre.patch

- 0018-CVE-2015-8242-Buffer-overead-with-HTML-parser-in-pus.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-darwin15.2.0/ports/libxml2/2.9.2... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0001-Revert-Missing-initialization-for-the-catalog-module.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0003-Stop-parsing-on-entities-boundaries-errors.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0004-Cleanup-conditional-section-error-handling.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0005-CVE-2015-1819-Enforce-the-reader-to-run-in-constant-.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0006-Another-variation-of-overflow-in-Conditional-section.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0007-Fix-an-error-in-previous-Conditional-section-patch.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0008-CVE-2015-8035-Fix-XZ-compression-support-loop.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0009-Updated-config.guess.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0010-Fix-parsering-short-unclosed-comment-uninitialized-access.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0011-Avoid-extra-processing-of-MarkupDecl-when-EOF.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0012-Avoid-processing-entities-after-encoding-conversion-.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0013-CVE-2015-7497-Avoid-an-heap-buffer-overflow-in-xmlDi.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0014-CVE-2015-5312-Another-entity-expansion-issue.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0015-Add-xmlHaltParser-to-stop-the-parser.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0016-Detect-incoherency-on-GROW.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0017-CVE-2015-7500-Fix-memory-access-error-due-to-incorre.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0018-CVE-2015-8242-Buffer-overead-with-HTML-parser-in-pus.patch... OK

Running 'configure' for libxml2 2.9.2... OK

Running 'compile' for libxml2 2.9.2... ERROR, review '/Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/ext/nokogiri/tmp/x86_64-apple-darwin15.2.0/ports/libxml2/2.9.2/compile.log' to see what happened. Last lines are:

========================================================================

  CCLD     testlimits

sed -e 's?\@XML_LIBDIR\@?-L/Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/ports/x86_64-apple-darwin15.2.0/libxml2/2.9.2/lib?g' \

    -e 's?\@XML_INCLUDEDIR\@?-I/Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/ports/x86_64-apple-darwin15.2.0/libxml2/2.9.2/include/libxml2?g' \

    -e 's?\@VERSION\@?2.9.2?g' \

    -e 's?\@XML_LIBS\@?-lxml2 -lz -lpthread  -liconv -lm ?g' \

      < ./xml2Conf.sh.in > xml2Conf.tmp \

&& mv xml2Conf.tmp xml2Conf.sh

Making all in doc

Making all in .

make[3]: Nothing to be done for `all-am'.

Making all in devhelp

make[3]: Nothing to be done for `all'.

Making all in examples

  CC       io1.o

  CCLD     io1

clang: error: no such file or directory: '/usr/local/lib/libiconv.dylib'

make[3]: *** [io1] Error 1

make[2]: *** [all-recursive] Error 1

make[1]: *** [all-recursive] Error 1

make: *** [all] Error 2

========================================================================

*** 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=/Users/samanthajoye/.rbenv/versions/2.2.3/bin/$(RUBY_BASE_NAME)

--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/samanthajoye/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mini_portile2-2.0.0/lib/mini_portile2/mini_portile.rb:366:in `block in execute': Failed to complete compile task (RuntimeError)

from /Users/samanthajoye/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mini_portile2-2.0.0/lib/mini_portile2/mini_portile.rb:337:in `chdir'

from /Users/samanthajoye/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mini_portile2-2.0.0/lib/mini_portile2/mini_portile.rb:337:in `execute'

from /Users/samanthajoye/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mini_portile2-2.0.0/lib/mini_portile2/mini_portile.rb:111:in `compile'

from /Users/samanthajoye/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mini_portile2-2.0.0/lib/mini_portile2/mini_portile.rb:150:in `cook'

from extconf.rb:289:in `block (2 levels) in process_recipe'

from extconf.rb:182:in `block in chdir_for_build'

from extconf.rb:181:in `chdir'

from extconf.rb:181:in `chdir_for_build'

from extconf.rb:288:in `block in process_recipe'

from extconf.rb:187:in `tap'

from extconf.rb:187:in `process_recipe'

from extconf.rb:478:in `<main>'


To see why this extension failed to compile, please check the mkmf.log which can be found here:


  /Users/samanthajoye/.gems/extensions/x86_64-darwin-15/2.2.0-static/nokogiri-1.6.7.1/mkmf.log


extconf failed, exit code 1


Gem files will remain installed in /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1 for inspection.

Results logged to /Users/samanthajoye/.gems/extensions/x86_64-darwin-15/2.2.0-static/nokogiri-1.6.7.1/gem_make.out


current directory: /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/ext/nokogiri

/Users/samanthajoye/.rbenv/versions/2.2.3/bin/ruby -r ./siteconf20160116-73460-1wabdhb.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.

Using mini_portile version 2.0.0

checking for iconv.h... yes

checking for gzdopen() in -lz... yes

checking for iconv... yes

************************************************************************

IMPORTANT NOTICE:

s172-21-36-h118:~ samanthajoye$ less /Users/samanthajoye/.gems/extensions/x86_64-darwin-15/2.2.0-static/nokogiri-1.6.7.1/gem_make.out

Building 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

        - 0003-Stop-parsing-on-entities-boundaries-errors.patch

        - 0004-Cleanup-conditional-section-error-handling.patch

        - 0005-CVE-2015-1819-Enforce-the-reader-to-run-in-constant-.patch

        - 0006-Another-variation-of-overflow-in-Conditional-section.patch

        - 0007-Fix-an-error-in-previous-Conditional-section-patch.patch

        - 0008-CVE-2015-8035-Fix-XZ-compression-support-loop.patch

        - 0009-Updated-config.guess.patch

        - 0010-Fix-parsering-short-unclosed-comment-uninitialized-access.patch

        - 0011-Avoid-extra-processing-of-MarkupDecl-when-EOF.patch

        - 0012-Avoid-processing-entities-after-encoding-conversion-.patch

        - 0013-CVE-2015-7497-Avoid-an-heap-buffer-overflow-in-xmlDi.patch

        - 0014-CVE-2015-5312-Another-entity-expansion-issue.patch

        - 0015-Add-xmlHaltParser-to-stop-the-parser.patch

        - 0016-Detect-incoherency-on-GROW.patch

        - 0017-CVE-2015-7500-Fix-memory-access-error-due-to-incorre.patch

        - 0018-CVE-2015-8242-Buffer-overead-with-HTML-parser-in-pus.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-darwin15.2.0/ports/libxml2/2.9.2... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0001-Revert-Missing-initialization-for-the-catalog-module.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0003-Stop-parsing-on-entities-boundaries-errors.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0004-Cleanup-conditional-section-error-handling.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0005-CVE-2015-1819-Enforce-the-reader-to-run-in-constant-.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0006-Another-variation-of-overflow-in-Conditional-section.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0007-Fix-an-error-in-previous-Conditional-section-patch.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0008-CVE-2015-8035-Fix-XZ-compression-support-loop.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0009-Updated-config.guess.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0010-Fix-parsering-short-unclosed-comment-uninitialized-access.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0011-Avoid-extra-processing-of-MarkupDecl-when-EOF.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0012-Avoid-processing-entities-after-encoding-conversion-.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0013-CVE-2015-7497-Avoid-an-heap-buffer-overflow-in-xmlDi.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0014-CVE-2015-5312-Another-entity-expansion-issue.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0015-Add-xmlHaltParser-to-stop-the-parser.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0016-Detect-incoherency-on-GROW.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0017-CVE-2015-7500-Fix-memory-access-error-due-to-incorre.patch... OK

Running git apply with /Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/patches/libxml2/0018-CVE-2015-8242-Buffer-overead-with-HTML-parser-in-pus.patch... OK

Running 'configure' for libxml2 2.9.2... OK

Running 'compile' for libxml2 2.9.2... ERROR, review '/Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/ext/nokogiri/tmp/x86_64-apple-darwin15.2.0/ports/libxml2/2.9.2/compile.log' to see what happened. Last lines are:

========================================================================

CCLD     testlimits

sed -e 's?\@XML_LIBDIR\@?-L/Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/ports/x86_64-apple-darwin15.2.0/libxml2/2.9.2/lib?g' \

            -e 's?\@XML_INCLUDEDIR\@?-I/Users/samanthajoye/.gems/gems/nokogiri-1.6.7.1/ports/x86_64-apple-darwin15.2.0/libxml2/2.9.2/include/libxml2?g' \

            -e 's?\@VERSION\@?2.9.2?g' \

            -e 's?\@XML_LIBS\@?-lxml2 -lz -lpthread  -liconv -lm ?g' \

               < ./xml2Conf.sh.in > xml2Conf.tmp \

        && mv xml2Conf.tmp xml2Conf.sh

Making all in doc

Making all in .

make[3]: Nothing to be done for `all-am'.

Making all in devhelp

make[3]: Nothing to be done for `all'.

Making all in examples

  CC       io1.o

  CCLD     io1

clang: error: no such file or directory: '/usr/local/lib/libiconv.dylib'

make[3]: *** [io1] Error 1

make[2]: *** [all-recursive] Error 1

make[1]: *** [all-recursive] Error 1

make: *** [all] Error 2

========================================================================

*** 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=/Users/samanthajoye/.rbenv/versions/2.2.3/bin/$(RUBY_BASE_NAME)

        --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/samanthajoye/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mini_portile2-2.0.0/lib/mini_portile2/mini_portile.rb:366:in `block in execute': Failed to complete compile task (RuntimeError)

        from /Users/samanthajoye/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mini_portile2-2.0.0/lib/mini_portile2/mini_portile.rb:337:in `chdir'

from /Users/samanthajoye/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mini_portile2-2.0.0/lib/mini_portile2/mini_portile.rb:337:in `execute'

        from /Users/samanthajoye/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mini_portile2-2.0.0/lib/mini_portile2/mini_portile.rb:111:in `compile'

        from /Users/samanthajoye/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mini_portile2-2.0.0/lib/mini_portile2/mini_portile.rb:150:in `cook'

        from extconf.rb:289:in `block (2 levels) in process_recipe'

        from extconf.rb:182:in `block in chdir_for_build'

        from extconf.rb:181:in `chdir'

        from extconf.rb:181:in `chdir_for_build'

        from extconf.rb:288:in `block in process_recipe'

        from extconf.rb:187:in `tap'

        from extconf.rb:187:in `process_recipe'

        from extconf.rb:478:in `<main>'


To see why this extension failed to compile, please check the mkmf.log which can be found here:


  /Users/samanthajoye/.gems/extensions/x86_64-darwin-15/2.2.0-static/nokogiri-1.6.7.1/mkmf.log


extconf failed, exit code 1

Reply all
Reply to author
Forward
0 new messages