安装emacs
1、首先上emacs网站下载安装源emacs-22.3.tar.gz,具体下载路径就自己去Google找吧
2、解压缩文件:
1
[root@localhost software]# tar emacs-22.3.tar.gz
3、进入路径
1
[root@localhost software]# cd /demo/software/emacs-22.3
2 [root@localhost emacs-22.3]#
3、然后就是安装
2 [root@localhost emacs-22.3]#
1
[root@localhost emacs-22.3]# ./configure
1
configure: creating ./config.status
2 config.status: creating Makefile
3 config.status: creating lib-src/Makefile.c
4 config.status: creating oldXMenu/Makefile
5 config.status: creating man/Makefile
6 config.status: creating lwlib/Makefile
7 config.status: creating src/Makefile.c
8 config.status: creating lisp/Makefile
9 config.status: creating lispref/Makefile
10 config.status: creating lispintro/Makefile
11 config.status: creating leim/Makefile
12 config.status: creating src/config.h
13 config.status: executing default commands
14 creating src/epaths.h
15 creating lib-src/Makefile
16 creating src/Makefile
17
4、输入make命令
2 config.status: creating Makefile
3 config.status: creating lib-src/Makefile.c
4 config.status: creating oldXMenu/Makefile
5 config.status: creating man/Makefile
6 config.status: creating lwlib/Makefile
7 config.status: creating src/Makefile.c
8 config.status: creating lisp/Makefile
9 config.status: creating lispref/Makefile
10 config.status: creating lispintro/Makefile
11 config.status: creating leim/Makefile
12 config.status: creating src/config.h
13 config.status: executing default commands
14 creating src/epaths.h
15 creating lib-src/Makefile
16 creating src/Makefile
17
注:这里会在当前目录下创建一个src的子目录,并会创建Emacs程序和Makefile文件
1
[root@localhost emacs-22.3]# make
make完毕后,会在src子目录下生成emacs程序,试运行一下:src/emacs -q,如果弹出emacs的界面,那就表示运行成功,那么就进行下一步安装
5、输入命令make install,记得退回到目录emacs-22.3,之前的目录是emacs-22.3/src
1
[root@localhost emacs-22.3]# make install
6、输入命令make clear,清空中间文件
1
[root@localhost emacs-22.3]# make clean
7、此时emacs已经安装完毕,输入命令emacs,弹出emacs界面就表示安装成功
8、备注
这个Emacs23版本默认的安装路径是/usr/local,如果你不喜欢它被拆成好几块,分别存在以下目录中:
/usr/local/bin
/usr/local/share/emacs/VERSION/lisp
/usr/local/share/emacs/VERSION/etc
/usr/local/libexec/emacs/VERSION/CONFIGURATION-NAME
/usr/local/info
/usr/local/man/man1