Adding a $PATH environment variable in OS X 10.5 (Leopard) Terminal
August 24th, 2008
One thing that will inevitably come up when setting up a web server using MAMP on OS X Leopard is the need to add the PHP and PEAR binary paths to the Terminal $PATH variable. Fortunately, this is dead-simple.
Open a Terminal window and type the following (assuming you’ve installed MAMP in /Applications):
If you’re using PHP4 instead, you’ll want to specify that path instead.
Now type the following to see your newly edited $PATH environment variable:
You should see your MAMP PHP binary path tacked onto your $PATH string.
Now type the following:
If everything went according to plan, you should see the output from Pear updating itself.
Sphere: Related Content


