1

I found a lot of questions on this topic. but sorry, nothing can resolve my issue.

I am using virtual box to run centos 7. I have downloaded Magento 2.3. I tried composer install on my Magento folder and it returns the error,

moontoast/math 1.1.2 requires ext-bcmath * -> the requested PHP extension bcmath is missing from your system

so I searched for this error, and I got an answer to install bcmath with the command

sudo yum install php7.2-bcmath

at this time, I faced another issue, like error

and again searched for this and got another answer to try out with

sudo yum install php7.2-bcmath --disablerepo=epel\*

I ran this command, and the result shows like below,

enter image description here

and the thing is that I am just trying to configure Magento. I spent 3 days on it. really fed up. I got stuck.

Please help me to go forward. still, I am facing the issue with

moontoast/math 1.1.2 requires ext-bcmath * -> the requested PHP extension bcmath is missing from your system

my php -v is

PHP 7.2.9 (cli) (built: Aug 25 2018 14:12:18) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans
with Zend OPcache v7.2.9, Copyright (c) 1999-2018, by Zend Technologies
  • what is the php version ? if it is 7.1 then use this command "sudo yum install php7.1-bcmath" – surbhi agr Jun 12 at 7:10
  • 1
    Try using "sudo yum install php-bcmath" – surbhi agr Jun 12 at 7:15
  • 1
    sudo yum install php72w-bcmath try this – surbhi agr Jun 12 at 7:26
  • 1
    No problem! Glad i could help :) – surbhi agr Jun 12 at 9:35
  • 1
    I have posted it as answer so that others may also benefit – surbhi agr Jun 12 at 11:52
1

You can solve it with the help of following command

sudo yum install php72w-bcmath --disablerepo=epel\* 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.