archlinux 编译 emacs 25.3 和 27 均无法支持imagemagick

看描述你是计划不安装 Hombrew,继续 wget->config->make->make install 的流程?我的意思是安上 Homebrew,修改一下 emacs formula 的包下载地址和校验值,很有可能就把新版 emacs 编译出来了。

刚才看了下 imagemagick@6 这个 formula,发现里面的版本为 6.9.9-35。也许是 emacs 依赖于这个特定的版本?

又看了下 emacs formula,基本上人家把踩到的坑在注释里都提出来了:

1. 不支持 ImageMagick 7。

# Emacs does not support ImageMagick 7:
# Reported on 2017-03-04: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25967

2. ImageMagick 有可能找不到路径。但是用 --with-imagemagick 选项却并不会报错,并停止编译。

# Note that if ./configure is passed --with-imagemagick but can't find the
# library it does not fail but imagemagick support will not be available. 
# See: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24455

3. 在 Vim 和 Emacs 里同时使用 ctags,可能造成冲突。

# Follow MacPorts and don't install ctags from Emacs. This allows Vim
# and Emacs and ctags to play together without violence.

很贴心了,有木有?!