This question already has answers here:
Composer error: "PHP extension fileinfo is missing from your system"
(12 answers)
Closed 2 years ago.
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- intervention/image is locked to version 2.5.0 and an update of this package was not requested.
- intervention/image 2.5.0 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
Problem 2
- league/flysystem is locked to version 1.0.53 and an update of this package was not requested.
- league/flysystem 1.0.53 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
Problem 3
- league/flysystem 1.0.53 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- tcg/voyager v1.2.6 requires league/flysystem ~1.0.41 -> satisfiable by league/flysystem[1.0.53].
- tcg/voyager is locked to version v1.2.6 and an update of this package was not requested
You can simple edit your php.ini file and enable the fileinfo extension. All extensions that are disabled are shown starting from a ; semicolon and every enabled one does not have the semicolon ; before it.
Here is the image
Related
This is the errors i get;
Problem 1
- league/flysystem is locked to version 1.1.9 and an update of this package was not requested.
- league/flysystem 1.1.9 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
Problem 2
- league/mime-type-detection is locked to version 1.9.0 and an update of this package was not requested.
- league/mime-type-detection 1.9.0 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
Problem 3
- league/flysystem 1.1.9 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- laravel/framework v8.83.5 requires league/flysystem ^1.1 -> satisfiable by league/flysystem[1.1.9].
- laravel/framework is locked to version v8.83.5 and an update of this package was not requested.
and in the end i get suggested
You can also run php --ini in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with --ignore-platform-req=ext-fileinfo --ignore-platform-req=ext-fileinfo --ignore-platform-req=ext-fileinfo to temporarily ignore these required extensions.
i am having a hard time accessing the php.ini and finding the line most suggest to uncomment it.
After composer update i get;
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/framework[v8.75.0, ..., 8.x-dev] require league/flysystem ^1.1 -> satisfiable by league/flysystem[1.1.0, ..., 1.x-dev].
- league/flysystem[1.1.0, ..., 1.x-dev] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- Root composer.json requires laravel/framework ^8.75 -> satisfiable by laravel/framework[v8.75.0, ..., 8.x-dev].
While installing maatwebsite/excel composer it is throwing an error regarding gd library is missing. But I checked in my system gd is already enabled.
Please see the error message below. I also attached a screenshot for the error and phpinfo screen.
Your requirements could not be resolved to an installable set of packages.
Problem 1
Installation request for phpoffice/phpspreadsheet 1.14.1 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
Problem 2
phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
maatwebsite/excel 3.1.21 requires phpoffice/phpspreadsheet ^1.14 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
Installation request for maatwebsite/excel 3.1.21 -> satisfiable by maatwebsite/excel[3.1.21].
To enable extensions, verify that they are enabled in your .ini files:
- /usr/local/etc/php/conf.d/docker-php-ext-intl.ini
- /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
- /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- /usr/local/etc/php/conf.d/docker-php-ext-zip.ini
You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.
I am trying to install mPDF package and when I run the command composer require mpdf/mpdf it displays these errors:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested PHP extension ext-gd * is missing from your system. Install or enable PHP's gd extension.
Problem 2
- mpdf/mpdf v8.0.2 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- mpdf/mpdf v8.0.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- mpdf/mpdf v8.0.0 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- Installation request for mpdf/mpdf ^8.0 -> satisfiable by mpdf/mpdf[v8.0.0, v8.0.1, v8.0.2].
To enable extensions, verify that they are enabled in your .ini files:
- C:\php\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Installation failed, reverting ./composer.json to its original content.
Can I just download mPDF and place it in my working repo? Or do I have to use Composer to install it?
I tried to search for this errors and I think the only solution would be to install chocolatey and then use it to install php7.3.2-gd , but if there is a better solution please let me know!
This question already has answers here:
How to install all required PHP extensions for Laravel?
(5 answers)
Closed 3 years ago.
Ubuntu 16.04.
nginx version: nginx/1.10.0 (Ubuntu)
PHP 7.0.8-0ubuntu0.16.04.3
When I run composer install -v in Magento 2 directory I get this:
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Dependency resolution completed in 0.000 seconds
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested PHP extension ext-gd * is missing from your system. Install or enable PHP's gd extension.
Problem 2
- The requested PHP extension ext-dom * is missing from your system. Install or enable PHP's dom extension.
Problem 3
- The requested PHP extension ext-simplexml * is missing from your system. Install or enable PHP's simplexml extension.
Problem 4
- The requested PHP extension ext-mcrypt * is missing from your system. Install or enable PHP's mcrypt extension.
Problem 5
- The requested PHP extension ext-curl * is missing from your system. Install or enable PHP's curl extension.
Problem 6
- The requested PHP extension ext-intl * is missing from your system. Install or enable PHP's intl extension.
Problem 7
- The requested PHP extension ext-xsl * is missing from your system. Install or enable PHP's xsl extension.
Problem 8
- The requested PHP extension ext-mbstring * is missing from your system. Install or enable PHP's mbstring extension.
Problem 9
- The requested PHP extension ext-zip * is missing from your system. Install or enable PHP's zip extension.
Problem 10
- Installation request for braintree/braintree_php 3.7.0 -> satisfiable by braintree/braintree_php[3.7.0].
- braintree/braintree_php 3.7.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 11
- Installation request for pelago/emogrifier v0.1.1 -> satisfiable by pelago/emogrifier[v0.1.1].
- pelago/emogrifier v0.1.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 12
- Installation request for phpunit/phpunit 4.1.0 -> satisfiable by phpunit/phpunit[4.1.0].
- phpunit/phpunit 4.1.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 13
- Installation request for theseer/fdomdocument 1.6.1 -> satisfiable by theseer/fdomdocument[1.6.1].
- theseer/fdomdocument 1.6.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 14
- theseer/fdomdocument 1.6.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- sebastian/phpcpd 2.0.0 requires theseer/fdomdocument ~1.4 -> satisfiable by theseer/fdomdocument[1.6.1].
- Installation request for sebastian/phpcpd 2.0.0 -> satisfiable by sebastian/phpcpd[2.0.0].
How do I install these extensions? I have LEMP stack installed.
You can most probably use your package manager to do this.
For the gd extension specifically you can run
sudo apt-get update && sudo apt-get install php7.0-gd
And there is probably a similar package for the rest of the extensions available.
with apt-cache search you can search for packages. for example
apt-cache search php7.0
will find you all packages related to php7.0
This question already has answers here:
Composer error while installing Laravel: 'mbstring' is missing?
(3 answers)
Closed 6 years ago.
problem 1
- Installation request for laravel/framework v5.3.18 -> satisfiable by laravel/framework[v5.3.18].
- laravel/framework v5.3.18 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 2
- Installation request for phpunit/phpunit 5.6.1 -> satisfiable by phpunit/phpunit[5.6.1].
- phpunit/phpunit 5.6.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
To enable extensions, verify that they are enabled in those .ini files:
- /etc/php/7.0/cli/php.ini
- /etc/php/7.0/cli/conf.d/10-opcache.ini
- /etc/php/7.0/cli/conf.d/10-pdo.ini
- /etc/php/7.0/cli/conf.d/15-xml.ini
- /etc/php/7.0/cli/conf.d/20-calendar.ini
You don't have mbstring installed with your php.
If you have access to the server, and it's a Linux one, you can install it with
sudo apt-get install php-mbstring
Hope I was helpful.