码迷,mamicode.com
首页 > 数据库 > 详细

Install MongoDB driver for PHP on XAMPP for Mac OSX

时间:2014-05-18 19:10:28      阅读:305      评论:0      收藏:0      [点我收藏+]

标签:code   c   tar   ext   http   a   

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

[转自: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  

Install MongoDB driver for PHP on XAMPP for Mac OSX,布布扣,bubuko.com

Install MongoDB driver for PHP on XAMPP for Mac OSX

标签:code   c   tar   ext   http   a   

原文地址:http://www.cnblogs.com/wf225/p/3733606.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!