简体   繁体   中英

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

After updating my mac to CATALINA, I have been dealing with some issues, and one of them is the fact that I can't open EMACS on the terminal:

-bash: emacs: command not found

Anyone with the same issue, and knows how to fix this? Thanks!

As of Catalina, Emacs is no longer provided in macOS. You'll have to download it from elsewhere, such as https://emacsforosx.com/ or https://aquamacs.org . There are other packages/distributions/ports listed at https://www.emacswiki.org/emacs/EmacsForMacOS .

If you have one of those packages, you may have to re-install its command line tools/helpers.

If you can live with basic "emacs-like" editing, Catalina includes "mg" text editor. For more info:

man mg

Emacs can be installed on MacOS using Homebrew

$ brew cask install emacs

or Sudo

$ sudo port install emacs-app

If you want the classic command line version you can get it from MacPorts :

sudo port install emacs

You can also get it view HomeBrew .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM