Maison  >  Questions et réponses  >  le corps du texte

php - mac下通过pecl安装mongodb,报错

/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_leeringa_lee2686 Il y a quelques jours1050

répondre à tous(1)je répondrai

  • PHPz

    PHPz2017-05-16 13:08:54

    Je l'ai installé en utilisant homebrew Cette méthode d'installation est recommandée Voici une introduction à l'installation de mongodb sur Mac

    .

    répondre
    0
  • Annulerrépondre