Error: No available formula with the name “homebrew/php/php71″解决办法

最近自己的mac在打开iterm2时自动报这个错误:

Error: No available formula with the name "homebrew/php/php71"
Please tap it and then try again: brew tap homebrew/php

比较烦,顺便说一下我的shell是用的zsh。

谷歌搜索一番之后发现homebrew/php已经不再使用了(https://github.com/homebrew/homebrew-php#homebrewphp-deprecated),好的我知道了,但是还是不知道怎么去除这个错误消息,经过一番搜索后然后自己琢磨了一下,应该是哪个source文件出了问题,若不其然,在~/.zshrc文件中有这样一行:

export PATH="$(brew --prefix homebrew/php/php71)/bin:$PATH:~/run"

删掉之后,这个消息不再出现了。

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注