Chinaunix首页 | 论坛 | 博客
  • 博客访问: 789198
  • 博文数量: 130
  • 博客积分: 3477
  • 博客等级: 中校
  • 技术积分: 1339
  • 用 户 组: 普通用户
  • 注册时间: 2006-11-30 21:53
文章分类

全部博文(130)

文章存档

2024年(1)

2023年(10)

2022年(4)

2021年(10)

2020年(9)

2018年(1)

2017年(1)

2014年(4)

2013年(3)

2012年(12)

2011年(24)

2010年(2)

2009年(8)

2008年(6)

2007年(34)

2006年(1)

分类: 系统运维

2011-11-26 00:26:41

step 1)
下载 emacs-21.4 , 下载地址自己搜索。


step 2)
下载并安装 gcc , 建议的 gcc 版本是 3.3.1 。
如何安装,请搜索本论坛。

step 3)
展开 emacs-21.4 源码包。

step 4)
在 emacs 源码目录下,创建编译目录
$ mkdir objdir

step 5)
配置编译选项,自动生成 Makefile 文件。
$ ./configure --prefix=/usr \\
--with-gcc \\
--without-pop \\
--with-kerberos \\
--with-kerberos5 \\
--with-hesiod \\
--with-pxm \\
--with-jpeg \\
--with-tiff \\
--with-gif \\
--with-png \\
--without-xim \\
--enable-largefile \\
--with-x \\
--libdir=/usr/gnu/lib \\
--includedir=/usr/gnu/include

( 俺的 gcc-3.3.1 是安装到 /usr/gnu 目录下的,同时安装的软件包还有 m4、bison 、 autoconf 、 automake 、 make-3.8.1 等软件包,这些包都是为了执行 ./configure 时不至于报错)

step 6)
修改生成的 Makefile 文件,相关内容。
将其中的 LIBS = -L/usr/lib 修改成 -L/usr/gnu/lib

step 7)
修改代码 src/strftime.c 文件,在其最后将被注释掉的 int mbsinit 函数打开,同时修改该函数的如下语句。
return ps==NULL || ps->count==0;
为 return ps==NULL ;

step 8)
编译并安装
$ gmake
# gmake install
阅读(1200) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~