pecl installs for previous php version

前端 未结 7 735
心在旅途
心在旅途 2021-01-30 14:40

I\'ve upgraded my MacBook to Mavericks and ruined my development environment. The problem I have right now is that my pear/pecl still tries to install for my previous (5.3) vers

7条回答
  •  孤独总比滥情好
    2021-01-30 15:04

    Encountered similar problem recently.

    (Debian, PHP 7.3 just installed, was using PHP 7.2)

    If anybody tried the highest voted answer but still not working. Here are the steps to debug:

    • Remove all other php versions, especially the dev package (php7.2-dev in my case)
    • install the dev package for the current version (php7.3-dev)

    And basically that's it.

    Reason:

    PECL requires phpize which is part of php-dev package. If phpize for the current version is not found, if will look for the previous version, which resulting a older PHP API number

提交回复
热议问题