Search code examples
ruby-on-railsrakervmrbenv

rake commands not working - /usr/bin/env: ‘ruby_executable_hooks’


RVM got installed in my system for mistake.

I am using rbenv and this caused problems in my Ruby on Rails apps.

I uninstalled successfully rvm, in one of my apps I need to run rake db:create:all to build the psql database and I receive the following error:

/usr/bin/env: ‘ruby_executable_hooks’: Not a directory

the file /usr/bin/env is type program not directory.

The problem is connected to rake. I can build the db by running rails db:create:all. Also other rake commands like rake db:migrate trigger the same error.


Solution

  • gem install rake solved the problem