プロジェクト

全般

プロフィール

macOSあれこれ

高橋 徹 さんが1年以上前に追加

Mac、macOSに関するあれこれ


返答 (1)

macOS 12.5.1 へのアップグレード時に生じたこと - 高橋 徹 さんが1年以上前に追加

2022-09に、macOS 11(Big Sur)から12(Monterey)にアップグレードした後に生じたことのメモ。

homebrew のコマンド実行時にエラー

brewコマンドを実行したところ、gitがPATHに見つからないとのエラーが発生。最後のメッセージには、「開発者ツール(developer tools)がインストールされていないので、xcode-select --installを実行してインストールせよ」と出ています。開発者ツール?

~ % brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Unknown support status

Warning: Git could not be found in your PATH.
Homebrew uses Git for several internal functions, and some formulae use Git
checkouts instead of stable tarballs. You may want to install Git:
  brew install git

Warning: No developer tools installed.
Install the Command Line Tools:
  xcode-select --install
git コマンドを実行したところ
~ % git
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
gitのエラーをweb上で調べたところ

gitコマンドを実行した時のエラーがわんさと見つかりました。
ざっと流して見ると、「コマンドライン開発者ツール」をインストールせよという内容が多い。

ウォーニングで提唱されたxcode-select --installを実行

GUIダイアログが表示され、インストールを開始。
インストール後、brewコマンド、gitコマンドが実行可能になりました。

python

macOS12.5(Monterey)では、標準ではPythonが含まれず、上述のコマンドライン開発者ツールを入れると、python 3.8が利用できるようになります。

python 3.10など新しいバージョンを使いたいときは、別途入手してインストールが必要です。

tkinterとダークモード

macOSのダークモードでtkinterを使うと、tkintetがラップしているTclのバージョンが古いと表示が壊れます。Tcl8.6で修整されています。
コマンドライン開発者ツールに含まれるpython 3.8のtkinterはTcl8.5なのでダークモードの問題を含みます。

    (1-1/1)