LoginSignup
6

More than 1 year has passed since last update.

brew cask installに失敗したら checksum編 gtkwaveの場合

#1 checksum

macOS_bash
$ brew cask install gtkwave
==> Satisfying dependencies
==> Downloading https://downloads.sourceforge.net/gtkwave/gtkwave-3.3.87-osx-app/gtkwave.zip
######################################################################## 100.0%
==> Verifying checksum for Cask gtkwave
==> Note: running "brew update" may fix sha256 checksum errors
Error: Checksum for Cask 'gtkwave' does not match.

Expected: e9e3cdfd06f76ed4de8b29d55a29f9b714a68a00501b13b4741078a506d1cc8a
Actual:   27d244dd428d38c3d8e5aa498f84745516238491367929e09624cc95a3ee9f1c
File:     /Users/ogawakiyoshi/Library/Caches/Homebrew/Cask/gtkwave--3.3.87.zip

To retry an incomplete download, remove the file above.

何が原因かわからず。ひとまず記録。
順次調査。

macOS_bash
$ brew update
Already up-to-date.

Homebrewでchecksumを無視する方法
https://hacknote.jp/archives/31479/

macOS_bash
$ brew cask edit gtkwave
Editing /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask/Casks/gtkwave.rb
Warning: Using atom because no editor was set in the environment.
This may change in the future, so we recommend setting EDITOR,
or HOMEBREW_EDITOR to your preferred text editor.

Atomが開いた。

cask 'gtkwave' do
  version '3.3.87'
  sha256 '27d244dd428d38c3d8e5aa498f84745516238491367929e09624cc95a3ee9f1c'

  url "https://downloads.sourceforge.net/gtkwave/gtkwave-#{version}-osx-app/gtkwave.zip"
  appcast 'https://sourceforge.net/projects/gtkwave/rss',
          checkpoint: 'bea1232122ff24237497ea61cbfabc2900cc2590059eb32b66524bfbcd9515bf'
  name 'GTKWave'
  homepage 'http://gtkwave.sourceforge.net/'

  app 'gtkwave.app'
end

エラーとなっている

  sha256 '9e3cdfd06f76ed4de8b29d55a29f9b714a68a00501b13b4741078a506d1cc8a'

の行を

  sha256 '27d244dd428d38c3d8e5aa498f84745516238491367929e09624cc95a3ee9f1c'

に書き換えて。

macOS_bash
$ brew cask install gtkwave
Updating Homebrew...
==> Satisfying dependencies
==> Downloading https://downloads.sourceforge.net/gtkwave/gtkwave-3.3.87-osx-app/gtkwave.zip
Already downloaded: /Users/ogawakiyoshi/Library/Caches/Homebrew/Cask/gtkwave--3.3.87.zip
==> Verifying checksum for Cask gtkwave
==> Installing Cask gtkwave
==> Moving App 'gtkwave.app' to '/Applications/gtkwave.app'.
🍺  gtkwave was successfully installed!

後始末の内容は調査中。

macOS_bash
$ cd /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask/Casks
$ git checkout .

OSXでのVerilogHDL環境構築&4bitカウンターを作って波形を見る
https://qiita.com/Hiroki11x/items/ec8ce716d3117360313f

gtkwave再現試験未完。起動画面は出る。データ読み込みもする。データの表示方法がわかっていない。調査中。

#参考資料

##brew cask install

brew cask にアプリがなかったら追加しよう
https://qiita.com/DriftwoodJP/items/2fae455dc04adea17f96

##参考文献の参考文献

brew cask で異なるバージョンをインストールする、もしくはアプリを追加する
http://www.d-wood.com/blog/2014/03/27_5895.html
##公式文書

homebrew-cask/CONTRIBUTING.md at master · caskroom/homebrew-cask
https://github.com/caskroom/homebrew-cask/blob/master/CONTRIBUTING.md
homebrew-cask/doc at master · caskroom/homebrew-cask
https://github.com/caskroom/homebrew-cask/tree/master/doc

文書履歴

ver, 0.10 初稿 20180324
ver. 0.11 macOS_bash追記 20180411
ver. 0.12 URL追記 20230227

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.

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
6