新聞中心
Emacs 26.3已經(jīng)發(fā)布,現(xiàn)在可以使用Emacs文本編輯器的26.3版了。此版本主要是維護(hù)版本,其中包含GNU ELPA軟件包的新GPG密鑰。

下面詳細(xì)介紹如何在centos 7.6下源碼安裝Emacs 26.3的全過程。
1、下載找到Emacs的最新版本
可在這里查看下載 http://gnu.mirrors.pair.com/emacs/
找對(duì)最新的版本,在此我下載的是emacs-26.3.tar.xz版本。
2. 下載
可直接復(fù)制鏈接用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 # 進(jìn)入安裝目錄
3. 安裝前配置
由于沒有相關(guān)依賴,有如下錯(cuò)誤:
......
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.
......
添加參數(shù)重新配置
......
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
......
取消相關(guān)link。
再次提示:
......
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
然后再次
4. 安裝
5. 安裝后配置
進(jìn)入home目錄。
# cd
# git clone https://github.com/combofish/emacs.d
# mv emacs.d .emacs.d
# emacs -nw
等待emacs加載完成就可以爽敲代碼了。
網(wǎng)站欄目:CentOS7.6下源碼安裝Emacs26.3
文章URL:http://www.5511xx.com/article/coicojs.html


咨詢
建站咨詢
