我正在尝试安装emacs 26-1。当我运行./configure时,出现以下错误:
configure: error: The following required libraries were not found:
libXpm libjpeg libgif/libungif libtiff gnutls
Maybe some development libraries/packages are missing?
但是他们似乎已经在那里。我尝试了多种方法,例如
: ~$ apt-cache search gnutls
gnutls-doc - GNU TLS library - documentation and examples
libcurl3-gnutls - easy-to-use client-side URL transfer library (GnuTLS flavour)
libcurl4-gnutls-dev - development files and documentation for libcurl (GnuTLS flavour)
libgnutls-openssl27 - GNU TLS library - OpenSSL wrapper
或
:~$ sudo apt install libcurl4-gnutls-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libcurl4-gnutls-dev is already the newest version (7.58.0-2ubuntu3.6).
0 to upgrade, 0 to newly install, 0 to remove and 11 not to upgrade.
一切似乎都很好。我想念什么?
答案 0 :(得分:8)
如错误消息中所述,您实际上需要这些库的开发版本(已在Ubuntu 19.10(Eoan Ermine)上通过Emacs v。27测试):
sudo apt install libxpm-dev libjpeg-dev libgif-dev libtiff-dev libgnutls28-dev
答案 1 :(得分:2)
出于完整性考虑,
# install essential build tools
sudo apt-get install build-essential
②下载emacs依赖项:
# get all dependencies of a previous emacs version
sudo apt-get build-dep emacs24
./configure
make
答案 2 :(得分:0)
最终做完
sudo add-apt-repository ppa:kelleyk/emacs
sudo apt-get update
sudo apt install emacs26