Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

build emacs and gnutls not found

Tags:

emacs

ubuntu

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.

like image 736
YunYanan Avatar asked Oct 09 '18 13:10

YunYanan


3 Answers

The error message tells you two ways in which to solve your problem.

  1. Install the gnutls development package. You can find it by doing: apt-cache search 'libgnutls.*-dev', and then install it with apt-get.
  2. Link without gnutls, a la ./config --prefix=/usr/local/emacs --with-gnutls=no
like image 185
nega Avatar answered Nov 13 '22 21:11

nega


The only thing that worked for me was installing pkg-config.

like image 15
Derek Montes de Oca Avatar answered Nov 13 '22 21:11

Derek Montes de Oca


Fixed on CentOS:

yum install gnutls-devel
like image 7
rocksfrow Avatar answered Nov 13 '22 21:11

rocksfrow