Vote #78873
完了Cannot install public_suffix if ruby < 2.1
0%
説明
it don't work:
# bundle install --without development 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 install public_suffix -v '3.0.0'
ERROR: 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 (Core) # ruby -v ruby 2.0.0p648 (2015-12-16) [x86_64-linux] # yum update ruby No packages marked for update
journals
You use trunk branch not 3.4-stable.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
<pre>
$ ruby --version
ruby 2.0.0p648 (2015-12-16 revision 53162) [x86_64-linux]
$ bundle list | grep public
* public_suffix (2.0.5)
</pre>
--------------------------------------------------------------------------------
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:
<pre>
# bundle install --without development 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.
</pre>
P.S.
<pre>
https://redmine.ideil.com/admin/info
Environment:
Redmine version 3.4.2.stable
Ruby version 2.0.0-p648 (2015-12-16) [x86_64-linux]
Rails version 4.2.8
Environment production
Database adapter Mysql2
SCM:
Subversion 1.7.14
Git 1.8.3.1
Filesystem
Redmine plugins:
redmine_agile 1.4.5
redmine_checklists 3.1.10
redmine_contacts 4.1.1
redmine_contacts_invoices 4.1.6
redmine_people 1.3.2
</pre>
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
I recommend you not use distribution package ruby.
--------------------------------------------------------------------------------
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
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
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":http://www.redmine.org/projects/redmine/repository/revisions/17011/diff/branches/3.4-stable/Gemfile) (thanks to Nicolas BOURGES).
<pre>
gem "public_suffix", "~> 2.0.5" if RUBY_VERSION < "2.1"
</pre>
This fix should appear in the CHANGELOG. Setting target version to 3.3.6.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,Closed,27229,public_suffix requires Ruby version >= 2.0