ホーム

MacにGraphvizをインストールする

今回はMac環境にGraphvizをインストールしていきます。

目次

  1. Graphvizインストール
  2. 動作確認

実施環境

  • macOS Catalina 10.15.5

Graphvizインストール

公式ホームページの通りhomebrewを使ってインストールしていきます。

rui@ruinoMacBook-Pro ~ % brew install graphviz
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
acl2                     chalk-cli                dnsprobe                 gulp-cli                 loki                     openfst                  scw@1                    thanos
act                      charge                   dosbox-staging           httpx                    lunchy                   ormolu                   sdns                     torchvision
apidoc                   chart-testing            duckscript               hy                       lunchy-go                ory-hydra                shallow-backup           ugrep
arb                      chrony                   eksctl                   inja                     mariadb@10.4             osi                      sheldon                  usb.ids
argo                     clair                    eleventy                 ioctl                    marked                   osm                      silicon                  vgrep
argocd                   clang-format@8           empty                    jimtcl                   mhonarc                  pandocomatic             simdjson                 volk
arrayfire                cli11                    fennel                   jinx                     microplane               parallel-hashmap         sleef                    wgcf
athenacli                coconut                  fetch                    jsonnet-bundler          naabu                    periscope                snap                     wownero
bond                     colfer                   folderify                kona                     nanorc                   pipgrip                  so                       yj
borgbackup               copilot                  functionalplus           kondo                    never                    podman                   solidity                 z.lua
c7n                      cortex                   gateway-go               ksync                    nfpm                     promtail                 sponge
cadence                  croaring                 git-hooks-go             kubie                    ngs                      protoc-gen-gogo          sqlite-utils
castget                  croc                     go@1.14                  ldpl                     notmuch-mutt             protoc-gen-gogofaster    staticcheck
cbc                      cubejs-cli               golangci-lint            litecli                  numcpp                   python@3.7               subfinder
cdktf                    datasette                gostatic                 localstack               oci-cli                  reg                      termcolor
cgl                      diskonaut                gradle-profiler          logcli                   omake                    rqlite                   terraform@0.12
==> Updated Formulae
Updated 4670 formulae.
==> Renamed Formulae
elasticsearch@6.8 -> elasticsearch@6                                                                   kibana@6.8 -> kibana@6
==> Deleted Formulae
cargo-completion    cryptopp            elasticsearch@2.4   elasticsearch@5.6   i386-elf-grub       kibana@5.6          python              sflowtool           tomee-jax-rs        wpscan

==> Downloading https://homebrew.bintray.com/bottles/libpng-1.6.37.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/c8e74da602c21f978cd7ee3d489979b4fc6681e71f678a1d99012943ee3a909f?response-content-disposition=attachment%3Bfilename%3D%22libpng-1.6.37.catalina.b
==> Downloading https://homebrew.bintray.com/bottles/freetype-2.10.2.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/16500bbd77b8bbeb9a4ad432c795df313c8ac108f31a28119b794000d2ba05f2?response-content-disposition=attachment%3Bfilename%3D%22freetype-2.10.2.catalina
==> Downloading https://homebrew.bintray.com/bottles/fontconfig-2.13.1.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/64ff208b28613dfe2a65b9d74fd9b0129f3ca7e423db78329144cdaf51b36f70?response-content-disposition=attachment%3Bfilename%3D%22fontconfig-2.13.1.catali
==> Downloading https://homebrew.bintray.com/bottles/jpeg-9d.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/8f7b82a952fb3937889c7f22da1403e5338cd320495917eb26b0c5b2e614791c?response-content-disposition=attachment%3Bfilename%3D%22jpeg-9d.catalina.bottle.
==> Downloading https://homebrew.bintray.com/bottles/libtiff-4.1.0.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/449bd9123e73e4c4eab85b77322d769cc9df0f6adab05e9b9319b012d1215a68?response-content-disposition=attachment%3Bfilename%3D%22libtiff-4.1.0.catalina.b
==> Downloading https://homebrew.bintray.com/bottles/webp-1.1.0.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/27c76a7054277ff5a2e844c5996fc731d8644acbaaa505d35dba42c4a48a0c51?response-content-disposition=attachment%3Bfilename%3D%22webp-1.1.0.catalina.bott
==> Downloading https://homebrew.bintray.com/bottles/gd-2.3.0.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/ebc4192da4580942545084cf2f5c36dc4645a5c83244224905e01dee4e50837e?response-content-disposition=attachment%3Bfilename%3D%22gd-2.3.0.catalina.bottle
==> Downloading https://homebrew.bintray.com/bottles/gettext-0.21.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/cdea54f52b7c36ebcb5fe26a1cf736d7cd6fd5f2fd016dd8357a8624ffd6b5f8?response-content-disposition=attachment%3Bfilename%3D%22gettext-0.21.catalina.bo
==> Downloading https://homebrew.bintray.com/bottles/libffi-3.3.catalina.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/pcre-8.44.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/f8ac266e04f984fa55091a43f0fdc39a40d57c2489d289a186c88ccedaba7eeb?response-content-disposition=attachment%3Bfilename%3D%22pcre-8.44.catalina.bottl
==> Downloading https://homebrew.bintray.com/bottles/gdbm-1.18.1_1.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/f7b5ab7363961fa6defcb66b4ffdf5365264fcb97d35bc413e754f173a3b1912?response-content-disposition=attachment%3Bfilename%3D%22gdbm-1.18.1_1.catalina.b
==> Downloading https://homebrew.bintray.com/bottles/openssl%401.1-1.1.1g.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/1926679569c6af5337de812d86f4dad2b21ff883ad3a5d2cd9e8836ac5ac7ffe?response-content-disposition=attachment%3Bfilename%3D%22openssl%401.1-1.1.1g.cat
==> Downloading https://homebrew.bintray.com/bottles/readline-8.0.4.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/6ae1c8e7c783f32bd22c6085caa4d838fed7fb386da7e40ca47b87ec9b1237d6?response-content-disposition=attachment%3Bfilename%3D%22readline-8.0.4.catalina.
==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.33.0.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/78566572373e0010a52729c1b41f7503f4e86acc67e7a37bafe091a6ddc36147?response-content-disposition=attachment%3Bfilename%3D%22sqlite-3.33.0.catalina.b
==> Downloading https://homebrew.bintray.com/bottles/xz-5.2.5.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/2dcc8e0121c934d1e34ffdb37fcd70f0f7b5c2f4755f2f7cbcf360e9e54cb43b?response-content-disposition=attachment%3Bfilename%3D%22xz-5.2.5.catalina.bottle
==> Downloading https://homebrew.bintray.com/bottles/python%403.8-3.8.5.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/3f0592dfdf6bf38c25870b57ba3e71b5b47e6c5a5ddb76aaafcbffe67eff8354?response-content-disposition=attachment%3Bfilename%3D%22python%403.8-3.8.5.catal
==> Downloading https://homebrew.bintray.com/bottles/glib-2.64.5.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/6d8c705b5feee37976530563cac6c959bd3a028e8b94fb7417c44f59eebe360f?response-content-disposition=attachment%3Bfilename%3D%22glib-2.64.5.catalina.bot
==> Downloading https://homebrew.bintray.com/bottles/jasper-2.0.19.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/6e08d9c308ba24cc512801f4f9ae9b06353ab3d10139c3679410f0e038e217b1?response-content-disposition=attachment%3Bfilename%3D%22jasper-2.0.19.catalina.b
==> Downloading https://homebrew.bintray.com/bottles/netpbm-10.86.15.catalina.bottle.2.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/394105a420df7d2048adf8ca4657cc600e294d930d1d44c0dd693335eb9e25b4?response-content-disposition=attachment%3Bfilename%3D%22netpbm-10.86.15.catalina
==> Downloading https://homebrew.bintray.com/bottles/gts-0.7.6_2.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/8a0c9b4f60a2cbea2e2e3469880284c2373843e676aaf58c1ff28d1e31c2ccb9?response-content-disposition=attachment%3Bfilename%3D%22gts-0.7.6_2.catalina.bot
==> Downloading https://homebrew.bintray.com/bottles/libtool-2.4.6_2.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/af317b35d0a394b7ef55fba4950735b0392d9f31bececebf9c412261c23a01fc?response-content-disposition=attachment%3Bfilename%3D%22libtool-2.4.6_2.catalina
==> Downloading https://homebrew.bintray.com/bottles/lzo-2.10.catalina.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/pixman-0.40.0.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/1862e6826a4bedb97af8dcb9ab849c69754226ed92e5ee19267fa33ee96f94f8?response-content-disposition=attachment%3Bfilename%3D%22pixman-0.40.0.catalina.b
==> Downloading https://homebrew.bintray.com/bottles/cairo-1.16.0_3.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/6a23a68837269a8410a54950fdc8883feda091f221118370f1bfd3adbf5ee89c?response-content-disposition=attachment%3Bfilename%3D%22cairo-1.16.0_3.catalina.
==> Downloading https://homebrew.bintray.com/bottles/fribidi-1.0.10.catalina.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.2_3.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/80f141e695f73bd058fd82e9f539dc67471666ff6800c5e280b5af7d3050f435?response-content-disposition=attachment%3Bfilename%3D%22pkg-config-0.29.2_3.cata
==> Downloading https://homebrew.bintray.com/bottles/gobject-introspection-1.64.1_2.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/4715d7cb549501fa75101266f6c49fe656666cb071a6e8f111b08cb3b74a2b15?response-content-disposition=attachment%3Bfilename%3D%22gobject-introspection-1.
==> Downloading https://homebrew.bintray.com/bottles/graphite2-1.3.14.catalina.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/icu4c-67.1.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/2d1e91b5127f66e7941790c004817c94c892725c88f84f1e4c37297fcbc0c72f?response-content-disposition=attachment%3Bfilename%3D%22icu4c-67.1.catalina.bott
==> Downloading https://homebrew.bintray.com/bottles/harfbuzz-2.7.2.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/daeed137364e3e37450e763fafb14fdd53bd4cd2bdd93b579392947f7d5b7ea3?response-content-disposition=attachment%3Bfilename%3D%22harfbuzz-2.7.2.catalina.
==> Downloading https://homebrew.bintray.com/bottles/pango-1.46.1.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/ddf6c6e74e58909336517fdad64ff0f32212627b1fae8d9bb53439953d29279a?response-content-disposition=attachment%3Bfilename%3D%22pango-1.46.1.catalina.bo
==> Downloading https://homebrew.bintray.com/bottles/graphviz-2.44.1.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/e1cc69e09c92ac1507e461e374de9a0b2d7b01d15e29bf43808f8f458303c67f?response-content-disposition=attachment%3Bfilename%3D%22graphviz-2.44.1.catalina
==> Installing dependencies for graphviz: libpng, freetype, fontconfig, jpeg, libtiff, webp, gd, gettext, libffi, pcre, gdbm, openssl@1.1, readline, sqlite, xz, python@3.8, glib, jasper, netpbm, gts, libtool, lzo, pixman, cairo, fribidi, pkg-config, gobject-introspection, graphite2, icu4c, harfbuzz and pango
==> Installing graphviz dependency: libpng
==> Pouring libpng-1.6.37.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/libpng/1.6.37: 27 files, 1.2MB
==> Installing graphviz dependency: freetype
==> Pouring freetype-2.10.2.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/freetype/2.10.2: 61 files, 2.3MB
==> Installing graphviz dependency: fontconfig
==> Pouring fontconfig-2.13.1.catalina.bottle.tar.gz
==> Regenerating font cache, this may take a while
==> /usr/local/Cellar/fontconfig/2.13.1/bin/fc-cache -frv
🍺  /usr/local/Cellar/fontconfig/2.13.1: 531 files, 3.4MB
==> Installing graphviz dependency: jpeg
==> Pouring jpeg-9d.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/jpeg/9d: 21 files, 775.2KB
==> Installing graphviz dependency: libtiff
==> Pouring libtiff-4.1.0.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/libtiff/4.1.0: 247 files, 3.7MB
==> Installing graphviz dependency: webp
==> Pouring webp-1.1.0.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/webp/1.1.0: 39 files, 2.1MB
==> Installing graphviz dependency: gd
==> Pouring gd-2.3.0.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/gd/2.3.0: 34 files, 1.1MB
==> Installing graphviz dependency: gettext
==> Pouring gettext-0.21.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/gettext/0.21: 1,953 files, 19.0MB
==> Installing graphviz dependency: libffi
==> Pouring libffi-3.3.catalina.bottle.tar.gz
==> Caveats
libffi is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

For compilers to find libffi you may need to set:
  export LDFLAGS="-L/usr/local/opt/libffi/lib"
  export CPPFLAGS="-I/usr/local/opt/libffi/include"

==> Summary
🍺  /usr/local/Cellar/libffi/3.3: 16 files, 489.4KB
==> Installing graphviz dependency: pcre
==> Pouring pcre-8.44.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/pcre/8.44: 204 files, 5.5MB
==> Installing graphviz dependency: gdbm
==> Pouring gdbm-1.18.1_1.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/gdbm/1.18.1_1: 25 files, 641KB
==> Installing graphviz dependency: openssl@1.1
==> Pouring openssl@1.1-1.1.1g.catalina.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /usr/local/etc/openssl@1.1/certs

and run
  /usr/local/opt/openssl@1.1/bin/c_rehash

openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
because macOS provides LibreSSL.

If you need to have openssl@1.1 first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> ~/.zshrc

For compilers to find openssl@1.1 you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"

==> Summary
🍺  /usr/local/Cellar/openssl@1.1/1.1.1g: 8,059 files, 18MB
==> Installing graphviz dependency: readline
==> Pouring readline-8.0.4.catalina.bottle.tar.gz
==> Caveats
readline is keg-only, which means it was not symlinked into /usr/local,
because macOS provides BSD libedit.

For compilers to find readline you may need to set:
  export LDFLAGS="-L/usr/local/opt/readline/lib"
  export CPPFLAGS="-I/usr/local/opt/readline/include"

==> Summary
🍺  /usr/local/Cellar/readline/8.0.4: 48 files, 1.5MB
==> Installing graphviz dependency: sqlite
==> Pouring sqlite-3.33.0.catalina.bottle.tar.gz
==> Caveats
sqlite is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have sqlite first in your PATH run:
  echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.zshrc

For compilers to find sqlite you may need to set:
  export LDFLAGS="-L/usr/local/opt/sqlite/lib"
  export CPPFLAGS="-I/usr/local/opt/sqlite/include"

==> Summary
🍺  /usr/local/Cellar/sqlite/3.33.0: 11 files, 4MB
==> Installing graphviz dependency: xz
==> Pouring xz-5.2.5.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/xz/5.2.5: 92 files, 1.1MB
==> Installing graphviz dependency: python@3.8
==> Pouring python@3.8-3.8.5.catalina.bottle.tar.gz
==> /usr/local/Cellar/python@3.8/3.8.5/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python@3.8/3.8.5/bin --install-lib=/usr/local/lib/python3.8/site-
==> /usr/local/Cellar/python@3.8/3.8.5/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python@3.8/3.8.5/bin --install-lib=/usr/local/lib/python3.8/site-
==> /usr/local/Cellar/python@3.8/3.8.5/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python@3.8/3.8.5/bin --install-lib=/usr/local/lib/python3.8/site-
==> Caveats
Python has been installed as
  /usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /usr/local/opt/python@3.8/libexec/bin

You can install Python packages with
  pip3 install <package>
They will install into the site-package directory
  /usr/local/lib/python3.8/site-packages

See: https://docs.brew.sh/Homebrew-and-Python
==> Summary
🍺  /usr/local/Cellar/python@3.8/3.8.5: 4,331 files, 67MB
==> Installing graphviz dependency: glib
==> Pouring glib-2.64.5.catalina.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
🍺  /usr/local/Cellar/glib/2.64.5: 436 files, 14.8MB
==> Installing graphviz dependency: jasper
==> Pouring jasper-2.0.19.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/jasper/2.0.19: 41 files, 1.3MB
==> Installing graphviz dependency: netpbm
==> Pouring netpbm-10.86.15.catalina.bottle.2.tar.gz
🍺  /usr/local/Cellar/netpbm/10.86.15: 410 files, 7.8MB
==> Installing graphviz dependency: gts
==> Pouring gts-0.7.6_2.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/gts/0.7.6_2: 27 files, 1.1MB
==> Installing graphviz dependency: libtool
==> Pouring libtool-2.4.6_2.catalina.bottle.tar.gz
==> Caveats
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
==> Summary
🍺  /usr/local/Cellar/libtool/2.4.6_2: 71 files, 3.7MB
==> Installing graphviz dependency: lzo
==> Pouring lzo-2.10.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/lzo/2.10: 31 files, 546.7KB
==> Installing graphviz dependency: pixman
==> Pouring pixman-0.40.0.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/pixman/0.40.0: 14 files, 1.3MB
==> Installing graphviz dependency: cairo
==> Pouring cairo-1.16.0_3.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/cairo/1.16.0_3: 117 files, 5.7MB
==> Installing graphviz dependency: fribidi
==> Pouring fribidi-1.0.10.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/fribidi/1.0.10: 67 files, 609KB
==> Installing graphviz dependency: pkg-config
==> Pouring pkg-config-0.29.2_3.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/pkg-config/0.29.2_3: 11 files, 623.8KB
==> Installing graphviz dependency: gobject-introspection
==> Pouring gobject-introspection-1.64.1_2.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/gobject-introspection/1.64.1_2: 189 files, 12.2MB
==> Installing graphviz dependency: graphite2
==> Pouring graphite2-1.3.14.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/graphite2/1.3.14: 18 files, 235.5KB
==> Installing graphviz dependency: icu4c
==> Pouring icu4c-67.1.catalina.bottle.tar.gz
==> Caveats
icu4c is keg-only, which means it was not symlinked into /usr/local,
because macOS provides libicucore.dylib (but nothing else).

If you need to have icu4c first in your PATH run:
  echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.zshrc
  echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.zshrc

For compilers to find icu4c you may need to set:
  export LDFLAGS="-L/usr/local/opt/icu4c/lib"
  export CPPFLAGS="-I/usr/local/opt/icu4c/include"

For pkg-config to find icu4c you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"

==> Summary
🍺  /usr/local/Cellar/icu4c/67.1: 258 files, 71.2MB
==> Installing graphviz dependency: harfbuzz
==> Pouring harfbuzz-2.7.2.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/harfbuzz/2.7.2: 68 files, 6.2MB
==> Installing graphviz dependency: pango
==> Pouring pango-1.46.1.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/pango/1.46.1: 64 files, 2.8MB
==> Installing graphviz
==> Pouring graphviz-2.44.1.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/graphviz/2.44.1: 506 files, 18MB
==> `brew cleanup` has not been run in 30 days, running now...
Pruned 1 symbolic links and 4 directories from /usr/local
==> Caveats
==> libffi
libffi is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

For compilers to find libffi you may need to set:
  export LDFLAGS="-L/usr/local/opt/libffi/lib"
  export CPPFLAGS="-I/usr/local/opt/libffi/include"

For pkg-config to find libffi you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"

==> openssl@1.1
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /usr/local/etc/openssl@1.1/certs

and run
  /usr/local/opt/openssl@1.1/bin/c_rehash

openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
because macOS provides LibreSSL.

If you need to have openssl@1.1 first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> ~/.zshrc

For compilers to find openssl@1.1 you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"

For pkg-config to find openssl@1.1 you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"

==> readline
readline is keg-only, which means it was not symlinked into /usr/local,
because macOS provides BSD libedit.

For compilers to find readline you may need to set:
  export LDFLAGS="-L/usr/local/opt/readline/lib"
  export CPPFLAGS="-I/usr/local/opt/readline/include"

For pkg-config to find readline you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/readline/lib/pkgconfig"

==> sqlite
sqlite is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have sqlite first in your PATH run:
  echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.zshrc

For compilers to find sqlite you may need to set:
  export LDFLAGS="-L/usr/local/opt/sqlite/lib"
  export CPPFLAGS="-I/usr/local/opt/sqlite/include"

For pkg-config to find sqlite you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/sqlite/lib/pkgconfig"

==> python@3.8
Python has been installed as
  /usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /usr/local/opt/python@3.8/libexec/bin

You can install Python packages with
  pip3 install <package>
They will install into the site-package directory
  /usr/local/lib/python3.8/site-packages

See: https://docs.brew.sh/Homebrew-and-Python
==> glib
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> libtool
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
==> icu4c
icu4c is keg-only, which means it was not symlinked into /usr/local,
because macOS provides libicucore.dylib (but nothing else).

If you need to have icu4c first in your PATH run:
  echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.zshrc
  echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.zshrc

For compilers to find icu4c you may need to set:
  export LDFLAGS="-L/usr/local/opt/icu4c/lib"
  export CPPFLAGS="-I/usr/local/opt/icu4c/include"

For pkg-config to find icu4c you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"

rui@ruinoMacBook-Pro ~ %

動作確認

デスクトップにsample.dotを作成します。

graph g{
    "Hello World"
    }

デスクトップに移動してdotコマンドを実行します。

rui@ruinoMacBook-Pro Desktop % dot -T png sample.dot -o sample.png
rui@ruinoMacBook-Pro Desktop %

デスクトップにsample.pngが生成されているはずです。
これで動作確認は終了です。

sample

以上でGraphvizインストールは終了です。