Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add php extension validation #104

Merged
merged 1 commit into from
May 27, 2022
Merged

add php extension validation #104

merged 1 commit into from
May 27, 2022

Conversation

ejnshtein
Copy link
Collaborator

Prevents those errors:

Unexpected error during composer install.

Error: Code: 2
        Response: No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

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

To enable extensions, verify that they are enabled in your .ini files:
    - /home/suresh/magento/magento2/node_modules/.create-magento-app-cache/php.ini
    - /home/suresh/.phpbrew/php/php-7.4.27/var/db/gd.ini
    - /home/suresh/.phpbrew/php/php-7.4.27/var/db/intl.ini
    - /home/suresh/.phpbrew/php/php-7.4.27/var/db/libsodium.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-iconv` to temporarily ignore these required extensions.

Those errors are appearing because some users decide to compile PHP themselves using PHPBrew, but their version of PHP is missing some important bundled extensions.
So, we need to tell them that magento-scripts should handle this.

@ejnshtein ejnshtein merged commit 0b13a49 into master May 27, 2022
@ejnshtein ejnshtein deleted the php-extension-validation branch May 27, 2022 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant