Brewはもう機能しません - macOS 12.6

Brewはもう機能しません - macOS 12.6

私はM1 proチップと一緒にmacOs Monterey 12.6を使用しています。

私はPHP(8.1)、作曲家、そしてsymfonyがインストールされたプロジェクトを進めています、そしてすべてがうまくいきます。

ターミナルを使ってフォルダに戻るときには何も機能しないので、ターミナルを閉じました。

例: php -v

-bash: php: コマンドが見つかりません

作曲家

env:php:そのファイルやディレクトリはありません

そしてphpの再インストールも不可能です。

brew install [email protected]
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 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

ベストアンサー1

  • Xcodeを開きます - アップグレードメッセージが表示されます
  • アップグレードの確認と実行
  • その後、醸造は再びうまく機能します。

おすすめ記事