gpt4 book ai didi

macos - 无法通过 Homebrew 软件安装php7或php 7.1

转载 作者:行者123 更新时间:2023-12-04 09:10:19 27 4
gpt4 key购买 nike

我正在跟踪几个具有相同序列的链接,即this example。我无法成功完成它。这是终端的输出

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
希望能帮助到你。

Everything is now outdated

  • All was migrated to homebrew/homebrew-core

关于macos - 无法通过 Homebrew 软件安装php7或php 7.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41780980/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com