Issue
While compiling PHP with cURL support we get the error below:
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/
Even, the package libcurl is already installed on the server:
# yum list installed | grep curl
curl.x86_64 7.29.0-59.el7_9.1 @updates
libcurl.x86_64 7.29.0-59.el7_9.1 @updates
Solution
In this, we have to make sure that the libcurl-devel package is installed on the server, if it is not then install it first as follows:
sudo yum install libcurl-devel -y
# yum list installed | grep curl
curl.x86_64 7.29.0-59.el7_9.1 @updates
libcurl.x86_64 7.29.0-59.el7_9.1 @updates
libcurl-devel.x86_64 7.29.0-59.el7_9.1 @updates
python-pycurl.x86_64 7.19.0-19.el7 @anaconda
And then try to re-compile PHP with cURL and it should be able to compile this time.
ADVERTISEMENT
5/5 - (1 vote)