Project

General

Profile

Redmine 2.5.2 upgrade - bundle install failed - nokogiri 1.6.3.1 error

Added by CM Gui over 9 years ago

Hi All

We are trying to upgrade from Redmine 2.4.2 to 2.5.2, and got the error below when doing a bundle install.
"libiconv is missing..... extconf.rb failed"

But we have libiconv on the server (so this is not the same problem as #38014), and had no problem installing Redmine 2.4.2 on the server previously (but "Redmine 2.4.2 bundle install" installed nokogiri-1.6.1 and not 1.6.3.1).

The extconf.rb file created by the "bundle install" in /usr/local/lib/ruby/gems/1.9/gems/nokogiri-1.6.3.1 is completely different from that of Redmine 2.4.2.

The mkmf.log in the above gems/1.9/gems/nokogiri-1.6.3.1 folder contains this "package configuration for libiconv is not found".

We tried gem install nokogiri v '1.6.3.1' - --with-iconv-lib=/usr/local/lib but still got the same error.
Also tried upgrading libiconv from 1.13.1.1 to 1.4 but didn't work.

Thank you very much in anticipation.
cmgui

System details:
Redmine 2.5.2
OS: 8.2-RELEASE FreeBSD 8.2-RELEASE
ruby 1.9.3p194 (2012-04-20 revision 35410) [i386-freebsd8]
libiconv-1.13.1_1
libxml2-2.7.8_3
libxslt-1.1.26_3

fxvmware002# bundle install

Fetching gem metadata from https://rubygems.org/.........
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.40)
Installing activerecord (3.2.19)
Installing activeresource (3.2.19)
Installing 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.

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /usr/local/bin/ruby19 extconf.rb
Building nokogiri using packaged libraries.
gnome-config: not found
-----
libiconv is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** 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:

Replies (1)

RE: Redmine 2.5.2 upgrade - bundle install failed - nokogiri 1.6.3.1 error - Added by CM Gui over 9 years ago

This seems to fix the problem:

gem install nokogiri v '1.6.3.1' - --with-iconv-dir=/usr/local/lib --ruby=/usr/local/bin/ruby19 --use-system-libraries

All is well now.

Thank you
CM Gui

CM Gui wrote:

Hi All

We are trying to upgrade from Redmine 2.4.2 to 2.5.2, and got the error below when doing a bundle install.
"libiconv is missing..... extconf.rb failed"

But we have libiconv on the server (so this is not the same problem as #38014), and had no problem installing Redmine 2.4.2 on the server previously (but "Redmine 2.4.2 bundle install" installed nokogiri-1.6.1 and not 1.6.3.1).

The extconf.rb file created by the "bundle install" in /usr/local/lib/ruby/gems/1.9/gems/nokogiri-1.6.3.1 is completely different from that of Redmine 2.4.2.

[...]

    (1-1/1)