From 7a7aafc90cf3af8f869bc5b2252fb2a6f75963f5 Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Mon, 23 Feb 2015 23:39:37 +0000 Subject: [PATCH] Revise mongo install docs for OS X https://jira.mongodb.org/browse/PHP-1373 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335984 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mongo/configure.xml | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/reference/mongo/configure.xml b/reference/mongo/configure.xml index 311fdc194b..780217a61a 100644 --- a/reference/mongo/configure.xml +++ b/reference/mongo/configure.xml @@ -162,13 +162,6 @@ extension=php_mongo.dll
OS X - - - If your system is unable to find autoconf, you'll need to install Xcode - (available on your installation DVD or as a free download from the Apple - website). - - In most cases installing from pecl is the easiest way: @@ -178,15 +171,34 @@ $ sudo pecl install mongo - If you are using XAMPP, you may be able to compile the driver with the - following command: + If you are using Homebrew, the + PHP tap includes formulae for the driver. For example, you might install the + driver for PHP 5.6 using the following command: + + + + + + If you are using XAMPP, note that it + has its own pecl binary and php.ini configuration. You should be able to + install the driver with the following command: - + + Xcode dependency for compiling on OS X + + Compiling the driver on OS X will require Xcode developer tools, which may + be installed with xcode-select --install. If that command is + not available, you may first need to install the + Command Line Tools package. + +