我正在关注具有相同序列的几个链接,即此示例.我无法成功完成任务.这是终端的输出
MacBook-Pro-4:/ SHennessy$ brew tap homebrew/dupes MacBook-Pro-4:/ SHennessy$ brew tap homebrew/versions MacBook-Pro-4:/ SHennessy$ brew tap homebrew/homebrew-php MacBook-Pro-4:/ SHennessy$ brew unlink php56 Error: No such keg: /usr/local/Cellar/php56 MacBook-Pro-4:/ SHennessy$ brew install php70 ==> Installing php70 from homebrew/php Error: You must `brew link libpng` before homebrew/php/php70 can be installed MacBook-Pro-4:/ SHennessy$ brew link php70 Error: No such keg: /usr/local/Cellar/php70 MacBook-Pro-4:/ SHennessy$
如果有人有任何想法会很棒,请提前感谢.
安装php71时,我或多或少有同样的问题.
要解决它,我不得不删除/usr/local/Cellar/php71
使用sudo rmdir -rf /usr/local/opt/php71
然后:
brew tap homebrew/dupes brew tap homebrew/versions brew tap homebrew/homebrew-php brew install php71
希望能帮助到你.
现在一切都已经过时了
所有人都迁移到了
homebrew/homebrew-core