0

I am trying to run composer update and want to push the changes to magento cloud but is giving the following error:

Problem 1

  • magento/product-enterprise-edition 2.3.4 requires ext-bcmath * -> the requested PHP extension bcmath is missing from your system.
  • magento/product-enterprise-edition 2.3.4 requires ext-bcmath * -> the requested PHP extension bcmath is missing from your system.
  • Installation request for magento/product-enterprise-edition 2.3.4 -> satisfiable by magento/product-enterprise-edition[2.3.4].

Maybe because it is conflicting with my local PHP environment? I am running the command outside the docker container. Is it necessary to run the commands inside a docker container?

asked May 26, 2021 at 14:03

2 Answers 2

1

Composer must be run using PHP that is used by your Magento instance. If you use a Docker setup, you need to run it inside Docker container (via 'docker exec' command, see: https://docs.docker.com/engine/reference/commandline/exec/).

answered May 26, 2021 at 16:59
0

run

sudo apt install php7.x-bcmath

change x with your PHP version

answered May 26, 2021 at 14:11

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.