![]() ![]() ![]() However, I'm not sure if this is a good way to solve the problem by manually adding a header file to the directory. Still had the same issue but diffrent file:įatal error: 'pcre2.h' file not found #include "pcre2.h"įrom this error I tried to check the files in the MacOs Big Sur File system and in the end I found where the pcre2.h is located, and oddly it was being called in the pcre folder, so I manually copied from the pcre2 folder to pcre The solution that I used: $cp /opt/homebrew/Cellar/pcre2/10.36/include/pcre2.h I installed mongodb using $brew install mongodbĪfter that, I once again tried $sudo pecl install mongodbįinally, it worked. Thanks in advance.Īfter installing a newer PHP version where previously I used 7.3.24 and updated to 7.4.16. ![]() Somebody knows how can I solve this please? Or if I can install the mongodb driver without using pecl. I tried with arch -x86_64 sudo pecl install mongodb In file included from fatal error: 'pcre2.h' file not found In file included from /private/tmp/pear/temp/mongodb/php_phongo.c:29: I'm trying to install the mongodb driver running: sudo pecl install mongodbīut fails after a while: mp/pear/temp/mongodb/src/contrib/ -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/mongodb/php_phongo.c -fno-common -DPIC -o. With Zend OPcache v7.4.15, Copyright (c), by Zend Technologies Zend Engine v3.4.0, Copyright (c) Zend Technologies I have php 7.4 installed on my macbook pro m1 % php -v ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |