LoginSignup
3
1

More than 3 years have passed since last update.

macbook pro 2020(intel)にgraphvizを入れようとしたらエラー吐いたので解決してみた

Last updated at Posted at 2021-03-23

経緯

vscodeでplantUMLを使おうと思い、拡張機能を入れて遊んでいた際、クラス図でクラスを2個以上作るとエラーを吐いたので解決策としてgraphvizを入れることにしました。

% brew install graphviz

を実行。するとエラーが;;

Updating Homebrew...
fatal: Could not resolve HEAD to a revision
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> New Casks
brooklite                                simtoolkitpro
==> Updated Casks
Updated 19 casks.

==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "graphviz".
It was migrated from homebrew/cask to homebrew/core.

==> 似たような名前の式を検索すると...
エラーが発生しました。類似した名前の式は見つかりませんでした。
エラーです。graphviz "という名前の利用可能な数式またはカスクがありません。
homebrew/caskからhomebrew/coreに移行されました。

とのこと
このあと色々やって解決しやした

解決手順

まず以下を実行してみました。

% brew doctor

すると

Warning: Some taps are not on the default git origin branch and may not receive
updates. If this is a surprise to you, check out the default branch with:
  git -C $(brew --repo homebrew/core) checkout master

だからできんかったのかぁ
早速上の

 % git -C $(brew --repo homebrew/core) checkout master

を実行
すると

Updating files: 100% (5827/5827), done.
Branch 'master' set up to track remote branch 'master' from 'origin'.
Already on 'master'

なんかできたっぽいですね
これでまた

% brew install graphviz

を実行したら無事にインストールできました!

PlantUMLも無事にうごきました!
スクリーンショット 2021-03-24 2.37.33.png

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1