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

 

posted @ 2016-12-16 23:12  sundong_wyz  阅读(5065)  评论(0编辑  收藏  举报