Composer Install Error Require ext-curl missing - Solved

By Hardik Savani November 5, 2023 Category : PHP

A few days ago, I was working on my laravel 9 application. I just set up a project on the server. then I was trying to composer installed and I found the following error.

"require ext-curl - it is missing in the system ..." in the terminal.

I google it and find we need to install php-curlextensions for composer install error require ext-curl missing. so let's see the below solution.

Solution:

You need to run both command one by one:

sudo apt-get install php-curl

Solution for PHP 8.2

You need to run both command one by one:

sudo apt-get install php8.2-curl

Solution for PHP 8.1

You need to run both command one by one:

sudo apt-get install php8.1-curl

Solution for PHP 8.0

You need to run both command one by one:

sudo apt-get install php8.0-curl

Solution for PHP 7.4

You need to run both command one by one:

sudo apt-get install php7.4-curl

Solution for PHP 7.3

You need to run both command one by one:

sudo apt-get install php7.3-curl

Solution for PHP 7.2

You need to run both command one by one:

sudo apt-get install php7.2-curl

I hope it can help you...

Tags :
Shares