This question already has an answer here:
这个问题在这里已有答案:
- Error while installing mongo driver for PHP on amazon linux 2 answers
- 在amazon linux 2上安装PHP的mongo驱动程序时出错
What are the commands to instal mongdb PHP extension on Ubuntu 16.04 version? I have tried pecl install but stucks with a message:
在Ubuntu 16.04版本上安装mongdb PHP扩展的命令是什么?我已经尝试过pecl安装但卡住了一条消息:
configure: error: Cannot find OpenSSL's libraries
I am running on Ubuntu 16.04 with PHP 7 please help.
我正在使用PHP 7在Ubuntu 16.04上运行,请帮忙。
I have installed libssl-dev, but that doesn't fix the problem..
我已经安装了libssl-dev,但这不能解决问题..
libssl-dev is already the newest version (1.0.2g-1ubuntu4.5).
0 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.
Here my php version is 7 not 5.x as described in Error while installing mongo driver for PHP on amazon linux
这里我的php版本是7而不是5.x,如在amazon linux上安装PHP的mongo驱动程序时的Error中所述
1 个解决方案
#1
-2
Try running
试试跑步
sudo apt-get install php7.0-mongodb
on terminal. For the OpenSSL error, try this
在终端上。对于OpenSSL错误,请尝试此操作
sudo apt-get install openssl
#1
-2
Try running
试试跑步
sudo apt-get install php7.0-mongodb
on terminal. For the OpenSSL error, try this
在终端上。对于OpenSSL错误,请尝试此操作
sudo apt-get install openssl