hkobのブログを見てやってみたこと

ngspiceをダウンロードしてみよう

なんか自分がやった時より変わってるからダウンロードがめんどくさいらしい

Brewfileってやつがよくわかんないから、自分でできそうなところまでやってみる

brew tap hkob/m1-beta-brew
Cloning into '/usr/local/Homebrew/Library/Taps/hkob/homebrew-m1-beta-brew'...
remote: Enumerating objects:35, done.
remote: Counting objects: 100% (35/35), done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 35 (delta 13), reused 21 (delta 3), pack-reused 0
Receiving objects: 100% (35/35), 13.70 KiB | 4.57 MiB/s, done.
Resolving deltas: 100% (13/13), done.
Warning: Calling `cellar` in a bottle block is deprecated! Use `brew style --fix` on the formula to update the style or use `sha256` with a `cellar:` argument instead.
Please report this issue to the hkob/m1-beta-brew tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/hkob/homebrew-m1-beta-brew/openjdk16-arm64.rb:11

warningは出たけど、一応tapはできてるっぽい?

brew install ngspice-x
Error: Your Command Line Tools are too outdated.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/more/.

Error: Your Command Line Tools (CLT) does not support macOS 11.
It is either outdated or was modified.
Please update your Command Line Tools (CLT) or delete it if no updates are available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/more/.

ん、エラー出てしまった

よくわかんないな

とりあえず、これに出てきたやつ実行してみるか

softwareupdate --all --install --force
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install

やっても大丈夫なやつだったかはわからない

もう一回インストールしてみよ

brew install ngspice-x
ngspice

できたっぽい?