我试图在El Capitan上安装PHP的mongodb驱动程序 . 在运行sudo pecl install mongo时,我收到错误消息:
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
我也试过用PHP 5.5.26安装mongo驱动程序 .
1 回答
我有同样的问题 . 安装此脚本安装一个干净的PHP版本:
curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6
有关详细信息,请参阅此博客文章:http://jacurtis.com/easily-install-mcrypt-php-mavericks-yosemite/