I've seen many recipes to try and get Drush going on mamp. I'm oooh so close...

mp:~/Sites/testsite User$ drush status <-- dies quietly
mp:~/Sites/testsite User$ /Users/User/drush/drush.php status
  PHP configuration : /Applications/MAMP/conf/php5/php.ini
  Drupal Root       : /Users/User/Sites/testsite
  Drupal version    : 6.14
  Site Path         : sites/default
  Site URI          : http://default
  Database Driver   : mysql
  Database Hostname : 127.0.0.1
  ...

As per this article, I have this in my .bash_profile

alias drush="/Applications/MAMP/bin/php5/bin/php /Users/User/drush/drush.php"
export PATH=/Applications/MAMP/bin/php5/bin:$PATH

I also tried putting this in my .bash_profile

alias drush="/Users/User/drush/drush.php"

and running

#drush status

with no joy.

Comments

zach harkey’s picture

Try using .profile instead of .bash_profile.

Also, don't forget to reload it after you make changes.

$ source ~/.profile
mpaler’s picture

Status: Active » Closed (fixed)

Turns out changed the second alias to something other than drush it works:

alias drush="/Applications/MAMP/bin/php5/bin/php /Users/User/drush/drush.php"
export PATH=/Applications/MAMP/bin/php5/bin:$PATH

alias dr="/Users/User/drush/drush.php"