
- OLDER VERSIONS OF MAMP FOR MAC MAC OS
- OLDER VERSIONS OF MAMP FOR MAC CODE
- OLDER VERSIONS OF MAMP FOR MAC DOWNLOAD
Sudo ln -s /Applications/MAMP/bin/php5.2/bin/php /usr/local/bin/php Sudo ln -s /Applications/MAMP/bin/php5.2/bin/peardev /usr/local/bin/peardev Sudo ln -s /Applications/MAMP/bin/php5.2/bin/php-config /usr/local/bin/php-config Sudo ln -s /Applications/MAMP/bin/php5.2/bin/pecl /usr/local/bin/pecl Sudo ln -s /Applications/MAMP/bin/php5.2/bin/pear /usr/local/bin/pear # directory, but for clarity, let's just do it all by hand: # could use sed to make a fancy script to symlink each binary in this # Then, we'll create symlinks for each of these into /usr/local/bin. # First, find out what binaries I need to symlink. Instead, I'll symlink them into /usr/local/bin.
OLDER VERSIONS OF MAMP FOR MAC MAC OS
I don't want to actually overwrite the files that are in /usr/bin, as Mac OS will happily overwrite them later, forcing me to do this all over again. The way that I'll do this is by symlinking all the binaries in there. Since I do most of my work using PHP 5.2, I need to make sure that the binaries inside of Applications/MAMP/bin/php5.2/bin are used. pecl is a file that isn't as frequent as php, so I'll search for that. I always forget, so instead I just use locate to find where the files are. Well, where do the MAMP versions of these binaries reside? Good question. What I'd like to do is have it look to the MAMP versions of these binaries, so that we can be sure XHProf gets installed for the right version of PHP. These files are the PHP binaries that come already installed on Mac OS. If you're like me, you probably see something like this: To do this, pop open a Terminal window and use the which command to see where these binaries are found. For this reason, I also like to ensure that by default I am using my preferred MAMP version of the PHP binaries. ZZZZzzzzzzzzzzz… "Anything we can do while we wait?"Īctually there is! Another reason that installing PHP extensions for MAMP can be so challenging is that Mac OS already comes with PHP installed, so sometimes the wires get crossed between the different PHP binary files. It's about 120MB, and SourceForge is clocking in at 85KB/sec for me.
OLDER VERSIONS OF MAMP FOR MAC DOWNLOAD
Let's go ahead and download that bad boy! And… wait… and wait some more. In my case it was titled MAMP_components_1.9.dmg. On the resulting page, you should see a link to a component source download. To do that click on 'Files', then 'mamp', then to click the link for your version. To grab the actual downloadable source, visit the SourceForge page for MAMP, and locate the component source that matches your version.

The absolute latest version at the time of this writing is 1.9.6.1, but I'm running MAMP 1.9. To find out what version of MAMP you're currently running, launch the appplication and then click 'About MAMP' or 'About MAMP PRO' in the menu bar.
OLDER VERSIONS OF MAMP FOR MAC CODE
The first step to adding an extension to MAMP is downloading the source code for the various components that come with MAMP, and ensuring that you grab the versions that match the MAMP installation you're already using. In this article, I'll walk you through the process of installing and building XHProf, while avoiding some of the common pitfalls that occur when compiling extensions for MAMP. A "stab yourself in the eye" kind of pain. Unfortunately, if you're using a Mac for PHP development and rely on the MAMP package to manage your sites, installing PHP extensions can be a real pain. Developed by Facebook and released as open source, XHProf is a PHP extension that can track the progress of any PHP application (Drupal included) and generate detailed analytics that help developers isolate performance hot spots. Look for the notes below on where the setup does differ.Įxciting discussions have been bubbling up in the Drupal community about using XHProf to analyze the performance of PHP code. The most significant changes are the file paths, which can be found by running the "locate" command as detailed below.

About Lion (10.7) Compatibility: The vast majority of this guide works as-is with MAMP 2.0 under OS X 10.7.
