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
Got few tips from some existing posts related to this kind of issues. I found the component for php5.5.10 in http://us2.php.net/get/php-5.5.10.tar.gz/from/a/mirror
Followed the steps below to install pecl_http on my MAMP on Mac OS 10.8:
Install brew
Install autoconf using brew brew install autoconf
Download the source code for PHP 5.5.10 (or whatever version you are using) from php.net
Extract the source code into /Applications/MAMP/bin/php/php5.5.10/include
Rename the extracted file from "php-5.5.10" to "php"
cd /Applications/MAMP/bin/php/php5.5.10/include/php
Run ./configure
Add extension=http.so to my php.ini file
Restart MAMP
All my extensions are installed.
Special thanks to joshua.paling and user387049 for all the above information.