Compiling a PHP extension (shared object / module) from source for MAMP requires a bit of special configuration. If you follow the standard instructions to phpize, configure and make the .so file then you'll most likely end up with a module that's incompatible with MAMP due to the fact that it is compiled for whichever [...]