问题说明了一切,emacs 27 似乎无法通过我的 ubuntu 版本或 PPA 上的 apt-get 获得。这是否意味着我必须从源代码构建它?谢谢。
答案1
以下是我在 Ubuntu 16.04 上从源代码编译它的方法(还有Emacs 文档中的说明):
# https://stackoverflow.com/questions/338317/what-is-makeinfo-and-how-do-i-get-it
sudo apt install --yes texinfo
# https://stackoverflow.com/questions/55297581/build-emacs-ubuntu-libraries-not-found
sudo apt install --yes libxpm-dev libjpeg-dev libgif-dev libtiff-dev libgnutls28-dev
git clone https://git.savannah.gnu.org/git/emacs.git /tmp/emacs \
&& cd /tmp/emacs \
&& git checkout emacs-27 \
&& ./autogen.sh && ./configure && make \
&& mv ./src/emacs /usr/bin/emacs \
&& rm -rf /tmp/emacs
另外,如果你想使用毁灭战士 Emacs,你还需要:
# rg
# https://github.com/BurntSushi/ripgrep/releases
curl -LO https://github.com/BurntSushi/ripgrep/releases/download/11.0.2/ripgrep_11.0.2_amd64.deb \
&& sudo dpkg -i ripgrep_11.0.2_amd64.deb \
&& rm ripgrep_11.0.2_amd64.deb
# fd
# https://github.com/sharkdp/fd/releases
curl -LO https://github.com/sharkdp/fd/releases/download/v8.1.1/fd-musl_8.1.1_amd64.deb \
&& sudo dpkg -i fd-musl_8.1.1_amd64.deb \
&& rm fd-musl_8.1.1_amd64.deb
git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
~/.emacs.d/bin/doom install
答案2
snap install emacs --beta --classic