Issue with ruby / gems for installing redmine 1.2 on a CentOS 5.6 server
Added by Pierre-Henri Lavigne over 13 years ago
Good day all,
I followed the wiki to install Redmine on Centos:
http://www.redmine.org/projects/redmine/wiki/HowTo_install_Redmine_on_CentOS_5
At nearly the end ( step Migrate the database models ), I have an issue with ruby:
RAILS_ENV=production bundle exec rake db:migrate (in xxxx/redmine-1.2.0) rake aborted! can't activate rack (~> 1.1.0, runtime), already activated rack-1.0.1. Make sure all dependencies are added to Gemfile.
I'm on
Distributor ID: CentOS Description: CentOS release 5.6 (Final) Release: 5.6 Codename: Final
Using
ruby --version ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-linux] which ruby /usr/local/bin/ruby
And
gem --version 1.4.2 which gem /usr/local/bin/gem
I followed exactly the steps from the wiki. Is there an issue with the version of ruby / gem I installed ?
Thank you for any help :-)
Replies (6)
RE: Issue with ruby / gems for installing redmine 1.2 on a CentOS 5.6 server - Added by Alex A over 13 years ago
Can u show ur gemfile and list of installed local gems?
RE: Issue with ruby / gems for installing redmine 1.2 on a CentOS 5.6 server - Added by Pierre-Henri Lavigne over 13 years ago
Good day Alex,
The current gems installed are:
gem list --local *** LOCAL GEMS *** bundler (1.0.15) coderay (0.9.8) daemon_controller (0.2.6) fastthread (1.0.7) hoe (1.9.0) i18n (0.4.2) json_pure (1.5.2) mysql (2.8.1) passenger (3.0.7) rack (1.3.0, 1.0.1) rake (0.9.2, 0.8.3) RedCloth (4.2.7) rubyforge (2.0.4) rubytree (0.5.2)
RE: Issue with ruby / gems for installing redmine 1.2 on a CentOS 5.6 server - Added by Alex A over 13 years ago
The rack
version 1.1.0 not installed on ur system. Tnstall it
RE: Issue with ruby / gems for installing redmine 1.2 on a CentOS 5.6 server - Added by Pierre-Henri Lavigne over 13 years ago
Sorry Alex, I got the same error by insaalling rack 1.1.0:
rake aborted! can't activate rack (~> 1.1.0, runtime), already activated rack-1.0.1. Make sure all dependencies are added to Gemfile.
Now local gems are:
gem list --local *** LOCAL GEMS *** bundler (1.0.15) coderay (0.9.8) daemon_controller (0.2.6) fastthread (1.0.7) hoe (1.9.0) i18n (0.4.2) json_pure (1.5.2) mysql (2.8.1) passenger (3.0.7) rack (1.3.0, 1.1.0, 1.0.1) rake (0.9.2, 0.8.3) RedCloth (4.2.7) rubyforge (2.0.4) rubytree (0.5.2)
RE: Issue with ruby / gems for installing redmine 1.2 on a CentOS 5.6 server - Added by Alex A over 13 years ago
Try uninstall other rack versions or set 1.1.0 version in your Gemfile.
RE: Issue with ruby / gems for installing redmine 1.2 on a CentOS 5.6 server - Added by Pierre-Henri Lavigne over 13 years ago
Thank you ! ! !
I changed the Gemfile, redo a bundle install, and everything went fine !
I'll complete the latest steps a few hours. ( cgi and others ... )
To resume:
CentOS 5.6, ruby 1.8.7, gem 1.4.2, we shoud use rack version 1.1.0 :-)
Thank you very much Alex ! ! !