You are not logged in.

#1 2025-04-24 12:47:20

HossamMaghrabi
Member
Registered: 2024-04-26
Posts: 31

PHP extension enabled/configured problem

Hello,

I am working on Magento 2 software. I used this command to download Magento 2

php-legacy /usr/bin/composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition /srv/http/magento2

but I got the following error message. So I follow this link https://wiki.archlinux.org/title/PHP#Extensions to fix it but the error still exists.

The error message,

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

  Problem 1
    - Root composer.json requires magento/product-community-edition 2.4.8 -> satisfiable by magento/product-community-edition[2.4.8].
    - magento/product-community-edition 2.4.8 requires ext-bcmath * -> it is missing from your system. Install or enable PHP's bcmath extension.

      Alternatively you can require one of these packages that provide the extension (or parts of it):
      Keep in mind that the suggestions are automated and may not be valid or safe to use
      - phpseclib/bcmath_compat PHP 5.x-8.x polyfill for bcmath extension
      - lumisys/bcmath_compat PHP 5.x/7.x polyfill for bcmath extension

  Problem 2
    - Root composer.json requires magento/magento2-functional-testing-framework ^5.0 -> satisfiable by magento/magento2-functional-testing-framework[5.0.0, 5.0.1, 5.0.2, 5.0.3].
    - magento/magento2-functional-testing-framework[5.0.0, ..., 5.0.3] require ext-iconv * -> it is missing from your system. Install or enable PHP's iconv extension.

      Alternatively you can require one of these packages that provide the extension (or parts of it):
      Keep in mind that the suggestions are automated and may not be valid or safe to use
      - symfony/polyfill-iconv Symfony polyfill for the Iconv extension


To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php-legacy/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-bcmath --ignore-platform-req=ext-iconv` to temporarily ignore these required extensions.

 

Regards

Offline

Board footer

Powered by FluxBB