[ 登录注册 ]

语言

CentOS5.9 编译Emacs 24

2017-07-14 10:38:46 admin 返回上一页

标签:class   blog   code   http   tar   get   

从Emacs官方站点下载最新版解压后,运行

./configure
得到错误信息:

configure: error: The following required libraries were not found:libXpm libjpeg libgif/libungif libtiff


用下面的命令安装依赖库:

yum -y install libjpeg-devel.x86_64 giflib-devel.x86_64 libtiff-devel.x86_64

再次运行./configure,还有错误信息:

configure: error: The following required libraries were not found:libXpm libjpeg


继续安装
yum install libjpeg-devel

yum install libXpm-devel

现在可以编译了,用make即可。

但是链接报错:

xsettings.o: In function `something_changed_gsettingsCB‘:/opt/emacs-24.3/src/xsettings.c:215: undefined reference to `g_settings_get_value‘/opt/emacs-24.3/src/xsettings.c:230: undefined reference to `g_settings_get_value‘/opt/emacs-24.3/src/xsettings.c:244: undefined reference to `g_settings_get_value‘xsettings.o: In function `init_gsettings‘:/opt/emacs-24.3/src/xsettings.c:816: undefined reference to `g_settings_list_schemas‘/opt/emacs-24.3/src/xsettings.c:822: undefined reference to `g_settings_new‘/opt/emacs-24.3/src/xsettings.c:828: undefined reference to `g_settings_get_value‘/opt/emacs-24.3/src/xsettings.c:839: undefined reference to `g_settings_get_value‘/opt/emacs-24.3/src/xsettings.c:848: undefined reference to `g_settings_get_value‘collect2: ld returned 1 exit statusmake[1]: *** [temacs] Error 1


这里介绍了一个方法绕过:

http://lists.gnu.org/archive/html/bug-gnu-emacs/2014-03/msg01031.html


现在清理后重新编译:

make distclean./configure --without-gsettingsmake


运行make install ,安装成功。






CentOS5.9 编译Emacs 24布布扣bubuko.com

CentOS5.9 编译Emacs 24

标签:class   blog   code   http   tar   get   


文章来源:http://www.bozhiyue.com/yuyan/2017/0714/1484293.html
返回上一页    返回分类 上一篇:   下一篇:
相关