sh lanmp.sh
***
***
checking for cURL support... yes
checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
x86_64
----Install Error: php configure err -----------
错误发生后,查询了相关博客,其中个人主要参考了以下两份博客:
https://blog.csdn.net/sinat_30603081/article/details/80880978
和
https://www.cnblogs.com/lzkalislw/p/15038404.html
参考这两篇文章,我进行操作,但并没有得到正确结果。上述错误任然出现。
希望能够得到问题的解决,如果可以,还希望能够得到具体的原因。
ssh登陆服务器,执行如下命令,然后重新安装php即可成功安装。
yum install curl-devel
或者
apt-get install curl
apt-get install libcurl4-gnutls-dev