I am trying to install composer to the laravel project.
When im doing sudo composer install
in projects directory it shows me two errors:
JavaScript
x
Problem 1
- Installation request for simplesoftwareio/simple-qrcode dev-master -> satisfiable by simplesoftwareio/simple-qrcode[dev-master].
- simplesoftwareio/simple-qrcode dev-master requires ext-gd * -> the requested PHP extension gd is missing from your system.
Problem 2
- Installation request for esendex/sdk ^1.3 -> satisfiable by esendex/sdk[v1.3.0].
- esendex/sdk v1.3.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
I was checking how to install it and I found these commands:
composer require simplesoftwareio/simple-qrcode
composer require esendex/sdk
Anyway, they are giving me the same error. Is there anything I can do about it?
Advertisement
Answer
Looks like you have some PHP modules missing.
For PHP5
JavaScript
sudo apt-get install php5-curl
sudo apt-get install php5-gd
For PHP7
JavaScript
sudo apt-get install php7-curl
sudo apt-get install php7-gd
Packages may be different depending on your OS