解决configure: error: Please reinstall the libcurl distribution

让server服务器的php环境支持curl的时候, 在编译时出现如下报错

checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/

其实就是curl的dev包没有安装, 解决方案:
# yum -y install curl-devel

再重新编译OK。

你可能感兴趣的:(职场,curl,休闲,reinstall)