wuqingdzx
V2EX  ›  PHP

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

  •  
  •   wuqingdzx · Jan 29, 2019 · 5539 views
    This topic created in 2840 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
    maggiefor
    Jan 29, 2019
    1
    删掉 lock 文件

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