Emacs的安装

现在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 libncurses5-dev
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


安装

代码:
./configure
make
make install



装好的在/usr/local/bin里有
2009-08-20---------
参考
在debian下安装Emacs23
先是CVS安装:
还没装CVS

代码:
sudo apt-get install ssh cvs
cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/cvsroot/emacs co emacs


下载进行中...
完成了,生成了一个emacs目录,新建了个emacs23的目录,进入emacs23
第一步,configure

代码:
cd emacs23
../emacs/configure


报错

代码:
configure: error: C compiler cannot create executables
See `config.log' for more details.


google了下下,说是一般都是 gcc 編譯環境没有配置好,直接執行

代码:
apt-get install gcc libc6-dev


就可以解決
再次

代码:
cd emacs23
../emacs/configure


又报

代码:
configure: error: You seem to be running X, but no X development libraries
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再次

代码:
cd emacs23
../emacs/configure    --without-x


这次没说什么错误,应该是成功了吧。
第二步:make

代码:
make


make完了后没报什么错,但运行src/emacs -q
报错: emacs: Cannot open termcap database
没理它,继续

代码:
make install


完了以后还是
报错: emacs: Cannot open termcap database
没辙了
又google了一下,原先说是安装termcap-compat,再安装的时候说这个包已被废弃了
继续google,又发现个帖子说要安装libncurses5-dev ,试试吧
总算成功了,不过安装的是个没有X的,现在安装libgtk2.0-dev又碰到问题,以后再说吧
总结,没有X的安装

代码:
sudo apt-get ssh cvs libc6-dev  libncurses5-dev
configure  --without-x
make
make install

转载自:http://forum.ubuntu.org.cn/viewtopic.php?f=68&t=168366



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值