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

All MAMP discussions around troubleshooting and anything related to MAMP. Be as detailed as possible here when posting an issue.
Post Reply
mampsupportmod
Site Admin
Posts: 156
Joined: Wed Jan 20, 2021 3:06 am

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

Post 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?
MAMP Support Forums is an unofficial support forum covering MAMP & MAMP Pro solution stacks.
Post Reply