mongodb - io_stream.lo Error 1 when installing php extension -


i'm trying install mongo php extension on osx 10.11 command:

sudo pecl install mongo

gives following error:

... in file included /private/tmp/pear/install/mongo/io_stream.c:34: /private/tmp/pear/install/mongo/contrib/php-ssl.h:33:10: fatal error: 'openssl/evp.h' file not found #include <openssl/evp.h>          ^ 1 error generated. make: *** [io_stream.lo] error 1 error: `make' failed 

  1. brew install openssl
  2. ln -s /usr/local/cellar/openssl/1.0.2d_1/include/openssl /usr/local/include/openssl

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -