0
我想用MAMP爲MongoDB安裝PHP驅動程序,但是我所有的測試都錯過了(我已經閱讀並嘗試了很多頁面stackerflow)。 我安裝的MongoDB在終端中工作。 MAMP的作品。 要安裝PHP驅動程序,我想:mac MongoDB的MAMP驅動程序PHP:Mongo類沒有找到
http://php.net/manual/en/mongo.installation.php#mongo.installation.osx
爲:
$ sudo /Applications/MAMP//bin/php/php5.6.7 pecl install mongo
我:'
fatal error: 'php.h'` file not found
我嘗試: 當我在我的PHP代碼放在phpinfo();
,我有正確的頁面: 但是當我嘗試登錄一個PHP頁面,我得到的錯誤: 怎麼辦? 感謝您的幫助。