首页 > 开发工具 > composer > composer install报错怎么办

composer install报错怎么办

爱喝马黛茶的安东尼
发布: 2019-08-21 14:59:48
原创
3566 人浏览过

composer install报错怎么办

错误代码如下:

相关推荐:《composer教程

[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-bcmath。

1、进入如下目录  

cd /usr/local/php/lib
登录后复制

2、然后执行如下代码

yum install php-bcmath
登录后复制

即可安装成功,由上图问题还需要继续安装 mbstring。

yum install php-mbstring
登录后复制

回车即可安装成功,

最后解决了问题,再继续 composer install,好了操作完成!

以上是composer install报错怎么办的详细内容。更多信息请关注PHP中文网其他相关文章!

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板