MongoDB - PHP7.3: How to install MongoDB with PHP 7.3.x on a Mac Catalina 10.15.x OS with Homebrew

The usual command to install mongoDB which is as below: pecl install mongodb However, this will fail on MAC Catalina OS with PHP 7.3.x with following error:

In file included from 
/usr/local/Cellar/php@7.3/7.3.23/include/php/Zend/zend.h:335:
/usr/local/Cellar/php@7.3/7.3.23/include/php/Zend/zend_operators.h:486:10: 
error: 'asm goto' constructs are not supported yet __asm__ goto(
In order to fix this error, you will need to do below:
Optional steps:
  • In case you do not have homebrew installed you can install it with this command:
  •  $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" 
    
  • In case you still face issues with mongoDB installation then perform below and try the pecl install mongodb command again -- Download XCode 12 beta CLI tools and XCode 12 beta from https://developer.apple.com/xcode/resources/

Comments

Popular posts from this blog

XDebug - PHPStorm - Mac: How to configure Xdebug with PHPStorm on Mac OS and PHP 7.3

Magento 2 - Vue Storefront PWA Integration: How to create a new VSBridge indexer job and Elastic Index for your custom module