The requested PHP extension exit-BCMath * is missing from your system. Install or enable PHP’s BCMath extension. The requested PHP extension exit-BCMath * is missing from your system.
Install the PHP BCMath extension 1. First check your own PHP version 2. After the installation is complete, restart php4. Check to see if the PHP extension is installed successfully
An error
$ composer require --prefer-dist yiisoft/yii2-mongodb
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Using version ^2.1 for yiisoft/yii2-mongodb
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested PHP extension ext-bcmath * is missing from your system. Install or enable PHP's bcmath extension.
Problem 2
- The requested PHP extension ext-mcrypt * is missing from your system. Install or enable PHP's mcrypt extension.
Installation failed, reverting ./composer.json to its original content.
Solution: Install the BCMath extension for PHP
1. Check your own version of PHP first
php -v
2. Install the corresponding version of the extension
yum -y install php72w-bcmath
Note: 72W represents version 7.2. Please specify the version number when installing
3. After the installation is complete, restart PHP
service php-fpm restart 或 systemctl restart php-fpm
4. Check to see if the PHP extension was installed successfully
php -m
Read More:
- Mac PHP Fatal error: Class ‘Memcache’ not found
- PHP error in Windows: class’ mysqli ‘not found
- composer Error while processing content unencoding: Unknown failure within decompression softwar
- How to solve Magento 500 internal server errors
- composer Failed to decode response: zlib_decode(): data error
- Configure: error: Cannot find libz error appears when brew installs php70
- How to Hide index.php
- php_network_getaddresses: getaddrinfo failed (How to Fix)
- php Error: mail() Failed to connect to mailserver at “localhost” port 25
- PHP Error Object of class mysqli could not be converted to string in
- nginx.conf php-fpm.conf and php.ini Error among the three_ Differences and relations between log instructions
- PHP parse error: syntax error, unexpected ‘use’
- Error: call-time pass-by-reference has been removed
- Unserialize(): cause analysis and solution of error at offset
- PHP: How to get the total number of data in the MySQL table (total number of rows)
- Fatal error: Function name must be a string in