Installing Redmine. I\'ve tried,
bundle install --without development test postgresql sqlite
, but error.
Gem::Ext::BuildError: ERR
Ruby 2.4 is very new. In fact, it was released only 3 days ago.
Since there are several impirtant internal changes in Ruby 2.4, it is quite likely that many gems (and Redmine itself) are not yet compatible with this version of Ruby.
From your error message, it does indeed seem that the JSON gem needs to be adapted in order to handle some changes in Ruby 2.4 regarding whole numbers.
You should use an older version of Ruby for now, e.g. Ruby 2.3.3. As you can see on http://www.redmine.org/projects/redmine/wiki/RedmineInstall#Ruby-interpreter, Redmine requires specific Ruby versions depending on the version of Redmine.
it seems that the json gem is having a bug with newer ruby version (2.4+), that answer from makandracards is proposing a simple and easy solution.
the answer is about updating the version of json gem to tackle the bug and successfully install the gem. so, it updates the json gem with --conservative option.
bundle update json --conservative
I had the same issue right now.
To solve it install the latest version of bundler
and rmagick
manually using gem install
update all other packages with gem update
and bundle update
.
This solved this dependency issue of json 1.8.3
and ruby 2.4
.
But I run in some more problems afterwords.
It seams like ruby 2.4
does some changes in the interpretation of number which means it is not compatible with rail 4.x
anymore (see this post).
Updating rails
and its dependencies seems to be not possibles yet as redmine needs protected_attributes
which depends on
activemodel (< 5.0, >= 4.0.1)
and rails 5.x
depends on
activemodel 5.x
.
It is always bad if an update breaks backward compatibility especially for programming language :(
first run
gem install bundler
It installs the newer bundler and solves the native extension dependencies
then run
bundle install
it should solve the your issue