db:migrate...LoadError: cannot load such file
Added by Prashant Saraswat over 8 years ago
I'm trying to migrate a redmine 1.1.3 installation on mysql to redmine 3.3.0 on ubuntu 16.04.
redmine was installed using apt. I was able to login and the installation looked ok.
I migrated the database using mysqldump and then tried to run this:
sudo bundle exec rake db:migrate RAILS_ENV=production --trace
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 with this please?
Thanks
P
Replies (2)
db:migrate...LoadError: cannot load such file - Added by Leandro Moreira over 8 years ago
I'm having the same problem.
RE: db:migrate...LoadError: cannot load such file - Added by Leandro Moreira over 8 years ago
Prashant Saraswat wrote:
I'm trying to migrate a redmine 1.1.3 installation on mysql to redmine 3.3.0 on ubuntu 16.04.
redmine was installed using apt. I was able to login and the installation looked ok.
I migrated the database using mysqldump and then tried to run this:
sudo bundle exec rake db:migrate RAILS_ENV=production --trace
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 with this please?
Thanks
P
I solved the problem running this command: ruby bin/rake db:migrate RAILS_ENV=production