Mongo PHP Driver with MAMP

*爱你&永不变心* 提交于 2019-12-07 18:48:29

The phpize in your path is building extensions for PHP 5.3 (API version 20090626), but you need to match the API version of PHP in your MAMP config (which should be API version 20100412 for PHP 5.4). It looks like you have another version of php in your path, which is PHP 5.5.

To build everything with the expected version of PHP, try putting that version of PHP first in your path, eg:

export PATH=/Applications/MAMP/bin/php/php5.4.19/bin:$PATH

Then run phpize to make sure it finds the correct API version.

The API version reported by phpize -v should match that reported by php -i | grep "PHP API".

Assuming all matches, you should then be able to build following the instructions you've linked.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!