I recently upgraded from Ruby 2.2.2 to 2.2.3 using RVM. This messed up some things in my development environment but I could handle it so far thanks to useful error messages.
Now I wanted to add some migrations to my DB and encountered this error:
$ rake db:migrate
/Users/howard/.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `eval': /Users/howard/.rvm/rubies/ruby-2.2.3/bin/rake:4: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' (SyntaxError)
exec "$bindir/ruby" -x "$0" "$@"
^
from /Users/howard/.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `<main>'
Any help is very appreciated.
I thought RVM prevents stuff like this from happening?
I use the latest versions of OS X, Ruby and Rails.
Thanks a lot in advance!
I had the same issue today and resolved it with the following commands:
You may also want to select a gemset before you run the last two with:
For whatever reason, the reinstall seemed to fix everything