编译emacs23 cvs,支持xft字体


emacs是个相当不错的工具,出于对它复杂的配置,一直不敢学,最近打算学LINUX的基本功能,因为CVS版本新增加些新功能,所以我编译了CVS版本

1. 下载CVS版本代码

    sudo apt-get install ssh cvs
    export CVS_RSH="ssh"
    cvs -z3 -d:pserver:[email protected]:/cvsroot/ emacs co  emacs

PS:unicode版本已经并入了emacs主版本
如果你下了一个CVS版本后,以后要更新到最新的版本的话,只需要在emacs的跟目录下执行
cvs update -A


2. 安装编译环境 (如果不装这些库emacs有可能就直接在终端打开,没有边框,就象vi一样)

    sudo apt-get install build-essential
    sudo apt-get build-dep emacs21
    sudo apt-get install xserver-xorg-dev
    sudo apt-get install xorg-dev
    sudo apt-get install libncurses5
    sudo apt-get install libncurses5-dev

    sudo apt-get install libgtk2.0-dev

3. 编译emacs,让emacs支持xft字体,要指定gtk环境
   
    ./configure   --with-xft  --with-x
    make bootstrap


4. 安装emacs
   
    sudo make install

5. 这里有不错的配置文章 http://forum.ubuntu.org.cn/viewtopic.php?t=18274


PS: 关于EMACS的打包,
在UBUNTU下,把软件打包成DEB来安装才是正规的手法,make install 的话有时候如果要卸载就真不办了,
打包后就方便管理了,还可以和其他人分享你的努力

这里介绍个简单的方法,dh_make,fakeroot,dpkg-buildpackage,这些要确保安装了
cd emacs
dh_make -f ../emacs.tar.gz
修改debian/rules,

# Add here commands to compile the package.
    $(MAKE)
修改成
# Add here commands to compile the package.
    $(MAKE) bootstrap

./configure 后面加上 --with-xft --with-x

然后dpkg-buildpackage -rfakeroot 就可以打包了






你可能感兴趣的:(ssh,ubuntu,cvs,emacs,Deb,gtk)