rake db:migrate after ubuntu upgrade
Added by Eric Göltzer about 8 years ago
Hello!
I´ve upgraded my ubuntu to 16.04. If I try to use the command rake db:migrate an error appears:
/usr/bin/env: »ruby2.1“: Datei oder Verzeichnis nicht gefunden (=file or directory not found)
With ubuntu 16.04 Ruby 2.3 was installed. Maybe here is the problem?
Thanks for Help!
Replies (5)
RE: rake db:migrate after ubuntu upgrade - Added by Anonymous about 8 years ago
Hi Eric,
difficult to give an advise based on that information. For me it looks like you are using system ruby (i.e. from ubuntu-repo) instead rvm (where you can choose ruby version per applicaton).
I would suggest to start over with this installation guide: http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_30x_on_Ubuntu_1404_with_Apache2_Phusion_Passenger_MySQL_Subversion_and_Git_(Gitolite) (just replace ubuntu versions - worked fine for me).
Be sure to install redmine as "redmine" user and not as root.
Maybe my advice posted in Redmine not working after migration. will help you.
cheers
Immanuel.
RE: rake db:migrate after ubuntu upgrade - Added by Eric Göltzer about 8 years ago
Hi Immanuel,
thanks for your answer. You´re right, I´m using ruby from ubuntu-repo. Is it possible to use redmine with the system ruby? AS I read, redmine 3.3 can handle ruby 2.3.
Thanks for your help!
Eric
RE: rake db:migrate after ubuntu upgrade - Added by Anonymous about 8 years ago
I don't know - I am no expert with ruby and related. I always try to stick with the installation instructions as close as possible. It takes with RoR/Passenger/redmine very few steps to be far away from the right track...
Basically your problem may not be the wrong ruby but that the required ruby can not be found. Issue ruby -v
and which ruby
to be sure your ruby 2.3 is OK. How to say redmine to use this ruby, I don't know. Maybe switch to RVM - it's no problem to have this along with the system ruby in parallel.
My output with rvm says (Ubuntu 16.04):
redmine@server:~/redmine/log$ ruby -v ruby 2.1.4p265 (2014-10-27 revision 48166) [x86_64-linux] redmine@server:~/redmine/log$ which ruby /usr/local/rvm/rubies/ruby-2.1.4/bin/ruby redmine@server:~/redmine/log$
Immanuel.
RE: rake db:migrate after ubuntu upgrade - Added by Eric Göltzer about 8 years ago
Thank you again! I installed rvm and now it works fine!
Eric
RE: rake db:migrate after ubuntu upgrade - Added by Anonymous about 8 years ago
Nice to hear!
Immanuel.