今天克隆代码以后,在composer install 的时候出现了一些问题,在此记录一下。php
错误代码以下:json
[root@localhost MarketingCenter]# composer install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for php-amqplib/php-amqplib v2.7.0 -> satisfiable by php-amqplib/php-amqplib[v2.7.0]. - php-amqplib/php-amqplib v2.7.0 requires ext-bcmath * -> the requested PHP extension bcmath is missing from your system. Problem 2 - php-amqplib/php-amqplib v2.7.0 requires ext-bcmath * -> the requested PHP extension bcmath is missing from your system. - php-amqplib/thumper v0.5.0 requires php-amqplib/php-amqplib ^2.6 -> satisfiable by php-amqplib/php-amqplib[v2.7.0]. - Installation request for php-amqplib/thumper v0.5.0 -> satisfiable by php-amqplib/thumper[v0.5.0]. To enable extensions, verify that they are enabled in your .ini files: - /etc/php.ini - /etc/php.d/curl.ini - /etc/php.d/fileinfo.ini - /etc/php.d/json.ini - /etc/php.d/phar.ini - /etc/php.d/zip.ini You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
因而可知 要给php 增长扩展 ext-bcmathbash
一、进入以下目录 composer
cd /usr/local/php/lib
二、而后执行以下代码curl
yum install php-bcmath
便可安装成功,ide
由上图问题还须要继续安装mbstringui
yum install php-mbstring
回车便可安装成功,url
最后解决了问题,在继续composer install,好了操做完成!code