
For example: cd /path/to/your/drupal/sites/default If so, please use: "sudo apt install linuxbrew-wrapper".Īfter that you can start running Drush on your installation. It is possible that you might experience problems with the above command due to the emergence of linuxbrew.

Tap the PHP formulae repo and its dependencies, and install Drush: brew tap homebrew/dupes Note Homebrew changed their repo structure! Read the "Background" section here for more information.

This will install homebrew in your /usr/local folder, install git and link Homebrew to its git repository. Recent versions of OS X don't ship with Xcode so you might need to install "xcode-select -install") Preparing for DrushĪfter successful installation of Homebrew we need to be able to grab drush from git. If you haven't installed Homebrew, follow the the installation instruction for Homebrew.

It's a easy and flexible way to install UNIX tools Apple didn't include with OS X. The correct way to install drush is described in the Drush docs: 8.x, 9.x (drush-launcher) This page is deprecated, as homebrew has changed and homebrew/php is abandoned.
