cannot find or include curl – This is a common error that we encounter while installing PHP packages that are dependent on curl.

The solution is to install the dependent curl packages in the system.

In CentOS, RHEL machines, install the following dependency

sudo yum install curl-devel

In Ubuntu, Debian, Raspbian operating systems, install the following package

sudo apt-get install libcurl4-gnutls-dev

This will solve the problem.

I hope the above tip is helpful. Feel free to comment incase of any queries or feedback.

Advertisement