Installing Emacs Software in CentOS 6.5

Source: Internet
Author: User
Tags gtk

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

Related Article

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.