MacOSX10.9のRedmineを2.5.2に更新した
MacOSX 10.9 (Mavericks)にて、Redmineを2.5.0から2.5.2に更新した。
インストール
いつものコマンドを叩くが、(何故かいつもの様に)エラーが発生してしまう。
$ sudo bundle install Fetching gem metadata from https://rubygems.org/......... Resolving dependencies... Using rake (10.1.1) Installing i18n (0.6.11) Installing multi_json (1.10.1) Installing activesupport (3.2.19) Using builder (3.0.0) Installing activemodel (3.2.19) Using erubis (2.7.0) Using journey (1.0.4) Using rack (1.4.5) Using rack-cache (1.2) Using rack-test (0.6.2) Using hike (1.2.3) Using tilt (1.4.1) Using sprockets (2.2.2) Installing actionpack (3.2.19) Using mime-types (1.25.1) Installing polyglot (0.3.5) Using treetop (1.4.15) Using mail (2.5.4) Installing actionmailer (3.2.19) Using arel (3.0.3) Installing tzinfo (0.3.41) Installing activerecord (3.2.19) Installing activeresource (3.2.19) Using awesome_nested_set (2.1.6) Using bundler (1.3.5) Installing mini_portile (0.6.0) Installing nokogiri (1.6.3.1) Building nokogiri using packaged libraries. 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. ************************************************************************ Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/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-apple-darwin13/ports/libxml2/2.8.0... OK Running patch with /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.3.1/ports/patches/libxml2/0001-Fix-parser-local-buffers-size-problems.patch... Running 'patch' for libxml2 2.8.0... OK Running patch with /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.3.1/ports/patches/libxml2/0002-Fix-entities-local-buffers-size-problems.patch... Running 'patch' for libxml2 2.8.0... OK Running patch with /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.3.1/ports/patches/libxml2/0003-Fix-an-error-in-previous-commit.patch... Running 'patch' for libxml2 2.8.0... OK Running patch with /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.3.1/ports/patches/libxml2/0004-Fix-potential-out-of-bound-access.patch... Running 'patch' for libxml2 2.8.0... OK Running patch with /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.3.1/ports/patches/libxml2/0005-Detect-excessive-entities-expansion-upon-replacement.patch... Running 'patch' for libxml2 2.8.0... OK Running patch with /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.3.1/ports/patches/libxml2/0006-Do-not-fetch-external-parsed-entities.patch... Running 'patch' for libxml2 2.8.0... OK Running patch with /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.3.1/ports/patches/libxml2/0007-Enforce-XML_PARSER_EOF-state-handling-through-the-pa.patch... Running 'patch' for libxml2 2.8.0... OK Running patch with /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.3.1/ports/patches/libxml2/0008-Improve-handling-of-xmlStopParser.patch... Running 'patch' for libxml2 2.8.0... OK Running patch with /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.3.1/ports/patches/libxml2/0009-Fix-a-couple-of-return-without-value.patch... Running 'patch' for libxml2 2.8.0... OK Running patch with /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.3.1/ports/patches/libxml2/0010-Keep-non-significant-blanks-node-in-HTML-parser.patch... Running 'patch' for libxml2 2.8.0... OK Running patch with /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.3.1/ports/patches/libxml2/0011-Do-not-fetch-external-parameter-entities.patch... Running 'patch' for libxml2 2.8.0... OK Running 'configure' for libxml2 2.8.0... OK Running 'compile' for libxml2 2.8.0... ERROR, review 'tmp/x86_64-apple-darwin13/ports/libxml2/2.8.0/compile.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 --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=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/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 /Library/Ruby/Gems/2.0.0/gems/mini_portile-0.6.0/lib/mini_portile.rb:279:in `block in execute': Failed to complete compile task (RuntimeError) from /Library/Ruby/Gems/2.0.0/gems/mini_portile-0.6.0/lib/mini_portile.rb:271:in `chdir' from /Library/Ruby/Gems/2.0.0/gems/mini_portile-0.6.0/lib/mini_portile.rb:271:in `execute' from /Library/Ruby/Gems/2.0.0/gems/mini_portile-0.6.0/lib/mini_portile.rb:70:in `compile' from /Library/Ruby/Gems/2.0.0/gems/mini_portile-0.6.0/lib/mini_portile.rb:110: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:423:in `<main>' Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.3.1 for inspection. Results logged to /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.3.1/ext/nokogiri/gem_make.out An error occurred while installing nokogiri (1.6.3.1), and Bundler cannot continue. Make sure that `gem install nokogiri -v '1.6.3.1'` succeeds before bundling.
コンパイルに失敗しているようだが、手っ取り早く別のオプションを使ったら成功した。
$ sudo gem install nokogiri -v '1.6.3.1' -- --use-system-libraries Building native extensions with: '--use-system-libraries' This could take a while... Building nokogiri using system libraries. Successfully installed nokogiri-1.6.3.1 Parsing documentation for nokogiri-1.6.3.1 unable to convert "\xCA" from ASCII-8BIT to UTF-8 for lib/nokogiri/nokogiri.bundle, skipping Installing ri documentation for nokogiri-1.6.3.1 1 gem installed
"bundle install"を再実行して、Redmineもバージョンアップ出来ることを確認した。