php – 使用pecl在OS X El Capitan上安装Mongodb驱动程序(v10.11
发布时间:2020-12-13 22:43:16 所属栏目:PHP教程 来源:网络整理
导读:我正在尝试为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/mo
我正在尝试为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 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |