Install emacs software in CentOS 6.5, centosemacs
Before installing the emacs software, you need to install some dependent packages first, and then download and decompress the emacs software package before installing it. The specific steps are as follows:
1. The dependency package to be downloaded is 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 kernel-glib-devel kernel-python
Yum-y install GConf2-devel pkgconfig
Yum-y install libXft-devel
2. Download the emacs installation package and decompress it at the following link.
Http://ftp.gnu.org/pub/gnu/emacs/
# Decompress the file
Tar xvf emacs-24.2.tar.gz
3. Install emacs
Cd emacs-24.2./configure -- prefix =/usr/local -- with-x-toolkit = gtk
Make & make install
The following error occurs during installation:
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 _ gsetting ':
/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 installationThe following prompt is displayed:
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 be done for 'Maybe-blessmail '.
Make [1]: Leaving directory '/root/Downloads/emacs-24.2/lib-src'
Enter emacs in the terminal to open the software.