Search code examples
macosmampdrush

Drush broke after upgrading to OS X Mavericks


After upgrading to OSX 10.9 (Mavericks) from OSX 10.8 (Mountain Lion), Drush broke. I've MAMP.

The error message when I invoke drush:

Could not open input file: /usr/lib/php/pear/drush/drush.php

I've put the below in .bash_profile

export PATH="/Applications/MAMP/Library/bin:/Applications/MAMP/bin/php5.3.20/bin:$PATH"

Any idea?


Solution

  • OSX Mavericks has no PEAR (and your Drush is probably gone too).

    Install PEAR -

    sudo php -d detect_unicode=0 /usr/lib/php/install-pear-nozlib.phar
    

    Install Drush -

    sudo pear channel-discover pear.drush.org
    sudo pear install drush/drush
    

    Run Drush as root once so Drush installs Console::Getopt etc.

    sudo drush help