bundler: failed to load command: rake (/usr/local/bin/rake)
Added by The Mechanix over 8 years ago
Hi,
I would like to install some plugins. I followed the instructions on this site: http://www.redmine.org/projects/redmine/wiki/Plugins
Im using following environment:
Environment:
Redmine version 3.2.1.stable
Ruby version 2.3.1-p112 (2016-04-26) [x86_64-linux-gnu]
Rails version 4.2.6
Environment production
Database adapter Mysql2
When executing this command: rake redmine:plugins:migrate RAILS_ENV=production
I get this error:
rake redmine:plugins:migrate RAILS_ENV=production
rake aborted!
Gem::LoadError: You have already activated rake 11.2.2, but your Gemfile requires rake 10.5.0. Prepending `bundle exec` to your command may solve this.
/usr/share/redmine/config/boot.rb:6:in `<top (required)>'
/usr/share/redmine/config/application.rb:1:in `<top (required)>'
/usr/share/redmine/Rakefile:4:in `<top (required)>'
/var/lib/gems/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
(See full trace by running task with --trace)
I already prepended the command bundle exec but got this error:
bundle exec rake redmine:plugins:migrate RAILS_ENV=production
bundler: failed to load command: rake (/usr/local/bin/rake)
LoadError: cannot load such file -- /usr/share/rubygems-integration/all/specifications/bin/rake
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<top (required)>'
Can someone help me to get this working? Thank you.