i am new to setting php servers, and i had go though other related post, seems like nobody have the same error as i have. I am using MAMP 2.0.2, and running PHP 5.3.6, and I
I had the same problem whilst trying to pecl install -f ssh2
with MAMP.
Here's how I fixed it:
./configure
to configure the source code for your platform (without this step the pecl install will fail looking for a bunch of header files)pecl
install(much thanks to Stephen's answer which is pretty much the same)