错误而对于PHP在Amazon Linux上安装蒙戈驱动程序 [英] Error while installing mongo driver for PHP on amazon linux

查看:143
本文介绍了错误而对于PHP在Amazon Linux上安装蒙戈驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图安装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

这篇关于错误而对于PHP在Amazon Linux上安装蒙戈驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆