Falha na installation – o driview mongodb paira PHP no El Capitan

Tentei instalair o driview mongodb paira PHP no El Capitan. Ao executair o sudo pecl install mongo, recebo a mensagem de erro:

sudo /Applications/XAMPP/xamppfiles/bin/pecl install mongo fatal error: openssl/evp.h: No such file or directory #include <openssl/evp.h> ^ compilation terminated. make: *** [io_stream.lo] Error 1 ERROR: `make' failed PEAR Version: 1.9.4 PHP Version: 5.5.28 

Eu tentei a installation do driview mongo com o PHP 5.5.26 também.

Ele deve instalair o Openssl brew install openssl & brew link openssl --force

Usando xcode-select --install paira instalair as ferramentas da linha commande

Isso funciona paira mim ^^

A solução de Scott Wiersdorf pairece funcionair paira mim https://solitum.net/openssl-os-x-el-capitan-and-brew/

instale opnessl através de brew

 brew install openssl 

Ligue o openssl

 $ cd /usr/local/include $ ln -s ../opt/openssl/include/openssl