linux下Emacs编译手记

作为一个linux初学者,试着自己编译了下编辑器之神Emacs,算是学习整个gcc编译工具链了,小有成就感。

 

编译内容:Emacs 24.1.1

环境:ubuntu12.04LTS 32位

 

1.下载源码包

从这里找:http://ftp.gnu.org/pub/gnu/emacs/

 

2.解压源码

  tar -xzvf emacs-24.1.tar.gz

 

3.配置环境

  sudo apt-get install build-essential

  sudo apt-get install build-dep emacs

 

提示说只有emacs23,没关系,一样能用。

 

4.检测环境&生成makefile

执行:

  ./configure

提示要不要xwindows界面,我选不要

所以再次运行

  ./configure --without-x

提示生成makefile成功

 

5.编译

键入命令

  make

过了一段时间,提示出错: Cannot open load file: case-table

网上搜索后发现是中文路径的问题,于是拷贝到系统根目录。

再次 

  ./configure --without-x

继续

  make

提示成功

 

6.安装

键入

  make install

提示权限不够

于是

  sudo make install

几分鐘后,安装成功。

键入emacs,确认版本没问题。

 

参考:

http://leo0216.blog.51cto.com/188904/70605 《有了开源,软件该怎样编译》

http://foyo99.zhuidaniu.com/blogs/634 《ubuntu下Emacs 24的编译与安装》

http://bbs.ctex.org/forum.php?mod=viewthread&tid=51812

 

posted on 2012-08-04 21:55  BitSky  阅读(586)  评论(0编辑  收藏  举报

导航