Reputation: 539
I'm trying to install php HTTP extension but I'm getting the following error during installation :
checking for magic.h... not found
configure: error: could not find magic.h
Has anyone had a similar experience ?
I'm on a MBP running 10.6.5 & php 5.3.3.
Thanks
Upvotes: 0
Views: 3888
Reputation: 2183
CFLAGS="-arch i386" ./pecl install
or
sudo CFLAGS="-arch i386" /Applications/MAMP/bin/php5.3/bin/pecl install pecl_http
See: OS X 10.6 (Snow Leopard) – using MAMP/PECL to install PHP extensions
Upvotes: 2
Reputation: 6857
To install the pecl_http extension on Mac OS 10.8 (using MAMP):
brew install autoconf
After that I was able to install Pecl extensions without any problems.
Upvotes: 2