Skip to content
Advertisement

Fatal error while: sudo pecl install mongodb

I have problem to install mongodb with pecl. After sudo pecl install mongodb it’s always give me

fatal error: ‘php.h’ file not found #include

1 error generated. make: *** [php_phongo.lo] Error 1 ERROR: ‘make’ failed

System MacOS Mojave, Xcode was updated

Thanks!

Advertisement

Answer

Problem was probably that I install oldest version PHP than was installed on my mac, after changing php source in terminal to one from MAMP Pro, MongoDB was installed without problems

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement