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 installs the php Swoole extension and appears Enable openssl support, require openssl library or fatal error:’openssl/ssl.h’ file not found
- PHP solves the problem that composer exceeds the memory size Allowed memory size
- [Solved] PHP Error: Warning: file_get_contents(): Failed to enable crypto
- Error during session start; please check your PHP and/or webserver log file and configure your PHP
- PHP encryption 3DES error Call to undefined function: mcrypt_module_open() solution
- Undefined index: name error in composer [How to Solve]
- PHP php-config is not installed error in ubuntu 16 [How to Solve]
- Lack of files in composer installation [How to Solve]
- composer Error while processing content unencoding: Unknown failure within decompression softwar
- Laravel-admin php artisan admin:install error reporting problem solution
- composer Failed to decode response: zlib_decode(): data error
- Tp6 Cannot enable error [How to Solve]
- /www/server/php/56/sbin/php-fpm:error while loading shared libraries:libssl.so.1.0. 0:cannot open shared object file:No such file or directory
- Mac: Where is php.ini Location
- Mac PHP Fatal error: Class ‘Memcache’ not found
- laravel The Process class relies on proc_open, which is not available on your PHP installation.
- PHP error in Windows: class’ mysqli ‘not found
- How to Solve PHP Error: no package’oniguruma’ found
- [Solved] Cannot find config.m4. phpize installation extension error
- [PHP] Solve PHP Call to undefined function ldap_connect()