php – ‘openssl / evp.h’文件找不到OS x Mongodb
发布时间:2020-12-13 22:41:23 所属栏目:PHP教程 来源:网络整理
导读:有一个母马与此.我正在尝试安装最新的 PHP mongo数据库驱动程序.我到处寻找并尝试了所有建议,但它不会传递此错误: In file included from /private/tmp/pear/install/mongodb/src/contrib/php-ssl.c:31:/private/tmp/pear/install/mongodb/src/contrib/php-
有一个母马与此.我正在尝试安装最新的
PHP mongo数据库驱动程序.我到处寻找并尝试了所有建议,但它不会传递此错误:
In file included from /private/tmp/pear/install/mongodb/src/contrib/php-ssl.c:31: /private/tmp/pear/install/mongodb/src/contrib/php-ssl.h:33:10: fatal error: 'openssl/evp.h' file not found include <openssl/evp.h> ^ 1 error generated. make: *** [src/contrib/php-ssl.lo] Error 1 ERROR: `make' failed 我的系统/设置: OS X El Capitain v 10.11.6 我正在使用此命令来安装它:sudo pecl install mongodb 我试过了: $brew install openssl $brew link openssl --force 但这已经不再适用了……而且任何最新的解决方法都不起作用 我甚至尝试过“无根”但无济于事.
This solution为我工作.如果您还没有openssl,那么首先运行brew install openssl.
然后运行: $cd /usr/local/include $ln -s ../opt/openssl/include/openssl . (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |