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
This commit is contained in:
Jeremy Mikola 2015-02-23 23:39:37 +00:00
parent 35b9833b75
commit 7a7aafc90c

View file

@ -162,13 +162,6 @@ extension=php_mongo.dll
<section xml:id="mongo.installation.osx">
<title>OS X</title>
<para>
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).
</para>
<para>
In most cases installing from pecl is the easiest way:
<programlisting role="shell">
@ -178,15 +171,34 @@ $ sudo pecl install mongo
</programlisting>
</para>
<para>
If you are using XAMPP, you may be able to compile the driver with the
following command:
If you are using <link xlink:href="&url.mac.homebrew;">Homebrew</link>, the
PHP tap includes formulae for the driver. For example, you might install the
driver for PHP 5.6 using the following command:
<programlisting role="shell">
<![CDATA[
$ brew install php56-mongo
]]>
</programlisting>
</para>
<para>
If you are using <link xlink:href="&url.xampp;">XAMPP</link>, note that it
has its own pecl binary and php.ini configuration. You should be able to
install the driver with the following command:
<programlisting role="shell">
<![CDATA[
$ sudo /Applications/XAMPP/xamppfiles/bin/pecl install mongo
]]>
</programlisting>
</para>
<note>
<title>Xcode dependency for compiling on OS X</title>
<para>
Compiling the driver on OS X will require Xcode developer tools, which may
be installed with <code>xcode-select --install</code>. If that command is
not available, you may first need to install the
<link xlink:href="&url.apple.clt;">Command Line Tools</link> package.
</para>
</note>
</section>
<section xml:id="mongo.installation.gentoo">