Skip to content

Instantly share code, notes, and snippets.

@mneuhaus
Forked from msonnabaum/gist:1306569
Created December 2, 2012 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mneuhaus/4188047 to your computer and use it in GitHub Desktop.
Save mneuhaus/4188047 to your computer and use it in GitHub Desktop.
install xhprof on mamp for php 5.3.*
require 'formula'
class Autoconf213 < Formula
url 'http://ftp.gnu.org/gnu/autoconf/autoconf-2.13.tar.gz'
homepage 'http://www.gnu.org/software/autoconf/'
md5 '9de56d4a161a723228220b0f425dc711'
def install
system "./configure", "--program-suffix=213",
"--prefix=#{prefix}",
"--infodir=#{info}"
system "make install"
end
end
wget http://pecl.php.net/get/xhprof-0.9.2.tgz
tar -xzf xhprof-0.9.2.tgz
cd xhprof-0.9.2/extension
/Applications/MAMP/bin/php/php5.3.*/bin/phpize
./configure
make
cp modules/xhprof.so $(/Applications/MAMP/bin/php/php5.3.*/bin/php-config --extension-dir)/
echo "extension=xhprof.so" >> /Applications/MAMP/bin/php/php5.3.*/conf/php.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment