0

Possible Duplicate:
What are PATH and other environment variables, and how can I set or use them?

I've just followed this article (http://mac.tutsplus.com/tutorials/server/upgrading-the-native-php-installation-on-os-x-mountain-lion/) to update my php installation using HomeBrew. The latest php version is indeed installed in /usr/local/bin The problem is that my $PATH variable is the following (doing an echo $PATH reveals it) :

/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin

...so the old version of php (that comes with mountain lion) always run first

Any ideas on how to solve this? Thank you.

skiabox
  • 274

1 Answers1

0

Create ~/.MacOSX/environment.plist as described here, if it doesn't already exist. Open the file in Plist Editor and add a variable PATH with a value /usr/local/bin:$PATH. Log off and back on so that the changes become effective.