php - Installing mongodb through pecl under mac, error reporting
ringa_lee
ringa_lee 2017-05-16 13:06:54
0
1
1100
/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

When installing pecl, the above error is reported. Does anyone know what is going on?

openssl has been installed

ringa_lee
ringa_lee

ringa_lee

reply all(1)
PHPzhong

I installed it using homebrew. This installation method is recommended. Here is an introduction to installing mongodb on Mac

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template