Ben*_*yes 7 php ssl install pecl mongodb
有一个母马与此.我正在尝试安装最新的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
Run Code Online (Sandbox Code Playgroud)
我的系统/设置:
OS X El Capitain v 10.11.6
PHP 7.1.0
Apache
我正在使用此命令来安装它: sudo pecl install mongodb
我试过了:
$ brew install openssl
$ brew link openssl --force
Run Code Online (Sandbox Code Playgroud)
但这已经不再适用了......而且任何最新的解决方法都不起作用
我甚至尝试过"无根"但无济于事.
ier*_*dna 20
这个解决方案对我有用.如果你还没有openssl,那么先运行brew install openssl.然后运行:
$ cd /usr/local/include
$ ln -s ../opt/openssl/include/openssl .
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3324 次 |
| 最近记录: |