【发布时间】:2017-04-18 05:37:23
【问题描述】:
我刚刚更新到 Mac OS Sierra 版本 10.12.1 并执行了
sudo pecl install mongodb
安装失败并显示此消息
Configure: error: Cannot find OpenSSL's <evp.h>
ERROR: `/private/tmp/pear/temp/mongodb/configure' failed
也尝试使用 Homebrew 安装
brew install php56-mongo
但仍未安装 mongo db php 驱动程序 phpinfo() 不显示 mongo 扩展。
也尝试了这里提供的解决方案Using pecl to install the Mongodb driver on OS X El Capitan (v10.11.1)
当我尝试执行时
brew install openssl
Warning: openssl-1.0.2j already installed
当我执行时
brew link openssl --force 上面写着
Warning: Refusing to link: openssl
Linking keg-only openssl means you may end up linking against the insecure,
deprecated system OpenSSL while using the headers from Homebrew's openssl.
Instead, pass the full include/library paths to your compiler e.g.:
-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib
知道如何让它工作吗?
【问题讨论】:
标签: php mongodb macos homebrew