プロジェクト

全般

プロフィール

Vote #78933

完了

Cannot install nokogiri 1.7 on Windows Ruby 2.4

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Gems support_45
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
45
version_id:
134
issue_org_id:
27505
author_id:
111839
assigned_to_id:
0
comments:
9
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
133
ステータス-->[Closed]

説明

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


journals

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
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I cannot install Redmine 3.4.3 in following configuration

<pre>
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.
</pre>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:
<pre>
gem "nokogiri", (RUBY_VERSION >= "2.1" ? "~> 1.7.2" : "~> 1.6.8")
</pre>

Report
<pre>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
</pre>

--------------------------------------------------------------------------------
P.S. After changing Gemfile:<pre>gem "nokogiri", (RUBY_VERSION >= "2.1" ? "~> 1.7.2" : "~> 1.6.8")</pre>to<pre>gem "nokogiri", (RUBY_VERSION >= "2.1" ? ">= 1.7.2" : "~> 1.6.8")</pre>the installation proceeded with installation 1.8.1.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I have sent pull request.
https://github.com/sparklemotion/nokogiri/pull/1698
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
r17112 updates nokogiri version.
--------------------------------------------------------------------------------

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


related_issues

relates,Closed,26183,Use Nokogiri 1.7.2
relates,Closed,26503,Update nokogiri gem (~> 1.8.0)
duplicates,Closed,27861,bundle install fails for nokogiri 1.7.2 (x64-mingw32) and ruby 2.4.3 on Windows

Admin Redmine さんが約4年前に更新

  • カテゴリGems support_45 にセット
  • 対象バージョン3.4.4_134 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0