• 1-888-289-2246
  • 24x7x365 Presence

How to fix the error: "Please reinstall the libcurl"


While compiling PHP with cURL support we get the error below:-

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

However, if we check libcurl is already installed on the server with the command below:-

yum list|grep curl

curl.x86_64                              7.19.7-37.el6_4                @updates
libcurl.x86_64                           7.19.7-37.el6_4                @updates
libcurl-devel.x86_64                     7.19.7-37.el6_4                @updates
python-pycurl.x86_64                     7.19.0-8.el6                   @anaconda-CentOS-201207061011.x86_64/6.3
libcurl.i686                             7.19.7-37.el6_4                updates
libcurl-devel.i686                       7.19.7-37.el6_4                updates

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 below:-

yum install libcurl-devel -y

and then try to re-compile PHP with cURL and it should be able to compile this time.

]]>


Leave a Reply

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