linux下emacs安装

本文提供了一步一步安装 Emacs 22.3 的详细教程,包括下载源码、配置、编译及安装过程。适用于希望自行编译安装 Emacs 的 Linux 用户。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

安装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、然后就是安装
1[root@localhost emacs-22.3]# ./configure 

 1configure: creating ./config.status
 2config.status: creating Makefile
 3config.status: creating lib-src/Makefile.c
 4config.status: creating oldXMenu/Makefile
 5config.status: creating man/Makefile
 6config.status: creating lwlib/Makefile
 7config.status: creating src/Makefile.c
 8config.status: creating lisp/Makefile
 9config.status: creating lispref/Makefile
10config.status: creating lispintro/Makefile
11config.status: creating leim/Makefile
12config.status: creating src/config.h
13config.status: executing default commands
14creating src/epaths.h
15creating lib-src/Makefile
16creating src/Makefile
17
4、输入make命令
注:这里会在当前目录下创建一个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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值