by shigemk2

当面は技術的なことしか書かない

Error: Cask 'emacs-app' definition is invalid: 'conflicts_with' stanza failed with

emacs-appでも同じことが起きる brew doctorなどしてもダメで、メタデータが古いDSLを使っているので /opt/homebrew/Caskroomから消せってコメントされてる しかし単に/opt/homebrew/Caskroomからemacs-appを消して brew install --cask emacs-app するだけではダメで、追加でApplications bin manのemacsやctagsなどの追加インストールされたコマンドも丸ごと消す必要がある

brew install --cask emacs-appを実行してると

Error: It seems there is already a Binary at '/opt/homebrew/bin/etags'.

だの

Error: It seems there is already a Manpage at '/opt/homebrew/share/man/man1/etags.1.gz'.

だの出てくるので、エラーが出たら都度消すのが安全

==> Installing Cask emacs-app
==> Moving App 'Emacs.app' to '/Applications/Emacs.app'
==> Linking Binary 'Emacs' to '/opt/homebrew/bin/emacs'
==> Linking Binary 'ctags' to '/opt/homebrew/bin/ctags'
==> Linking Binary 'ebrowse' to '/opt/homebrew/bin/ebrowse'
==> Linking Binary 'emacsclient' to '/opt/homebrew/bin/emacsclient'
==> Linking Binary 'etags' to '/opt/homebrew/bin/etags'
==> Linking Manpage 'ctags.1.gz' to '/opt/homebrew/share/man/man1/ctags.1.gz'
==> Linking Manpage 'ebrowse.1.gz' to '/opt/homebrew/share/man/man1/ebrowse.1.gz'
==> Linking Manpage 'emacs.1.gz' to '/opt/homebrew/share/man/man1/emacs.1.gz'
==> Linking Manpage 'emacsclient.1.gz' to '/opt/homebrew/share/man/man1/emacsclient.1.gz'
==> Linking Manpage 'etags.1.gz' to '/opt/homebrew/share/man/man1/etags.1.gz'
🍺  emacs-app was successfully installed!

github.com