Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP5-Curl install error no installation candidate

I want to install PHP5-Curl in my Debian server. But when I run this command:

apt-get install PHP5-Curl

I got an error like:

Reading package lists... Done
Building dependency tree
Reading state information... Done

Package PHP5-Curl is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'PHP5-Curl' has no installation candidate
like image 702
bitcodr Avatar asked Jan 03 '16 09:01

bitcodr


2 Answers

Try searching for the available version that suits for you with sudo apt-cache search curl | grep php and then sudo apt-get install php<x>-curl.

In my case it was php7.0-curl.

like image 97
bogtan Avatar answered Sep 19 '22 20:09

bogtan


First search for your php version using command php -v and then download the respective version of php(version)-curl.

like image 23
Biswadp Avatar answered Sep 17 '22 20:09

Biswadp