Project

General

Profile

Actions

Defect #27505

closed

Cannot install nokogiri 1.7 on Windows Ruby 2.4

Added by Alexander Ryabinovskiy over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Gems support
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

I can`t install Redmine 3.4.3 with Ruby 2.4, because it needs nokogiri 1.7.2
nokogiri 1.7.2 has limitation:
REQUIRED RUBY VERSION:
< 2.4, >= 2.1.0

We can use nokogiri >= 1.8.0 in Gemfile for Ruby 2.4


Related issues

Related to Redmine - Defect #26183: Use Nokogiri 1.7.2ClosedJean-Philippe Lang

Actions
Related to Redmine - Patch #26503: Update nokogiri gem (~> 1.8.0)ClosedJean-Philippe Lang

Actions
Has duplicate Redmine - Defect #27861: bundle install fails for nokogiri 1.7.2 (x64-mingw32) and ruby 2.4.3 on WindowsClosed

Actions
Actions #1

Updated by Toshi MARUYAMA over 6 years ago

  • Status changed from New to Needs feedback

I cannot reproduce on my CentOS 7.
Do you use Windows?
It seems Nokogori switches requiring Ruby version by OS.
https://github.com/sparklemotion/nokogiri/blob/v1.7.2/Rakefile#L235

Actions #2

Updated by Toshi MARUYAMA over 6 years ago

Actions #3

Updated by Ivan Cenov over 6 years ago

I cannot install Redmine 3.4.3 in following configuration

E:\data\redmine>ruby -v
ruby 2.4.2p198 (2017-09-14 revision 59899) [i386-mingw32]

E:\data\redmine>cmd /version
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
Ruby is installed from https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.4.2-2/rubyinstaller-2.4.2-2-x86.exe (the link from https://rubyinstaller.org/downloads/).

Gemfile:

gem "nokogiri", (RUBY_VERSION >= "2.1" ? "~> 1.7.2" : "~> 1.6.8")

Report

E:\data\redmine>bundle install --without development test rmagick
Ignoring thin-1.7.2 because its extensions are not built.  Try: gem pristine thin --version 1.7.2
Ignoring thin-1.7.2 because its extensions are not built.  Try: gem pristine thin --version 1.7.2
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "ruby ":
  In Gemfile:
    ruby  x86-mingw32

    nokogiri (~> 1.7.2) x86-mingw32 was resolved to 1.7.2, which depends on
      ruby  (< 2.4) x86-mingw32

Actions #4

Updated by Ivan Cenov over 6 years ago

P.S. After changing Gemfile:

gem "nokogiri", (RUBY_VERSION >= "2.1" ? "~> 1.7.2" : "~> 1.6.8")
to
gem "nokogiri", (RUBY_VERSION >= "2.1" ? ">= 1.7.2" : "~> 1.6.8")
the installation proceeded with installation 1.8.1.

Actions #5

Updated by Toshi MARUYAMA over 6 years ago

  • Related to Patch #26503: Update nokogiri gem (~> 1.8.0) added
Actions #6

Updated by Toshi MARUYAMA over 6 years ago

Actions #7

Updated by Toshi MARUYAMA over 6 years ago

  • Subject changed from Ruby 2.4 + nokogiri 1.7.2 to Cannot install nokogiri 1.7 on Windows Ruby 2.4
Actions #8

Updated by Toshi MARUYAMA over 6 years ago

  • Status changed from Needs feedback to Closed
  • Target version set to 3.4.4
  • Resolution set to Fixed

r17112 updates nokogiri version.

Actions #9

Updated by Toshi MARUYAMA over 6 years ago

  • Has duplicate Defect #27861: bundle install fails for nokogiri 1.7.2 (x64-mingw32) and ruby 2.4.3 on Windows added
Actions

Also available in: Atom PDF