configure: error: Please reinstall the libcurl distribution

Getting the "configure: error: libcurl distribution" error while compiling PHP? Find a simple solution! Instructions for Debian/Ubuntu and CentOS/RedHat. Fi...

While compiling PHP, we may run into several errors, mainly resulting from missing developer libraries; here's one of them:

configure: error: Please reinstall the libcurl distribution.

To eliminate the above error, we install the following package:

  • Debian / Ubuntu : aptitude install libcurl3-dev (32/64 bit)
  • RedHat / CentOS / Fedora : yum install curl curl-devel.x86_64 (64 bit) / yum install curl curl-devel (32 bit)