1

While installing magento2.4 using composer with php 7.4 I'm getting below message

Problem 1

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

To enable extensions, verify that they are enabled in your .ini files:

- /etc/php/7.4/cli/php.ini - /etc/php/7.4/cli/conf.d/10-mysqlnd.ini - /etc/php/7.4/cli/conf.d/10-opcache.ini - /etc/php/7.4/cli/conf.d/10-pdo.ini - /etc/php/7.4/cli/conf.d/15-xml.ini - /etc/php/7.4/cli/conf.d/20-bz2.ini - /etc/php/7.4/cli/conf.d/20-calendar.ini - /etc/php/7.4/cli/conf.d/20-ctype.ini - /etc/php/7.4/cli/conf.d/20-curl.ini - /etc/php/7.4/cli/conf.d/20-dom.ini - /etc/php/7.4/cli/conf.d/20-exif.ini - /etc/php/7.4/cli/conf.d/20-ffi.ini - /etc/php/7.4/cli/conf.d/20-fileinfo.ini - /etc/php/7.4/cli/conf.d/20-ftp.ini - /etc/php/7.4/cli/conf.d/20-gd.ini - /etc/php/7.4/cli/conf.d/20-gettext.ini - /etc/php/7.4/cli/conf.d/20-iconv.ini - /etc/php/7.4/cli/conf.d/20-imagick.ini - /etc/php/7.4/cli/conf.d/20-imap.ini - /etc/php/7.4/cli/conf.d/20-intl.ini - /etc/php/7.4/cli/conf.d/20-json.ini - /etc/php/7.4/cli/conf.d/20-mbstring.ini - /etc/php/7.4/cli/conf.d/20-mysqli.ini - /etc/php/7.4/cli/conf.d/20-pdo_mysql.ini - /etc/php/7.4/cli/conf.d/20-phar.ini - /etc/php/7.4/cli/conf.d/20-posix.ini - /etc/php/7.4/cli/conf.d/20-readline.ini - /etc/php/7.4/cli/conf.d/20-shmop.ini - /etc/php/7.4/cli/conf.d/20-simplexml.ini - /etc/php/7.4/cli/conf.d/20-soap.ini - /etc/php/7.4/cli/conf.d/20-sockets.ini - /etc/php/7.4/cli/conf.d/20-sysvmsg.ini - /etc/php/7.4/cli/conf.d/20-sysvsem.ini - /etc/php/7.4/cli/conf.d/20-sysvshm.ini - /etc/php/7.4/cli/conf.d/20-tokenizer.ini - /etc/php/7.4/cli/conf.d/20-xmlreader.ini - /etc/php/7.4/cli/conf.d/20-xmlrpc.ini - /etc/php/7.4/cli/conf.d/20-xmlwriter.ini - /etc/php/7.4/cli/conf.d/20-xsl.ini - /etc/php/7.4/cli/conf.d/20-zip.ini 

You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

How can I solve it.

4
  • check does this extension enable there or not? bcmath Commented Sep 7, 2020 at 10:53
  • @DhirenVasoya In php.ini I could not find any extension like this. I am sharing you a file which are available on /etc/php/7.4/cli/php.ini gofile.io/d/QGupXf Commented Sep 7, 2020 at 10:56
  • Then you need to install that one. Commented Sep 7, 2020 at 11:00
  • magecheckout.com/… Commented Jan 25, 2021 at 11:19

1 Answer 1

2

You can install the extension using this command :

sudo apt-get install php7.4-bcmath 

These are the extension, that required to do this :

ext-bcmath ext-ctype ext-curl ext-dom ext-gd ext-hash ext-iconv ext-intl ext-mbstring ext-openssl ext-pdo_mysql ext-simplexml ext-soap ext-xsl ext-zip 
7
  • After installing this extension I did not require any other extension? Commented Sep 7, 2020 at 11:04
  • Check the above list, this is required to do installation. More information you can read this one : devdocs.magento.com/guides/v2.4/install-gde/… Commented Sep 7, 2020 at 11:08
  • Thank you for your help When I install any of the above. I'm getting error of ibb.co/PZ2XCCv Commented Sep 7, 2020 at 11:13
  • Your coomand need to like this one : sudo apt-get install php7.4-ctype Commented Sep 7, 2020 at 11:25
  • If answer help then Upvote and accept as solutions, so it will help other in community. Commented Sep 7, 2020 at 13:59

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.