Defect #27505
closed
Cannot install nokogiri 1.7 on Windows Ruby 2.4
Added by Alexander Ryabinovskiy about 7 years ago.
Updated almost 7 years ago.
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
- Status changed from New to Needs feedback
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
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.
- Related to Patch #26503: Update nokogiri gem (~> 1.8.0) added
- Subject changed from Ruby 2.4 + nokogiri 1.7.2 to Cannot install nokogiri 1.7 on Windows Ruby 2.4
- Status changed from Needs feedback to Closed
- Target version set to 3.4.4
- Resolution set to Fixed
r17112 updates nokogiri version.
- Has duplicate Defect #27861: bundle install fails for nokogiri 1.7.2 (x64-mingw32) and ruby 2.4.3 on Windows added
Also available in: Atom
PDF