在安装emacs软件前,需要先安装一些依赖包,然后在下载emacs的软件包解压,再安装即可,具体步骤如下:
1、需要下载的依赖包如下:
2、到如下链接下载emacs的安装包并解压
http://ftp.gnu.org/pub/gnu/emacs/
make && make install
在安装过程中遇到如下错误:
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
解决办法如下:
make distclean
./configure --without-gsettings
make && make install
安装成功后出现如下提示:
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‘
在终端中输入emacs,即可打开软件
原文地址:http://blog.csdn.net/ajhsdj/article/details/45077997