Hi there,
I've been fighting to compile my mongo.so in order to use mongoDB in php (5.4.10 installed with MAMP).
I run the
pecl install mongo
command, but I only get the following error :
/private/tmp/pear/temp/mongo/php_mongo.c:16:10: fatal error: 'php.h' file not found
#include <php.h>
^
1 error generated.
make: *** [php_mongo.lo] Error 1
ERROR: `make' failed
I read somewhere that it could be fixed with an "xcode-select --install" but I only get :
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
I've been fighting to compile my mongo.so in order to use mongoDB in php (5.4.10 installed with MAMP).