pecl installs for previous php version

前端 未结 7 737
心在旅途
心在旅途 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条回答
  •  -上瘾入骨i
    2021-01-30 15:15

    There is a way to switch PHP version on Ubuntu:

    sudo update-alternatives --set php /usr/bin/php5.6
    

    and optionally:

    sudo update-alternatives --set phar /usr/bin/phar5.6
    sudo update-alternatives --set phar.phar /usr/bin/phar.phar5.6
    sudo update-alternatives --set phpize /usr/bin/phpize5.6
    sudo update-alternatives --set php-config /usr/bin/php-config5.6
    

    Source: https://superuser.com/a/1100911/371795

提交回复
热议问题