我正在尝试使用brew安装htop:
➜ ~ brew install htop
Error: You must `brew link autoconf' before htop-osx can be installed
那我在做
brew link autoconf
Linking /usr/local/Cellar/autoconf/2.69... Warning: Could not link autoconf. Unlinking...
Error: Could not symlink file: /usr/local/Cellar/autoconf/2.69/share/emacs/site-lisp/autotest-mode.elc
Target /usr/local/share/emacs/site-lisp/autotest-mode.elc already exists. You may need to delete it.
To force the link and overwrite all other conflicting files, do:
brew link --overwrite formula_name
To list all files that would be deleted:
brew link --overwrite --dry-run formula_name
问题的根源是什么?
使用其他二进制文件安装的emacs,是否应该使用brew将其删除并重新安装emacs?
—
Voldemar Duletskiy
是的,如果您不需要完全相同的版本,那么我将删除另一个版本,然后重新安装brew版本-可能是它们有些不同。
—
slhck
emacs
已经通过Homebrew 安装了吗?如果是这样,您可能会覆盖它。