我正在尝试为OS X安装PHP mongo驱动程序.我试过跟随
these instructions无济于事.
$pecl – > /usr/local/Cellar/PHP56/5.6.13_2/bin/pecl
$sudo pecl install mongo – >完整的构建结果here但问题是错误:
In file included from /private/tmp/pear/install/mongo/io_stream.c:34: /private/tmp/pear/install/mongo/contrib/PHP-ssl.h:33:10: fatal error: 'openssl/evp.h' file not found #include <openssl/evp.h>
我的Xcode命令行工具是最新的(我使用$xcode-select –install来确定).
我确定如何解决这个问题.
我设法通过使用Homebrew(
as suggested here)安装OpenSSL来解决这个问题:
$brew install openssl $brew link openssl --force
然后
$sudo pecl install mongodb