🦈
brew install --cask wiresharkで怒られた
事象
HomebrewでGUIのWiresharkをインストールしようとしてbrew install --cask wireshark
って叩いたらError: It seems there is already a Binary at '/opt/homebrew/bin/idl2wrs'.
って怒られた。
$ brew install --cask wireshark
==> Downloading https://2.na.dl.wireshark.org/osx/Wireshark%203.6.6%20Arm%2064.dmg
Already downloaded: /Users/kozy/Library/Caches/Homebrew/downloads/b681f1d73252bb4f5efae8dfe8663f7c88e88dc6959c9646eaacb7ce5bc047da--Wireshark 3.6.6 Arm 64.dmg
==> Installing Cask wireshark
(中略)
==> Backing App 'Wireshark.app' up to '/opt/homebrew/Caskroom/wireshark/3.6.6/Wireshark.app'
==> Removing App '/Applications/Wireshark.app'
==> Purging files for version 3.6.6 of Cask wireshark
Error: It seems there is already a Binary at '/opt/homebrew/bin/idl2wrs'.
一瞬Applicationsディレクトリ内にWireshark.app
が現れるのに、その直後にRemoving App '/Applications/Wireshark.app'
って言って消されちゃうのとっても悲しい。消さないで。
解決
すでにCLI版のWiresharkをインストールしてたので、brew remove wireshark
でそれを取り除いてやり直したらうまくいった。
$ brew remove wireshark
Warning: Treating wireshark as a formula. For the cask, use homebrew/cask/wireshark
Uninstalling /opt/homebrew/Cellar/wireshark/3.6.6... (1,144 files, 99.9MB)
$ brew install --cask wireshark
==> Downloading https://2.na.dl.wireshark.org/osx/Wireshark%203.6.6%20Arm%2064.dmg
Already downloaded: /Users/kozy/Library/Caches/Homebrew/downloads/b681f1d73252bb4f5efae8dfe8663f7c88e88dc6959c9646eaacb7ce5bc047da--Wireshark 3.6.6 Arm 64.dmg
==> Installing Cask wireshark
(中略)
==> Linking Manpage 'wireshark.1' to '/opt/homebrew/share/man/man1/wireshark.1'
==> Linking Manpage 'extcap.4' to '/opt/homebrew/share/man/man4/extcap.4'
==> Linking Manpage 'wireshark-filter.4' to '/opt/homebrew/share/man/man4/wireshark-filter.4'
🍺 wireshark was successfully installed!
$ open /Applications/Wireshark.app/
環境
あんま関係ないと思うけど一応ね
コンピュータ
$ system_profiler SPHardwareDataType
Hardware:
Hardware Overview:
Model Name: MacBook Pro
Model Identifier: MacBookPro18,4
Chip: Apple M1 Max
(以下略)
MacBook Pro(14インチ、2021) Apple M1 Max
OS
$ sw_vers
ProductName: macOS
ProductVersion: 12.0.1
BuildVersion: 21A559
要するにMonterey。
Homebrew
$ brew --version
Homebrew 3.5.6
Homebrew/homebrew-core (git revision 9d573763ad3; last commit 2022-07-23)
Homebrew/homebrew-cask (git revision 2a0ab69f23; last commit 2022-07-23)
Discussion