- 論壇徽章:
- 1
|
step 1)
下載 emacs-21.4 , 下載地址自己搜索。
step 2)
下載并安裝 gcc , 建議的 gcc 版本是 3.3.1 。
如何安裝,請搜索本論壇。
step 3)
展開 emacs-21.4 源碼包。
step 4)
在 emacs 源碼目錄下,創(chuàng)建編譯目錄
$ 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 等軟件包,這些包都是為了執(zhí)行 ./configure 時不至于報錯)
step 6)
修改生成的 Makefile 文件,相關(guān)內(nèi)容。
將其中的 LIBS = -L/usr/lib 修改成 -L/usr/gnu/lib
step 7)
修改代碼 src/strftime.c 文件,在其最后將被注釋掉的 int mbsinit 函數(shù)打開,同時修改該函數(shù)的如下語句。
return ps==NULL || ps->count==0;
為 return ps==NULL ;
step 8)
編譯并安裝
$ gmake
# gmake install |
|