Install emacs software in CentOS 6.5, centosemacs

Source: Internet
Author: User

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.

















Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.