惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
Microsoft Azure Blog
Microsoft Azure Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog
Y
Y Combinator Blog
博客园_首页
有赞技术团队
有赞技术团队
博客园 - Franky
腾讯CDC
G
Google Developers Blog
Recent Announcements
Recent Announcements
博客园 - 【当耐特】
D
Docker
The GitHub Blog
The GitHub Blog
MyScale Blog
MyScale Blog
H
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
A
About on SuperTechFans
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
V
V2EX
U
Unit 42
aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学

博客园 - 无锋不起浪

沪牌-上海牌照-拍牌经验分享: 我是如何三次拍中的? 沪牌学院-沪拍拍课堂4: 实拍前的演练 沪牌学院-沪拍拍课堂3: 网络优化 沪牌学院-沪拍拍课堂2: 出价策略 沪牌学院-沪拍拍课堂1: 估价策略 沪牌学院-沪拍拍课堂: 2018年4月回顾 (内附幺蛾子应对策略) 如何将 DVD 转成 ISO 雅虎天气-城市代码列表 发布 PM2.5 数据的城市列表 中国天气网城市代码 jQuery 语法总结和注意事项 XCode 4 编译错误大全整理 Xcode 快捷键大全 ODA(Open Design Alliance)介绍 Modal dialog block the GUI thread VMWare安装黑苹果Mac OS C# 字符串驻留机制 AutoCAD WS for iPhone, iPod toch, and iPad NAnt.Core.Ext: MailLogger2 and MailTask2
Install MongoDB driver for PHP on XAMPP for Mac OSX
无锋不起浪 · 2014-05-17 · via 博客园 - 无锋不起浪

试了不少方法,最后还是这个最有效。

[转自:http://thatsimplecode.com/install-mongodb-driver-for-php-on-xampp-for-mac-osx]

You need to have the following installed in your Mac:

  • MongoDB
  • XAMPP for Mac OSX
  • Homebrew Package Manager

Type the following in your terminal :

brew install wget  
brew install autoconf  
sudo /Applications/XAMPP/xamppfiles/bin/pecl install mongo  

Add extension=mongo.so to your php.ini file which can be found at /Applications/XAMPP/xamppfiles/etc by default.

Restart Apache.

A..nd you are done.

Tip:  
To install MongoDB, you can use  
brew install mongodb