Redmine - Defect #27206
Cannot install public̲suffix if ruby < 2.1
2017-10-16 23:00 - Gena Makhomed

ステータス:

Closed

開始日:

優先度:

Normal

期日:

担当者:
カテゴリ:

Gems support

対象バージョン:3.3.6

Resolution:

Fixed

進捗率:

0%

予定工数:

0.00時間Affected version:

説明
it don't work:# bundle[...]

install--withoutdevelopment

test

Gem::InstallError: public̲suffix requires Ruby version >= 2.1.
An error occurred while installing public̲suffix (3.0.0), and Bundler cannot continue.
Make sure that ̀gem install public̲suffix -v '3.0.0'̀ succeeds before bundling.
# gem
ERROR:

install public̲suffix -v '3.0.0'
Error installing public̲suffix:
public̲suffix requires Ruby

version>=

2.1.

So, I can't upgrade Redmine to new version on latest CentOS 7.4 server.
Can you please fix this bug?
# cat /etc/redhat-release
CentOS Linux release 7.4.1708# ruby -v
ruby 2.0.0p648(2015-12-16)# yum update rubyNo packages markedfor(Core)[x86̲64-linux]

update関連するチケット:
関連している Redmine - Defect #27229: public̲suffix requires Ru...

Closed

関係しているリビジョン
リビジョン 17011 - 2017-10-17 17:06 - Toshi MARUYAMA
3.4-stable: Gemfile: pin public̲suffix if ruby < 2.1
リビジョン 17012 - 2017-10-17 17:07 - Toshi MARUYAMA
3.3-stable: Gemfile: pin public̲suffix if ruby < 2.1
リビジョン 17013 - 2017-10-17 17:09 - Toshi MARUYAMA
3.2-stable: Gemfile: pin public̲suffix if ruby < 2.1

履歴#1 - 2017-10-17 05:46 - Toshi MARUYAMA- カテゴリ を削除 (Ruby support)- ステータス を New から Closed に変更- 優先度 を Urgent から Low に変更- Resolution を Invalid にセット

2024-10-10

1/3

You use trunk branch not 3.4-stable.
#2 - 2017-10-17 05:53 - Toshi MARUYAMA- ステータス を Closed から New に変更- 優先度 を Low から Normal に変更- Resolution を削除 (Invalid)#3 - 2017-10-17 06:03 - Toshi MARUYAMA- ステータス を New から Closed に変更- Resolution を Invalid にセット
$ ruby --version
ruby 2.0.0p648 (2015-12-16$revision53162)[x86̲64-linux]

bundle list ¦ grep public* public̲suffix (2.0.5)#4 - 2017-10-17 10:24 - Gena Makhomed- ステータス を Closed から Reopened に変更
Toshi MARUYAMA wrote:
You use trunk branch not 3.4-stable.

I use Redmine 3.4.2.stable version
and try upgrade to stable version http://www.redmine.org/releases/redmine-3.4.3.tar.gz
as it described on page http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade
But upgrade to 3.4.3 fails with error:# bundle[...]

install--withoutdevelopment

test

Gem::InstallError: public̲suffix requires Ruby version >= 2.1.
An error occurred while installing public̲suffix (3.0.0), and Bundler cannot continue.
Make sure that ̀gem install public̲suffix -v '3.0.0'̀ succeeds before bundling.
P.S.
https://redmine.ideil.com/admin/info
Environment:
Redmine version
Ruby version
Rails version
Environment
Database adapter
SCM:
Subversion
GitFilesystem
Redmine plugins:
redmine̲agile
redmine̲checklists
redmine̲contacts
redmine̲contacts̲invoices
redmine̲people

3.4.2.stable
2.0.0-p648 (2015-12-16)
4.2.8
production
Mysql2[x86̲64-linux]

1.7.14
1.8.3.1

1.4.5
3.1.10
4.1.1
4.1.6
1.3.2

#5 - 2017-10-17 10:35 - Go MAEDA
Toshi MARUYAMA wrote:[...]

On my environment (Ruby 2.3), ̀public̲suffix̀ 3.0.0 was installed after running ̀bundle updatè. I will try on CentOS 7 later.
#6 - 2017-10-17 16:57 - Toshi MARUYAMA

2024-10-10

2/3

- 題名 を Can't upgrade Redmine to 3.4.3 version on CentOS 7.4 から cannot install public̲suffix 3 if ruby < 2.1 に変更- 対象バージョン を 3.3.6 にセット
- Resolution を削除 (Invalid)#7 - 2017-10-17 17:12 - Toshi MARUYAMA- ステータス を Reopened から Closed に変更- 対象バージョン を削除 (3.3.6)- Resolution を Fixed にセット
- Affected version を削除 (3.4.3)
I recommend you not use distribution package ruby.
#8 - 2017-10-18 18:32 - Nicolas BOURGES
Hi,Edit GemFile and add this :gem "public̲suffix", "2.0.5"
The version 3.0.0 of public̲suffix gem need Ruby >= 2.1 : https://rubygems.org/gems/public̲suffix/Regards,
Nico#9 - 2017-10-18 23:42 - Gena Makhomed
Nicolas BOURGES wrote:
Edit GemFile and add this :gem "public̲suffix", "2.0.5"

Nicolas, Thank you very much!
Now I upgrade to Redmine 3.4.3, it works fine.
#10 - 2017-10-19 02:25 - Go MAEDA- 対象バージョン を 3.3.6 にセット
The problem is going to be fixed in next minor release, Redmine 3.4.4 and 3.3.6.
For the temporarily around, please add the following line to Gemfile (ref) (thanks to Nicolas BOURGES).
gem"public̲suffix","˜>

2.0.5"

ifRUBY̲VERSION<"2.1"

This fix should appear in the CHANGELOG. Setting target version to 3.3.6.
#11 - 2017-10-19 14:36 - Go MAEDA- 関連している Defect #27229: public̲suffix requires Ruby version >= 2.0 を追加#12 - 2017-10-19 17:48 - Toshi MARUYAMA- 題名 を cannot install public̲suffix 3 if ruby < 2.1 から cannot install public̲suffix if ruby < 2.1 に変更#13 - 2018-01-08 18:49 - Jean-Philippe Lang
- 題名 を cannot install public̲suffix if ruby < 2.1 から Cannot install public̲suffix if ruby < 2.1 に変更- カテゴリ を Gems support にセット

2024-10-10

3/3