V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
wuqingdzx
V2EX  ›  PHP

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

  •  
  •   wuqingdzx · Jan 29, 2019 · 5111 views
    This topic created in 2644 days ago, the information mentioned may be changed or developed.

    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 replies    2019-01-29 22:41:57 +08:00
    maggiefor
        1
    maggiefor  
       Jan 29, 2019
    删掉 lock 文件

    composer install --no-dev
    wuqingdzx
        2
    wuqingdzx  
    OP
       Jan 29, 2019
    @maggiefor ext-bcmath ^7.1 卸载 require 里
    wuqingdzx
        3
    wuqingdzx  
    OP
       Jan 29, 2019
    @maggiefor 卸载=>写在
    zjsxwc
        4
    zjsxwc  
       Jan 29, 2019 via Android
    直接写死版本为“ 7.1.26-1+ubuntu16.04.1+deb.sury.org+1 ”试试,不要写 ^7.1
    carlclone
        5
    carlclone  
       Jan 29, 2019
    ignore 版本检查 --ignore-platform-reqs
    wuqingdzx
        6
    wuqingdzx  
    OP
       Jan 29, 2019
    mingyun
        7
    mingyun  
       Jan 29, 2019
    1 楼的回答没用么
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   905 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 22:07 · PVG 06:07 · LAX 15:07 · JFK 18:07
    ♥ Do have faith in what you're doing.