composer install emerging issues

After cloning the code today, the composer install when there are some problems in this record it.

Error codes are as follows:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[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.

  This shows an increase to give php extension ext-bcmath

  1, enter the following directory  

1
cd  /usr/local/php/lib

  2, then execute the following code

1
yum  install  php-bcmath

  It can be installed successfully,

  From the above chart issues still need to install mbstring

1
yum  install  php-mbstring

  Enter to successful installation,

  Finally solved the problem, continue composer install, operate well completed!

 

If you are using ubuntu

Use the following command

sudo apt-get install php-bcmath

Guess you like

Origin www.cnblogs.com/Json159/p/11527049.html