macOS Montereyにアップデートしてやったことをメモする。
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
らGoogle 日本語入力をインストールした。
https://www.google.co.jp/ime/
Docker.appを起動する。
$ brew update
Error:
homebrew-core is a shallow clone.
To `brew update`, first run:
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
This restriction has been made on GitHub's request because updating shallow
clones is an extremely expensive operation due to the tree layout and traffic of
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you
automatically to avoid repeatedly performing an expensive unshallow operation in
CI systems (which should instead be fixed to not use shallow clones). Sorry for
the inconvenience!
.....
以下を実行。
$ git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
remote: Enumerating objects: 135186, done.
remote: Counting objects: 100% (131262/131262), done.
remote: Compressing objects: 100% (42700/42700), done.
remote: Total 123501 (delta 90046), reused 114075 (delta 80761), pack-reused 0
Receiving objects: 100% (123501/123501), 69.73 MiB | 5.49 MiB/s, done.
Resolving deltas: 100% (90046/90046), completed with 4230 local objects.
From https://github.com/Homebrew/homebrew-cask
3a8c1aba9d..d962f7bd3e master -> origin/master
$ env HOMEBREW_NO_AUTO_UPDATE=1 brew upgrade peco
$ env HOMEBREW_NO_AUTO_UPDATE=1 brew install ghq
$ ghq --version
fatal error: runtime: bsdthread_register error
runtime stack:
runtime.throw(0x20594e0, 0x21)
/usr/local/go/src/runtime/panic.go:619 +0x81 fp=0x7ff7bfeff878 sp=0x7ff7bfeff858 pc=0x1029751
runtime.goenvs()
/usr/local/go/src/runtime/os_darwin.go:129 +0x83 fp=0x7ff7bfeff8a8 sp=0x7ff7bfeff878 pc=0x10272d3
runtime.schedinit()
/usr/local/go/src/runtime/proc.go:496 +0xa4 fp=0x7ff7bfeff900 sp=0x7ff7bfeff8a8 pc=0x102c014
runtime.rt0_go(0x7ff7bfeff930, 0x3, 0x7ff7bfeff930, 0x1000000, 0x3, 0x7ff7bfeffab0, 0x7ff7bfeffabf, 0x7ff7bfeffac3, 0x0, 0x7ff7bfeffacc, ...)
/usr/local/go/src/runtime/asm_amd64.s:252 +0x1f4 fp=0x7ff7bfeff908 sp=0x7ff7bfeff900 pc=0x1052c64
https://github.com/golang/go/wiki/MacOS12BSDThreadRegisterIssue?utm_source=pocket_mylist を参考に~/.zshrc
のGoのパスを変更した。
$ type go
go is /usr/local/bin/go
変更前のGoのパスは/usr/local/go/bin
が設定されていた。
+ /usr/local/bin/go
- /usr/local/go/bin
ターミナル起動時に以下が発生した。
compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew
compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew_cask
https://stackoverflow.com/questions/65747286/zsh-problem-compinit503-no-such-file-or-directory-usr-local-share-zsh-site?utm_source=pocket_mylist を参考に$ brew cleanup
を実行。
Xcodeが30GBほどだったので削除したら以下のエラーが発生するようになった。
xcrun error active developer 〜
xcode-select
をインストールしたら解消した。
$ xcode-select --install
No comments yet.
改行と段落タグは自動で挿入されます。
メールアドレスは表示されません。