Install Emacs in CentOS 7
I started to get started with linux and used centos 7. I shared some experiment problems in my blog:
If it is just used as an editor, you can download and install it in the installation program of the GNOME desktop application,
As for the use of the Emacs Client, you can download and play the shoes you are interested in.
After Emacs is installed, enter emacs on the terminal to open the editor.
However, if you want to use this editor well, you should install the dependency packages. The whole process is as follows:
1. Dependency packages to be installed:
Yum-y groupinstall "Development Tools"
Yum-y install gtk +-devel gtk2-devel
Yum-y install libXpm-devel
Yum-y install libpng-devel
Yum-y install giflib-devel
Yum-y install libtiff-devel libjpeg-devel
Yum-y install ncurses-devel
Yum-y install gpm-devel kernel-glib-devel kernel-Python
Yum-y install GConf2-devel pkgconfig
Yum-y install libXft-devel
2. download the latest emacs installation package and decompress it at the following link.
Http://ftp.gnu.org/pub/gnu/emacs/
My emacs-24.5
Command to decompress the file:
Tar xvf emacs-24.5.tar.gz
3. Install emacs
Enter the decompressed folder under the root user
Cd emacs-24.5
./Configure-prefix =/usr/local-with-x-toolkit = gtk
Make & make install
After the installation is successful, the following message is displayed:
Make [1]: Leaving directory/root/Downloads/emacs-24.5/leim'
cd lib-src; make maybe-blessmail \
MAKE='make' archlibdir='/usr/local/libexec/emacs/24.5/i686-pc-linux-gnu'
make[1]: Entering directory
/Root/Downloads/emacs-24.5/lib-src'
Make [1]: Nothing to be donemaybe-blessmail'.
make[1]: Leaving directory
/Root/Downloads/emacs-24.5/lib-src'
Enter emacs to write a program to run the program ~
If an error occurs, refer:
Http://www.linuxidc.com/Linux/2015-04/116351.htm
Appendix: Why Emacs and Vim are called two major artifacts
Https://linuxtoy.org/archives/why-emacs-vim-good.html