1
StanLin 2021-04-28 11:29:34 +08:00
Removing /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/gtkwave.rb might be a workaround.
|
2
IgniteWhite 2021-04-28 17:21:56 +08:00 via iPhone
一般是 Cask 维护者把 rb 脚本没写对,去 homebrew-cask 提个 issue
|
3
haokuderen OP @StanLin thanks. I try ,but still reminder error that .rb invalid (Cask 'goldendict' definition is invalid)
|
4
haokuderen OP @IgniteWhite 试了人家 母鸡-_-
|
5
IgniteWhite 2021-04-28 17:41:06 +08:00 via iPhone
brew docker 是想写 brew doctor?
有点奇怪,因为 https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/gtkwave.rb 里面没看到有 x11 dependence 相关的 key 。你贴一下 brew info gtkwave 的输出? |
6
haokuderen OP 是 doctor,docker 用多了哈哈。 发现多了一行 depends_on x11: true
cask "gtkwave" do version "3.3.107" sha256 "0024fa80f4566bc053d705200263c7e7d72f2ae111bf670dc6af90403540d3c7" # downloads.sourceforge.net/gtkwave/ was verified as official when first introduced to the cask url "https://downloads.sourceforge.net/gtkwave/gtkwave-#{version}-osx-app/gtkwave.zip" appcast "https://sourceforge.net/projects/gtkwave/rss" name "GTKWave" desc "GTK+ based wave viewer" homepage "https://gtkwave.sourceforge.io/" depends_on x11: true app "gtkwave.app" binary "#{appdir}/gtkwave.app/Contents/Resources/bin/gtkwave_bin_launcher.sh", target: "gtkwave" zap trash: [ "~/Library/Application Support/CrashReporter/gtkwave-bin_*.plist", "~/Library/Preferences/com.geda.gtkwave.plist", "~/Library/Saved Application State/com.geda.gtkwave.savedState", ] caveats <<~EOS You may need to install Perl’s Switch module to run #{token}’s command line tool. https://ughe.github.io/2018/11/06/gtkwave-osx EOS end |
7
haokuderen OP @IgniteWhite 我把整个 casks 文件夹替换成 github 下载下来的文件,问题就好了,十分感谢
|
8
IgniteWhite 2021-04-28 18:32:53 +08:00
@haokuderen 开心!我最近因为需要用一些老版本的 cask 就自己维护了一个 tap,稍微了解了一点 brew 文件的用法。能帮你解决问题获得了一点成就感,哈哈
|
9
IgniteWhite 2021-04-28 19:53:15 +08:00
补充一点信息:据我观察,homebrew-cask 里面对 X11 ( XQuartz.app )的依赖(如果该 cask 还有这个依赖的话),从
depends_on x11: true 变成了 depends_on cask: "xquartz" 看来及时 brew update 或者像楼主一样更新,是有必要的 |
10
konyeth 2021-05-31 12:08:07 +08:00
cd /usr/local/Caskroom/
rm -rf wireshark/ brew cask install wireshark replace wireshark with gtkwave |