php - mac下通过pecl安装mongodb,报错
ringa_lee
ringa_lee 2017-05-16 13:06:54
0
1
1107
/private/tmp/pear/install/mongodb/src/libmongoc/src/mongoc/mongoc-crypto-openssl.c:24:10: fatal error: 'openssl/sha.h' file not found
#include <openssl/sha.h>
         ^
1 error generated.
make: *** [src/libmongoc/src/mongoc/mongoc-crypto-openssl.lo] Error 1
ERROR: `make' failed

用pecl安装报如上错误,有童鞋知道咋回事吗?

已经安装openssl

ringa_lee
ringa_lee

ringa_lee

Antworte allen(1)
PHPzhong

我是用homebrew安装的,推荐这种安装方式,这里有介绍 Mac安装mongodb

Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage