V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
wuqingdzx
V2EX  ›  PHP

bcmath 扩展已经安装, Composer install 冲突

  •  
  •   wuqingdzx · 2019-01-29 13:45:56 +08:00 · 4327 次点击
    这是一个创建于 1906 天前的主题,其中的信息可能已经有所发展或是发生改变。

    php 版本

    php 版本

    bcmath 情况

    bcmath 情况

    冲突详情

    冲突详情

    bcmath扩展已经安装了,但是执行composer install或者update都报错

    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - The requested PHP extension ext-bcmath ^7.1 has the wrong version (7.1.26-1+ubuntu16.04.1+deb.sury.org+1) installed. Install or enable PHP's bcmath extension.
    
    
    7 条回复    2019-01-29 22:41:57 +08:00
    maggiefor
        1
    maggiefor  
       2019-01-29 14:05:28 +08:00
    删掉 lock 文件

    composer install --no-dev
    wuqingdzx
        2
    wuqingdzx  
    OP
       2019-01-29 15:43:01 +08:00
    @maggiefor ext-bcmath ^7.1 卸载 require 里
    wuqingdzx
        3
    wuqingdzx  
    OP
       2019-01-29 15:47:07 +08:00
    @maggiefor 卸载=>写在
    zjsxwc
        4
    zjsxwc  
       2019-01-29 17:42:07 +08:00 via Android
    直接写死版本为“ 7.1.26-1+ubuntu16.04.1+deb.sury.org+1 ”试试,不要写 ^7.1
    carlclone
        5
    carlclone  
       2019-01-29 18:07:53 +08:00
    ignore 版本检查 --ignore-platform-reqs
    wuqingdzx
        6
    wuqingdzx  
    OP
       2019-01-29 18:45:23 +08:00
    mingyun
        7
    mingyun  
       2019-01-29 22:41:57 +08:00
    1 楼的回答没用么
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5467 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 06:49 · PVG 14:49 · LAX 23:49 · JFK 02:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.