apt-get build-dep emacs23
apt-get install libxaw7-dev libmagick++-dev libgnutls-dev
2、下载emacs 24.5源码
wget ftp://ftp.gnu.org/pub/gnu/emacs/emacs-24.5.tar.xz
3、编译安装
tar xvf emacs-24.5.tar.xz
mkdir emacs_compile
cd emacs_compile
../emacs-24.5/configure --prefix=/kaifa/tool --with-x
make -j4
make install