search

Home  >  Q&A  >  body text

mac安装PHP70链接问题帮忙解决下

zhangboxundeMacBook-Pro:~ zhangboxun$ php -v
PHP 5.6.25 (cli) (built: Sep 19 2016 15:45:41)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
zhangboxundeMacBook-Pro:~ zhangboxun$ brew install php70
Warning: homebrew/php/php70-7.0.12_5 already installed, it's just not linked
zhangboxundeMacBook-Pro:~ zhangboxun$ brew link php70
Linking /usr/local/Cellar/php70/7.0.12_5...
Error: Could not symlink bin/phar
Target /usr/local/bin/phar
already exists. You may want to remove it:
rm '/usr/local/bin/phar'

To force the link and overwrite all conflicting files:
brew link --overwrite php70

To list all files that would be deleted:
brew link --overwrite --dry-run php70

PHP中文网PHP中文网2817 days ago309

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-04-10 17:36:07

    本地已经安装过php,需要先删除或者unlink之前安装的那个php。报错信息详细,认真看。

    reply
    0
  • Cancelreply