“Brew install php”导致错误“错误:没有这样的文件或目录”

miv*_*ivd 1 php homebrew

你好,最近我升级了我的 mac,这给我的 php 安装带来了一些严重的问题。我之前使用自制软件安装了这个,所以我尝试通过卸载它然后运行来重新安装 php brew install php。但是现在我收到此错误:Error: No such file or directory - /usr/local/var/homebrew/linked/php。我尝试到处搜索此错误,但找不到类似的情况。任何人都可以解释这个错误,并可能指出如何解决这个问题的方向吗?谢谢。

小智 5

尝试php从以下位置删除符号链接/usr/local/var/homebrew/linked

rm /usr/local/var/homebrew/linked/php
Run Code Online (Sandbox Code Playgroud)