I built emacs26 on Ubuntu16.04, when I executed ./config --prefix=/usr/local/emacs
, it showed like this:
configure: error: The following required libraries were not found:
gnutls
Maybe some development libraries/packages are missing?
If you don't want to link with them give
--with-gnutls=no
as options to configure
I tried to solve this problem many times, but failed. Who can help me, thank you very much.
The error message tells you two ways in which to solve your problem.
gnutls
development package. You can find it by doing: apt-cache search 'libgnutls.*-dev'
, and then install it with apt-get
.gnutls
, a la ./config --prefix=/usr/local/emacs --with-gnutls=no
The only thing that worked for me was installing pkg-config.
Fixed on CentOS:
yum install gnutls-devel
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With