On May 14, 2009, at 3:44 PM, sohdubom wrote:
but still not there yet ...
- I created the .bash_profile following your instructions:
....then echo $PATH returned: ..../Applications/MAMP/conf:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/ bin:/usr/X11/bin ....as expected, but ....which php returned: ..../usr/bin/php
- and running phpinfo() within TM still points:
.... PhpMate r11069 running PHP 5.2.6 (cli) (/usr/bin/php)
any ideas?
From the `man which` command
NAME which -- locate a program file in the user's path
This to me leads me to suspect that /Applications/MAMP/conf is not where php really is.
Can you try: $which -a php This will list all the locations of php it knows about.
Can you also do: /Applications/MAMP/conf/php -v and ... file /Applications/MAMP/conf/php and... ls -la /Applications/MAMP/conf
It looks like the MAMP people have decided to store things in some interesting (IMHO) places. Try editing your path to this:
export PATH=/Applications/MAMP/Library/bin:/Applications/MAMP/bin/php5/ bin:$PATH
Put that as the last line in your profile, replacing the other one previously.