0

I just successfully installed Drush user composer into the .composer/vendor/bin folder. When I try to run "drush status" I get an error sh: /Users/Marianna/drush: Permission denied

What do I do now?

6
  • chmod u+x /Users/Marianna/drush ?
    – Clive
    Commented Jul 21, 2016 at 21:22
  • 1
    Ambiguous. /Users/Marianna/drush should not exist if the installation method was composer. If this was a git install, then this folder would be a directory, not the executable. Please double-check your installation steps against the docs: docs.drush.org/en/master/install Commented Jul 21, 2016 at 22:30
  • @greg_1_anderson I guess @MG1 forget adding global when he runs composer.
    – Jimmy Ko
    Commented Jul 21, 2016 at 23:01
  • @greg_1_anderson I did follow the steps of installing drush with composer by doing "composer global require drush/drush" what's the fix?
    – MG1
    Commented Jul 22, 2016 at 0:23
  • 1
    Are you using MAMP?
    – CodeNext
    Commented Jul 22, 2016 at 1:51

2 Answers 2

1

You can follow following two links, they are simple two steps and make the Drush running perfectly with no issue, even you can upgrade drush with that.

(1) How to install the Drush using Homebrew. And after that follow following steps to Symlink the php file location between your servers and MAMP.

(2) MAMP: Symlink PHP to /usr/bin/php

I was facing the same issue and re-installed using above steps and this set of two links worked perfectly.

8
  • Ok - so creating the link fixed the error from showing up. But now I see that running "drush en zurb_foundation" doesn't do anything at all...
    – MG1
    Commented Jul 22, 2016 at 15:43
  • What error it is showing?
    – CodeNext
    Commented Jul 22, 2016 at 15:45
  • No errors at all sh-3.2# drush en zurb_foundation sh-3.2#
    – MG1
    Commented Jul 22, 2016 at 15:46
  • run "drush cc all", Is it working without error?
    – CodeNext
    Commented Jul 22, 2016 at 15:48
  • Did you check path before running those two commands? Paths may not be same what shown on page, that is from that author's system, your may be different.
    – CodeNext
    Commented Jul 22, 2016 at 15:53
0

I solved this by removing drush from the User folder.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.