pxlrbt / filament-excel

Excel Export for Filament Admin Resources
MIT License
355 stars 68 forks source link

Installation error #85

Closed Drummond-Dev closed 1 year ago

Drummond-Dev commented 1 year ago

I follow both installation methods and got the same error!! How can I resolve this error?

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - pxlrbt/filament-excel[0.1.0, ..., 0.1.4, v1.0.0, ..., v1.1.11] require maatwebsite/excel ^3.1 -> satisfiable by maatwebsite/excel[3.1.0, ..., 3.1.48].
    - maatwebsite/excel[3.1.36, ..., 3.1.48] require phpoffice/phpspreadsheet ^1.18 -> satisfiable by phpoffice/phpspreadsheet[1.18.0, ..., 1.28.0].
    - phpoffice/phpspreadsheet[1.18.0, ..., 1.28.0] require ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.
    - maatwebsite/excel[3.1.0, ..., 3.1.25] require php ^7.0 -> your php version (8.2.5) does not satisfy that requirement.
    - maatwebsite/excel[3.1.26, ..., 3.1.35] require illuminate/support 5.8.*|^6.0|^7.0|^8.0 -> found illuminate/support[v5.8.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
    - Root composer.json requires pxlrbt/filament-excel * -> satisfiable by pxlrbt/filament-excel[0.1.0, ..., 0.1.4, v1.0.0, ..., v1.1.11].

To enable extensions, verify that they are enabled in your .ini files:
    - /opt/alt/php82/etc/php.ini
    - /opt/alt/php82/link/conf/alt_php.ini
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-gd` to temporarily ignore these required extensions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require pxlrbt/filament-excel:*" to figure out if any version is installable, or "composer require pxlrbt/filament-excel:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
pxlrbt commented 1 year ago

Check this line of your error message:

  • phpoffice/phpspreadsheet[1.18.0, ..., 1.28.0] require ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.