mac sierra,用pecl安装mongodb报错,找不到openssl头文件

安装 pecl install mongodb

错误 : configure: error: Cannot find OpenSSL's <evp.h>
ERROR: `/private/tmp/pear/install/mongodb/configure --with-php-config=/usr/local/php/bin/php-config' failed

阅读 4.1k
1 个回答

Cannot find OpenSSL's 那就先安装这个OpenSSL;
不过还是建议通过 brew install 的方式安装

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题