因为运行php的configure命令时,我加了--with-curl, 程序在里面找默认路径,找不到可编译用的eash.h文件,显示了以下错误:
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/
网上说要用apt-get重新安装一下libcurl4,安装了半天没什么卵用
apt-get install libcurl4-openssl-dev libcurl4-gnutls-dev
于是用find命令找了一下easy.h这个文件的位置
find / -name "easy.h"
发现结果是/usr/include/x86_64-linux-gnu/curl/easy.h
服务器是debian系统,这样一来用下列方法解决:
cd /usr/include ln -s x86_64-linux-gnu/curl
再次运行php configure发现搞定了。