-bash: emacs: 未找到命令(更新 mac 到 CATALINA 后)

-bash: emacs: command not found (after updating mac to CATALINA)

将我的 mac 更新到 CATALINA 后,我一直在处理一些问题,其中之一是我无法在终端上打开 EMACS:

-bash: emacs: command not found

有人遇到同样的问题,知道如何解决这个问题吗?谢谢!

从 Catalina 开始,macOS 不再提供 Emacs。您必须从其他地方下载它,例如 https://emacsforosx.com/ or https://aquamacs.org. There are other packages/distributions/ports listed at https://www.emacswiki.org/emacs/EmacsForMacOS.

如果您有这些软件包之一,您可能需要重新安装其命令行 tools/helpers。

可以使用 Homebrew 在 MacOS 上安装 Emacs

$ brew cask install emacs

或须藤

$ sudo port install emacs-app

如果您可以接受基本的“类 emacs”编辑,Catalina 包括“mg”文本编辑器。欲了解更多信息:

man mg

如果你想要经典的命令行版本,你可以从 MacPorts:

sudo port install emacs

您也可以查看HomeBrew

如果您在 Mac 中使用 brew,试试这个:

brew install emacs --no-quarantine --cask