【问题标题】:Install PHP 7.3 for Mac WITHOUT HomeBrew在没有 HomeBrew 的情况下为 Mac 安装 PHP 7.3
【发布时间】:2019-09-24 20:01:55
【问题描述】:

一直在努力弄清楚为什么我安装的 php 7.3 没有被识别。

我在终端中运行了以下命令:

curl -s https://php-osx.liip.ch/install.sh | bash -s 7.3

我收到一条成功消息,但是当我尝试验证版本时,它显示 PHP 7.1

我已将我的 .bash_profile 更新为以下内容:

export PATH=/usr/local/php5/bin:$PATH

即使在更新路径之后,当我运行 php -v 时,我仍然会得到 PHP 7.1

任何帮助将不胜感激。

【问题讨论】:

    标签: php macos installation


    【解决方案1】:

    尝试将PATH中的“php5”替换为“php7”或“php”

    在您从 .bash_profile

    更改 PATH 值后,记得打开新的 bash 会话(或获取您的个人资料 source .bash_profile

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-21
      • 2016-04-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多