'-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!



Solution 1:[1]

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.

Solution 2:[2]

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

man mg

Solution 3:[3]

Emacs can be installed on MacOS using Homebrew

$ brew cask install emacs

or Sudo

$ sudo port install emacs-app

Solution 4:[4]

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.

Solution 5:[5]

If you use the brew in Mac, try this:

brew install emacs --no-quarantine --cask

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 nega
Solution 2 Brian Swift
Solution 3 Abhishek
Solution 4 wcochran
Solution 5 Ching-Hang Hsu