如何在Ubuntu 9.04上安装Emacs23 我是在2009年5月5日进行的安装,所以大家如果和我的过程有出入,那么请注意时间和版本是不是相差比较远。
这里我参考了国内、国外的一些文章,也许因为时间和版本的不同,使用他们的方法我都没有成功(很多方法都是针对Emacs23 CVS Branch的,而我测试的信息已经合并到Trunk中了)。然后自己摸索,过程比较曲折,下面是过程,分为两个部分,一个是曲折的、不断出错的过程;还 有一个是摸索出来的正确的做法。 1. 出错的过程 从CVS获得Emacs23的源代码: cd /usr/local/src sudo export CVS_RSH="ssh" sudo cvs -z3 -d:pserver:anonymous@cvs.sv.gnu.org:/cvsroot/emacs co -r emacs-unicode-2 emacs 下载需要一段时间,完成后,调用: sudo ./configure --enable-font-backend --with-xft --with-freetype --with-x-toolkit=gtk 这时候会看到提示: ****************************************************************** * * * The Emacs "emacs-unicode-2" branch has been merged into * * the CVS trunk, and is now obsolete. You should probably * * use the CVS trunk instead. * * * * To switch a CVS checkout to the trunk, use the command: * * * * cvs update -A * * * ****************************************************************** 然后调用: sudo cvs update -A 更新需要一段时间,完成之后,重新调用: sudo ./configure --enable-font-backend --with-xft --with-freetype --with-x-toolkit=gtk sudo make bootstrap 然后出现了一个错误,描述如下: ake[2]: *** No rule to make target `/usr/local/src/emacs/lisp/org/org-agenda.elc', needed by `compile-main'. Stop. make[2]: Leaving directory `/usr/local/src/emacs/lisp' make[1]: *** [lisp] Error 2 make[1]: Leaving directory `/usr/local/src/emacs' make: *** [bootstrap] Error 2 网上查了一下,缺少文件,使用信的CVS源,如下: sudo cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/cvsroot/emacs co emacs 注意,这里从源cvs.sv.gnu.org换成了cvs.savannah.gnu.org。 完成之后,继续调用: sudo make bootstrap 还是继续出现上面的问题。 后来放弃,看来网上很多的资料都已经老了,我需要基于这些资料自己整理一下,见下面一部分的描述。 2. 摸索出来的做法 通过上面不断失败的过程,并且根据Emacs 23自带的INSTALL.CVS,我总结了一下,然后按照下面的过程顺利的安装了Emacs 23,支持中文,而且中文显示的比较漂亮。 cd /usr/local/src sudo cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/cvsroot/emacs co emacs sudo ./configure --enable-font-backend --with-xft --with-freetype --with-x-toolkit=gtk sudo cvs update -dP(这一步也许没有必要,我按照INSTALL.cvs说的做了) sudo make bootstrap sudo make install 至此,OK,我就用这个Emacs 23写下了上面的内容,希望对大家有所帮助
相关资源:敏捷开发V1.0.pptx