Unable to install mongodb php driver on mac os 10.9 Unable to install mongodb php driver on mac os 10.9 mongodb mongodb

Unable to install mongodb php driver on mac os 10.9


After upgrading to OS 10.9 I run into same issue.Try installing command line developer tools

run

xcode-select --install


Here is how I solved this after installing Xcode:

cd /usr/includesudo ln -sf /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/php


If the solution by Janis Lankovskis did not work out.. then it seems like your PHP installation is weirdly broken..

How did you install PHP in the first place?

The main problem here is the phpize command, which seems to exist but if failing miserably (I don't know why pecl continues.. that seems weird).

I'd re-install PHP, and make sure the header files are available - and in case you have multiple installations then make the path of the phpize command for your "currently active" PHP installation the first path in your $PATH