安装失败 - El Capitan 上 PHP 的 mongodb 驱动程序

Installation failure - the mongodb driver for PHP on El Capitan

我试图在 El Capitan 上为 PHP 安装 mongodb 驱动程序。 运行 sudo pecl install mongo 时,我收到错误消息:

sudo /Applications/XAMPP/xamppfiles/bin/pecl install mongo

fatal error: openssl/evp.h: No such file or directory
 #include <openssl/evp.h>
                         ^
compilation terminated.
make: *** [io_stream.lo] Error 1
ERROR: `make' failed
PEAR Version: 1.9.4 PHP Version: 5.5.28

我也尝试 mongo 驱动程序安装 PHP 5.5.26。

我遇到了同样的问题。安装此脚本,它会安装 php 的干净版本: curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6

有关详细信息,请参阅此博客 post:http://jacurtis.com/easily-install-mcrypt-php-mavericks-yosemite/