Installing GNU Emacs on POP! OS Latest
This tutorial will guide you through the process of installing GNU Emacs on POP! OS Latest.
Prerequisites
Before proceeding with the installation, you need to have the following packages installed on your system:
gccmakeautoconftexinfo
To install these packages, open a terminal and run the following command:
sudo apt-get install gcc make autoconf texinfo
Downloading GNU Emacs
- Open a web browser and go to http://www.gnu.org/software/emacs/.
- Click on the "Download" link in the top menu.
- Locate the latest version of GNU Emacs and click on the link to download it.
- Save the downloaded file to a convenient location on your computer.
Compiling and Installing GNU Emacs
Open a terminal and navigate to the directory where you downloaded the GNU Emacs source code.
Extract the downloaded file by running the following command:
tar -xvf emacs-xx.yy.tar.gzReplace
xx.yywith the version number of GNU Emacs that you downloaded.Navigate to the extracted directory by running the following command:
cd emacs-xx.yyReplace
xx.yywith the version number of GNU Emacs that you downloaded.Configure the build by running the following command:
./configureThis will detect your system and create the appropriate
Makefile.Install the build dependencies by running the following command:
sudo apt-get build-dep emacsThis will install any necessary packages that are required for building Emacs. If your system is up-to-date, this command will do nothing.
Build the program by running the following command:
makeThis will compile the source code into an executable binary.
Install the program by running the following command:
sudo make installThis will copy the executable to the appropriate location on your system.
Running GNU Emacs
You can now run GNU Emacs by opening a terminal and typing the following command:
emacs
This will open the GNU Emacs editor. Congratulations, you have successfully installed GNU Emacs on POP! OS Latest!