|
- 今天刚装debian 5.0 ,用的是台湾的debian源。然后CVS 装emacs23。
- ---------------------------------------
- 1.安装环境。
- sudo apt-get install build-essential
- 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 libxpm-dev libgif-dev libtiff-dev
- sudo apt-get install libgtk2.0-dev
- 2.cvs emacs 23包。
- (1) cd ~
- (2)set CVS RSH=”ssh”
- (3)cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co emacs
- (4)configure出错 ,换个CVS地址再更新一次:
- cvs -z3 -d:pserver:anonymous@cvs.sv.gnu.org:/sources/emacs co emacs
- 3.建立目录:/usr/local/emacs23, 将emacs装到这里。
- sudo mkdir /usr/local/emacs23
- 4.开始编译。
- cd ~/emacs
- ./configure --prefix=/usr/local/emacs23 --enable-font-backend --with-xft --with-freetype --with-x-toolkit=gtk
- --------------------------------
- 参数解释:
- --prefix=/usr/local/emacs23 指定emacs安装在/usr/local/emacs23
- --enable-font-backend 让emacs支持雅黑字体
- --with-freetype 支持freetype字体
- --with-x-toolkit=gtk 指定环境为gtk
- ---------------------------------
- 可能会提示下面的内容:
- ******************************************************************
- * *
- * The Emacs "emacs-unicode-2" branch has been merged into *
- * the CVS trunk, and is now obsolete. You should probably *
- * use the CVS trunk instead. *
- * *
- * To switch a CVS checkout to the trunk, use the command: *
- * *
- * cvs update -A *
- * *
- ******************************************************************
- 原因是最近emacs-unicode-2已经移到trunk下了。按照提示,执行命令
- cvs update -A
- 更新完成后,重新编译:
- ./configure --prefix=/usr/local/emacs23 --enable-font-backend --with-xft --with-freetype --with-x-toolkit=gtk
- 没有错误则继续:
- 如果是第一次编译从 cvs Repository 中 check out 来的代码,则
- make bootstrap
- make info
- 在src目录下会生成emacs程序,试运行一下 src/emacs -q,成功,然后
- make install
- make clean
- 5.给PATH添加路径
- cd /usr/local/bin
- ln -s /usr/local/emacs23/bin/* ./
复制代码
6.
终端下输入emacs 就可以启动emacs了。
放个截图:emacs里用shell,好多乱七八糟的符号啊怎么解决???
----------------------------------------
 |
|