Debian编译Emacs

安装依赖 Debian编译Emacs需要一些依赖,下载方法如下: 1 2 sudo apt build-dep emacs sudo apt install libtree-sitter-dev 下载和解压Emacs Emacs29.3下载地址 1 2 3 4 # 下载 wget https://mirror.its.dal.ca/gnu/emacs/emacs-29.3.tar.xz # 解压 tar xvf emacs-29.3.tar.xz 编译Emacs 1 2 3 4 5 6 7 8 9 10 11 12 # 生成配置脚本和Makefile ./autogen.sh # 配置编译选项 ./configure --with-native-compilation=aot --with-native-compilation --with-json --with-tree-sitter CC=gcc-12 # 设置8个核心并行编译 make -j 8 # 查看Emacs版本 src/emacs --version # 快速启动测试一下Emacs src/emacs -Q # 将编译后的Emacs安装到指定目录 sudo make install 如果使用的是Wayland,可以需要添加--with-pgtk选项以获得更好的兼容性 ...

2024-04-28 · 1 分钟 · 456 字 · LYJ