首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Brew不再有效- macOs 12.6

Brew不再有效- macOs 12.6
EN

Unix & Linux用户
提问于 2022-09-23 08:03:33
回答 1查看 761关注 0票数 0

我工作的macOs蒙特利12.6与M1专业芯片。

我在用php (8.1)、composer和symfony安装了一个项目,一切都很好。

我关闭了我的终端,自从我回到我的文件夹与我的终端,没有任何工作了。

示例: php -v

-bash: php:命令找不到

作曲家

环境: php:没有这样的文件或目录

因为连重新安装php都不可能。

代码语言:javascript
运行
复制
brew install php@8.1
fatal: Could not resolve HEAD to a revision
Running `brew update --auto-update`...
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> Auto-updated Homebrew!
Updated 2 taps (shivammathur/php and homebrew/cask).
==> New Casks
pictureview

Warning: No available formula with the name "httpd" (dependency of shivammathur/php/php).
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

我不明白,你知道这是从哪里来的吗?怎么解决这个问题?

我的brew配置:

代码语言:javascript
运行
复制
brew config
HOMEBREW_VERSION: 3.6.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: b8b195cc64a29595797651720ebb2ea09affb682
Last commit: 4 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: (none)
Core tap last commit: never
Core tap branch: HEAD
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 14.0.0 build 1400
Git: 2.37.0 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.79.1 => /usr/bin/curl
macOS: 12.6-arm64
CLT: 14.0.0.0.1.1661618636
Xcode: N/A
Rosetta 2: false
EN

回答 1

Unix & Linux用户

发布于 2022-10-05 07:58:12

  • 打开Xcode -它将显示一条升级消息。
  • 确认并运行升级
  • 之后,啤酒又好了。
票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/718380

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档