Before installing Emacs Software, you need to install some dependent packages, then unzip the software package to download emacs, then install it, the steps are as follows:
1. The dependent packages that need to be downloaded are as follows:
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 www.2cto.com
Yum-y Install gpm-devel dbus-devel dbus-glib-devel Dbus-python
Yum-y Install Gconf2-devel pkgconfig
Yum-y Install Libxft-devel
2, to the following link to download Emacs installation package and unzip
http://ftp.gnu.org/pub/gnu/emacs/
#解压文件
Tar xvf emacs-24.2.tar.gz
3. Installing Emacs
CD emacs-24.2./configure--prefix=/usr/local--WITH-X-TOOLKIT=GTK
Make && make install
The following error was encountered during the installation process:
xsettings.o:in function ' SOMETHING_CHANGED_GSETTINGSCB ':
/root/downloads/emacs-24.2/src/xsettings.c:216:undefined reference to ' G_settings_get_value '
/root/downloads/emacs-24.2/src/xsettings.c:231:undefined reference to ' G_settings_get_value '
/root/downloads/emacs-24.2/src/xsettings.c:245:undefined reference to ' G_settings_get_value '
xsettings.o:in function ' init_gsettings ':
/root/downloads/emacs-24.2/src/xsettings.c:815:undefined reference to ' G_settings_list_schemas '
/root/downloads/emacs-24.2/src/xsettings.c:821:undefined reference to ' g_settings_new '
/root/downloads/emacs-24.2/src/xsettings.c:827:undefined reference to ' G_settings_get_value '
/root/downloads/emacs-24.2/src/xsettings.c:838:undefined reference to ' G_settings_get_value '
/root/downloads/emacs-24.2/src/xsettings.c:847:undefined reference to ' G_settings_get_value '
Collect2:ld returned 1 exit status
MAKE[1]: * * * [Temacs] Error 1
MAKE[1]: Leaving directory '/ROOT/DOWNLOADS/EMACS-24.2/SRC '
Make: * * * [SRC] Error 2
The solution is as follows:
Make Distclean
./configure--without-gsettings
Make && make install
after successful installation , the following prompt appears:
MAKE[1]: Leaving directory '/root/downloads/emacs-24.2/leim '
CD lib-src; Make Maybe-blessmail \
Make= ' make ' archlibdir= '/usr/local/libexec/emacs/24.2/i686-pc-linux-gnu '
MAKE[1]: Entering directory '/ROOT/DOWNLOADS/EMACS-24.2/LIB-SRC '
Make[1]: Nothing to is done for ' maybe-blessmail '.
MAKE[1]: Leaving directory '/ROOT/DOWNLOADS/EMACS-24.2/LIB-SRC '
Enter Emacs in the terminal to open the software
Installing Emacs Software in CentOS 6.5