在 Ubuntu 上构建 Emacs - 找不到库
Build Emacs on Ubuntu - libraries not found
我正在尝试安装 Emacs v. 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.
一切似乎都很好。我错过了什么?
为了完整性,
# 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
我最后做了:
sudo add-apt-repository ppa:kelleyk/emacs
sudo apt-get update
sudo apt install emacs26
如错误消息中所述,您实际上需要这些库的开发版本(在 Ubuntu 19.10 (Eoan Ermine) 上使用 Emacs v. 27 进行测试):
sudo apt install libxpm-dev libjpeg-dev libgif-dev libtiff-dev libgnutls28-dev
我正在尝试安装 Emacs v. 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.
一切似乎都很好。我错过了什么?
为了完整性,
# 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
我最后做了:
sudo add-apt-repository ppa:kelleyk/emacs
sudo apt-get update
sudo apt install emacs26
如错误消息中所述,您实际上需要这些库的开发版本(在 Ubuntu 19.10 (Eoan Ermine) 上使用 Emacs v. 27 进行测试):
sudo apt install libxpm-dev libjpeg-dev libgif-dev libtiff-dev libgnutls28-dev