mac切换php版本

brew 安装的php56 php7php-version . 不过php-version找不到php的两个版本。

$php-version 5
显示报错: 
Sorry, but php-version was unable to find version '5' under ''.

php-version 的 bug-report.sh显示,有大神给个指点么
clipboard.png

阅读 4.5k
2 个回答

你先直接运行 php-version 看看你装了哪些 php 版本吧

php-version 5 : Activate the latest available 5.x version

今天我也遇到这个问题了,你解决了吗?

我看github上面说导入环境变量
export PHP_VERSIONS="php_dir"
我试了好多都不可以。

echo $PHP_VERSIONS
/usr/local/Cellar/php@7.1/7.1.14_25

Sorry, but php-version was unable to find version '7.1.14' under ''.

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题