我试图安装MongoDB的驱动程序在Amazon Linux的PHP。
在运行 sudo的PECL安装蒙戈
,我得到错误信息:
I tried to install the mongodb driver for PHP on Amazon Linux.
While running sudo pecl install mongo
, I get the error message:
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版本:1.9.5 PHP版本:29年3月5日
PEAR Version: 1.9.5 PHP Version: 5.3.29
我装gcc帮助我与安装到这个错误取得进一步进展。
I installed gcc which helped me progress further with the install till this error.
最好的向导,我能够找到的是在这里: http://jonathanhui.com/install-mongodb-amazon-linux PHP手册: http://php.net/manual/en/mongo.installation.php
The best Guide I was able to find was here: http://jonathanhui.com/install-mongodb-amazon-linux PHP's guide: http://php.net/manual/en/mongo.installation.php
执行副总裁
是高层次的加密功能。
evp
is high-level cryptographic functions.
尝试安装开发库:
Ubuntu的:
命令和apt-get安装的libssl-dev的
Ubuntu:
sudo apt-get install libssl-dev
CentOS的:
百胜安装OpenSSL的-devel软件包
CentOS:
yum install openssl-devel