emacs安装教程linux系统,CentOS 7.6下源码安装Emacs 26.3

CentOS 7.6下源码安装Emacs 26.3

Emacs 26.3已经发布,现在可以使用Emacs文本编辑器的26.3版了。此版本主要是维护版本,其中包含GNU ELPA软件包的新GPG密钥。

下面详细介绍如何在CentOS 7.6下源码安装Emacs 26.3的全过程。

1、下载找到Emacs的最新版本

可在这里查看下载 http://gnu.mirrors.pair.com/emacs/

f4f5a7f838e0937a216eced5e8472dab.png

找对最新的版本,在此我下载的是emacs-26.3.tar.xz版本。

2. 下载

可直接复制链接用wget [链接]  来下载

wget https://mirrors.sjtug.sjtu.edu.cn/gnu/emacs/emacs-26.3.tar.xz

xz -d emacs-26.3.tar.xz  # 解压

tar -xvf emacs-26.3.tar

cd emacs-26.3.tar.xz  # 进入安装目录

3. 安装前配置

[linuxidc@localhost emacs-26.3]$ ./configure

由于没有相关依赖,有如下错误:

......

checking for libXaw... configure: error: No X toolkit could be found.

If you are sure you want Emacs compiled without an X toolkit, pass

--with-x-toolkit=no

to configure.  Otherwise, install the development libraries for the toolkit

that you want to use (e.g. Gtk+) and re-run configure.

......

44b2f42577e900fe3d535464a5c71fe2.png

08d6821723ca734525a8c4c5b5bad334.png

[linuxidc@localhost emacs-26.3]$ ./configure --with-x-toolkit=no

添加参数重新配置

......

checking gif_lib.h usability... no

checking gif_lib.h presence... no

checking for gif_lib.h... no

configure: error: The following required libraries were not found:

libXpm libgif/libungif gnutls

Maybe some development libraries/packages are missing?

If you don't want to link with them give

--with-xpm=no --with-gif=no --with-gnutls=no

as options to configure

......

24ab99f614e0a2e58a451f9b7e870131.png

68b961180ec0a7c97f6fcbfee416f0ca.png

取消相关link。

[linuxidc@localhost emacs-26.3]$ ./configure --with-x-toolkit=no --with-gif=no --with-tiff=no --with-gnutls=no

e994099c46ced71aec1187ed2fd6ea9b.png

再次提示:

......

configure: error: The following required libraries were not found:

libXpm

Maybe some development libraries/packages are missing?

If you don't want to link with them give

--with-xpm=no

as options to configure

......

安装 libXpm

[linuxidc@localhost emacs-26.3]$ sudo yum install -y libXpm-devel

3fd4b480b1944da46f9a2aaebff8ec8e.png

然后再次

[linuxidc@localhost emacs-26.3]$ ./configure --with-x-toolkit=no --with-gif=no --with-tiff=no --with-gnutls=no

4. 安装

[linuxidc@localhost emacs-26.3]$ make

541b77e12f8efbbbe92a0203cec18550.png

[linuxidc@localhost emacs-26.3]$ sudo make install

469bc8b7dc90bddfa37927fcafb597ea.png

5. 安装后配置

进入home目录。

# cd

# git clone https://github.com/combofish/emacs.d

# mv emacs.d .emacs.d

# emacs -nw

等待emacs加载完成就可以爽敲代码了。

c877fc16f2e9d2bf689a3b43313df5c9.png

Emacs 26.3 发布,附带GPG密钥用于GNU ELPA包签名检查  https://www.linuxboy.net/Linux/2019-09/160450.htm

linuxboy的RSS地址:https://www.linuxboy.net/rssFeed.aspx

本文永久更新链接地址:https://www.linuxboy.net/Linux/2019-09/160451.htm

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值