ubuntu下安装php openssl扩展

Posted 超越昨天的自己就是进步

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu下安装php openssl扩展相关的知识,希望对你有一定的参考价值。

安装composer的时候需要openssl扩展,安装的时候出现了如下问题:

 

编译 --with-openssl的时候出现

configure: error: Cannot find OpenSSL’s <evp.h> or <hmac.h>

解决办法是安装libssl-dev.

如果不可以的话:

sudo apt-get install openssl

sudo apt-get install libcurl4-openssl-dev

然后再sudo apt-get install libssl-dev即可安装openssl

 

以上是关于ubuntu下安装php openssl扩展的主要内容,如果未能解决你的问题,请参考以下文章