CentOS5.9 编译Emacs 24

从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 status
make[1]: *** [temacs] Error 1

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

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

现在清理后重新编译:

make distclean
./configure --without-gsettings
make

运行make install ,安装成功。

CentOS5.9 编译Emacs 24

时间: 2024-08-25 04:12:56

CentOS5.9 编译Emacs 24的相关文章

Emacs 24.3 配置JDEE(http://blog.csdn.net/csfreebird/article/details/19033939)

最近要重回Java编程,所以打算在最新版本的Emacs 24.3上配置JDEE,听说会有些问题,特此记录安装过程. Emacs 24.3内置了CEDET, 版本是2.0, 这是一个让人困惑的事情,因为官方站点http://cedet.sourceforge.net/ 已经几年没有发布新版了,目前版本是1.1 我的JDK和Maven已经安装: [plain] view plaincopyprint? mvn --version Apache Maven 3.1.1 (0728685237757ff

Debian 7 安装 Emacs 24.3

Emacs 24.3出来好久了,但是在Debian 7里还是Emacs 23的版本. 以下是安装步骤(9步): sudo aptitude install git-core libxaw7-dev libxpm-dev libpng12-dev libtiff5-dev libgif-dev libjpeg8-dev libgtk2.0-dev libncurses5-dev autoconf automake texinfo sudo apt-get build-dep emacs git c

ubuntu14.04 下emacs 24 配置

目的: 配置emacs 24 适合编程开发 主要参考JerryZhang的配置(Emacs 简易教程) http://www.perfect-is-shit.com/emacs-simple-tutorial.html#tocAnchor-1-16-5 https://gitcafe.com/JerryZhang/Emacs-Config 优点: 插件少 基本功能都比较全,emacs 配置后启动比较快速 安装过程如下: git clone https://gitcafe.com/JerryZha

redhat-5.6-x86_64 编译 binutils-2.24、gcc-4.9.2 备记

工具链准备:rhel56安装时包含所有开发需要的包. 编译binutils-2.24(便以前先打补丁0ef76c4和27b829e): ./configure --disable-nls --disable-shared --build=x86_64-redhat-linux --host=x86_64-redhat-linux --target=x86_64-redhat-linux --disable-multilib --prefix=/opt/gcc-4.9.2 make all ins

在Emacs 24.4中使用在线字典

使用Emacs时经常需要查英语字典怎么办?切到浏览器查?太慢.我想到一个高效的解决方案,利用新发布的Emacs 24.4中的Web浏览器eww,在Emacs中集成一个在线字典,查询光标处的字,一键搞定.效果如下.如何实现请看我的英文博客.

CentOS5/6编译安装LAMP

一.环境说明准备 本次使用CentOS5.5.Centos6.5,编译安装Apache2.4.20.Mysql-5.5.48.PHP-5.5.30. 编译PHP以Apache模块方式运行.编译PHP前需要先编译好Apache和Mysql. 1.关闭SELINUX,配置yum源. setenforce 0 sed -i 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/config  ##此处使用的是阿里镜像源作为yum源. mv /e

emacs 24.4.1 终极 C++智能提示解决方案

采用ycmd模式 加上 前面介绍的company-mode 首先下载并安装ycmd server 参考,重点内容已经截出来 Building [Clients commonly build and set up ycmd for you; you are unlikely to need tobuild ycmd yourself unless you want to build a new client.] This is all for Ubuntu Linux. Details on ge

编译busybox-1.24.1

busybox-1.24.1.tar.bz21, 修改 Makefile找到以下2处修改为ARCH ?= armCROSS_COMPILE ?= arm-linux- 2, 打开配置菜单make menuconfig这里进行一些配置,打开 TAB 补全功能,选中 ifconfig , 打开驱动加载功能等可以按 / 后输入字符进行搜索 错误1 miscutils/i2c_tools.c: At top level:miscutils/i2c_tools.c:1046: error: `I2C_FU

emacs 24.4.1 使用company mode智能提示C++程序

company 不是公司,而是两个单词的合成,complete anything.所以不只是用于C++编程. 首先使用package system安装company-mode M-x list-packages 然后搜索company-mode i, x 安装 company mode官方文档在这里 修改~/.emacs.d/init.el, 添加一行 (add-hook 'after-init-hook 'global-company-mode) 重新启动emacs后,打开一个C++工程的某个