Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
install xhprof on mamp for php 5.3
tar -xzf xhprof-0.9.2.tgz
cd xhprof-0.9.2/extension
cp modules/ $(/Applications/MAMP/bin/php/php5.3.6/bin/php-config --extension-dir)/
echo "" >> /Applications/MAMP/bin/php/php5.3.6/conf/php.ini

At the phpize step, I go this output

Jesse-Beachs-MacBook-Pro:extension jbeach$ /Applications/MAMP/bin/php/php5.3.6/bin/phpize ./configure grep: /Applications/MAMP/bin/php/php5.3.6/include/php/main/php.h: No such file or directory grep: /Applications/MAMP/bin/php/php5.3.6/include/php/Zend/zend_modules.h: No such file or directory grep: /Applications/MAMP/bin/php/php5.3.6/include/php/Zend/zend_extensions.h: No such file or directory Configuring for: PHP Api Version: Zend Module Api No: Zend Extension Api No: warning: prefer named diversions warning: prefer named diversions


msonnabaum commented Dec 16, 2011

Looks like you need the "MAMP components" for this to work: MAMP Server components and libraries

cam8001 commented May 24, 2013

I have pre-compiled binaries here:

kepol commented Jan 27, 2014

I got the same output as jessebeach even after configuring the MAMP Server components and libraries, but xhprof works all the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment