configure: error: Please reinstall the libcurl distribution

When compiling php from source for nginx web server, i get error

checking for cURL support... yes
checking if we should use cURL for url streams... yes
checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
    easy.h should be in /include/curl/

On checking, found curl-devel not installed

[root@vps1 php-5.2.8]# yum list|grep curl
curl.x86_64                              7.15.5-2.el5           installed
curl.i386                                7.15.5-2.el5           installed
curl-devel.x86_64                        7.15.5-2.el5           base
curl-devel.i386                          7.15.5-2.el5           base
[root@vps1 php-5.2.8]#

The problem is fixed by installing curl-devel

yum -y install curl-devel

See Errors

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *