现在23.1已经发布,GNU Emacs 23.1 可从 GNU 的 FTP 站点 下载。
编译安装前要先安装libncurses5-dev,否则你当你安装完之后,执行emacs会提示
emacs: Cannot open termcap database file
还要有X需要的一些包,否则config时需要用--without-x,安装后make install 时报的makeinfo is missing - cannot build manuals错误也没有了
sudo apt-get install libgtk2.0-dev
sudo apt-get install libxpm-dev
sudo apt-get install libgif-dev
sudo apt-get install libtiff4-div
安装
make
make install
装好的在/usr/local/bin里有
2009-08-20---------
参考
在debian下安装Emacs23
先是CVS安装:
还没装CVS
cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/cvsroot/emacs co emacs
下载进行中...
完成了,生成了一个emacs目录,新建了个emacs23的目录,进入emacs23
第一步,configure
../emacs/configure
报错
:
See `config.log' for more details.
google了下下,说是一般都是 gcc 編譯環境没有配置好,直接執行
就可以解決
再次
../emacs/configure
又报
:
were found. You should install the relevant development files for X
and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
sure you have development files for image handling, i.e.
tiff, gif, jpeg, png and xpm.
If you are sure you want Emacs compiled without X window support, pass
--without-x
to configure.
加上 --without-x再次
../emacs/configure --without-x
这次没说什么错误,应该是成功了吧。
第二步:make
make完了后没报什么错,但运行src/emacs -q
报错: emacs: Cannot open termcap database
没理它,继续
完了以后还是
报错: emacs: Cannot open termcap database
没辙了
又google了一下,原先说是安装termcap-compat,再安装的时候说这个包已被废弃了
继续google,又发现个帖子说要安装libncurses5-dev ,试试吧
总算成功了,不过安装的是个没有X的,现在安装libgtk2.0-dev又碰到问题,以后再说吧
总结,没有X的安装
configure --without-x
make
make install
转载自:http://forum.ubuntu.org.cn/viewtopic.php?f=68&t=168366