Home > Development Tools > composer > What to do if composer install fails

What to do if composer install fails

爱喝马黛茶的安东尼
Release: 2019-08-21 14:59:48
Original
3569 people have browsed it

What to do if composer install fails

The error code is as follows:

Related recommendations: "composer Tutorial"

[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.
Copy after login

It can be seen that you need to add Extends ext-bcmath.

1. Enter the following directory.

cd /usr/local/php/lib
Copy after login

2. Then execute the following code

yum install php-bcmath
Copy after login

to install successfully. Due to the problem in the above picture, you need to continue to install mbstring.

yum install php-mbstring
Copy after login

Press Enter to install successfully.

Finally solved the problem, then continue composer install, the operation is completed!

The above is the detailed content of What to do if composer install fails. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template