Page 1 of 1

Mongodb Extension MAMP Pro 5.7 - macOS 10.15.6 (Catalina) and PHP 7.3.9

Posted: Wed Jan 20, 2021 4:13 am
by mampsupportmod
I've been trying for days to set up a driver for the Mongodb under MAMP Pro 5.7 - macOS 10.15.6 and PHP 7.3.9.

I have followed these instructions:
https://documentation.mamp.info/en/MAMP ... eral/PECL/

Since macOS itself comes with PHP, running "phpize" apparently causes a conflict with the PHP driver that comes with MAMP. The problem is that "phpsize" returns this message:

Code: Select all

% phpize -v
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
Have any of you ever solved this problem? How can I prevent "phpize" from being used by macOS? How can I force "phpize" to be used by MAMP instead?