emacs
我最近在 Ubuntu 14.04 中使用以下脚本编译了最新版本的24.5从这里。
#!/bin/bash
# Build latest version of Emacs, version management with stow
# OS: Ubuntu 14.04 LTS and newer
# version: 24.5
# Toolkit: lucid
set -eu
readonly version="24.5"
# install dependencies
sudo apt-get -qq update
sudo apt-get -qq install -y stow build-essential libx11-dev xaw3dg-dev \
libjpeg-dev libpng12-dev libgif-dev libtiff5-dev libncurses5-dev \
libxft-dev librsvg2-dev libmagickcore-dev libmagick++-dev \
libxml2-dev libgpm-dev libotf-dev libm17n-dev \
libgnutls-dev wget
# download source package
if [[ ! -d emacs-"$version" ]]; then
wget http://ftp.gnu.org/gnu/emacs/emacs-"$version".tar.xz
tar xvf emacs-"$version".tar.xz
fi
# build and install
sudo mkdir -p /usr/local/stow
cd emacs-"$version"
./configure \
--with-xft \
--with-x-toolkit=lucid
make
sudo make \
install-arch-dep \
install-arch-indep \
prefix=/usr/local/stow/emacs-"$version"
cd /usr/local/stow
sudo stow emacs-"$version"
Emacs 24.5 无法按预期运行,我希望将其删除。两个问题。
我是否应该简单地使用 -D 选项
stow
?也就是说,cd /usr/local/stow sudo stow -D emacs-24.5
由于我正在恢复到 emacs 24.3(我没有删除它),我应该如何检查哪些依赖项可以删除?