I am trying to install pecl_http in MAMP php. I am getting the following errors.
grep: /Applications/MAMP/bin/php/php5.5.10/include/php/main/php.h: N
I've got this running with MAMP 3.2.1 on OS X 10.10.5 Yosemite. Here's the commands I ran:
download the php source code: http://us2.php.net/get/php-5.6.7.tar.bz2/from/a/mirror
go to the downloads folder
cd ~/Downloads
extract the tarball
tar -xzvf ./php-5.6.7.tar.bz2
rename the resulting folder to php:
mv php-5.6.7 php
move it
mv php /Applications/MAMP/bin/php/php5.6.7/include/
install the Xcode command line tools:
xcode-select --install
run configure and build something!
cd /Applications/MAMP/bin/php/php5.6.7/include/php
./configure
pecl install uploadprogress
Thanks to:
Can't phpize or configure an extension in OS X 10.9 Mavericks
and
How to fix, 'PHP' make, in Mac OS X (10.9.4)?