0

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.

Fabrizio Bertoglio
  • 5,890
  • 4
  • 16
  • 57

1 Answers1

0

gem install rake solved the problem

Fabrizio Bertoglio
  • 5,890
  • 4
  • 16
  • 57