I just updated to Mac OS Sierra version 10.12.1 and executed
sudo pecl install mongodb
Installation failed and shows this message
Configure: error: Cannot find OpenSSL's <evp.h>
ERROR: `/private/tmp/pear/temp/mongodb/configure' failed
Also tried using Homebrew installation
brew install php56-mongo
but still mongo db php driver is not installed phpinfo() doesn't show the mongo extension.
Also tried with the solution provided here Using pecl to install the Mongodb driver on OS X El Capitan (v10.11.1)
when I try execute
brew install openssl
Warning: openssl-1.0.2j already installed
and again when I execute
brew link openssl --force
it says
Warning: Refusing to link: openssl
Linking keg-only openssl means you may end up linking against the insecure,
deprecated system OpenSSL while using the headers from Homebrew's openssl.
Instead, pass the full include/library paths to your compiler e.g.:
-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib
Any idea how to get it work?