zsh: permission denied: bin/rake

Leah Huyghe picture Leah Huyghe · Jul 23, 2015 · Viewed 7.3k times · Source

I have recently bought a new Macbook and have installed Rails, Ruby, Git, Homebrew, and Postgres successfully. I can open my app in atom but when I try to run a migration or drop the database, ZSH gives me a permission denied error. Is there something I'm missing / have forgotten to install?

➜ SYT git:(master) ✗ bin/rake db:migrate zsh: permission denied: bin/rake ➜ SYT git:(master) ✗ bin/rake db:drop zsh: permission denied: bin/rake

Answer

katafrakt picture katafrakt · Jul 23, 2015

Apparently the contents of bin directory do not have permission to be executed. You can fix it with

chmod +x bin/*