0

I know that I can run sudo apt-get install emacs25, but (for reasons I don't want to get into) I want to build Emacs from source.

In the past, in order to do this, I've had to apt-get install Debian packages required to build Emacs, but this time I cannot find any up-to-date and authoritative list of what those packages are for the latest version of Emacs.

Any information on this would be appreciated.


FWIW, the following (based on the INSTALL file included with the Emacs source) failed immediately:

% apt-get build-dep emacs25
Reading package lists... Done
E: Unable to find a source package for emacs25

EDIT: Below is what I have in my /etc/apt/sources.list file:

deb       http://http.us.debian.org/debian                 stretch           main   contrib   non-free
deb-src   http://http.us.debian.org/debian                 stretch           main   contrib   non-free

deb       http://http.us.debian.org/debian                 stretch-updates   main   contrib   non-free
deb-src   http://http.us.debian.org/debian                 stretch-updates   main   contrib   non-free

deb       http://security.debian.org/                      stretch/updates   main   contrib   non-free
deb-src   http://security.debian.org/                      stretch/updates   main   contrib   non-free
  • Do you have deb-src in your /etc/apt/sources.list? unix.stackexchange.com/questions/158395/… – npostavs Aug 20 '17 at 22:20
  • @npostavs: Yes, thanks (I've updated my answer to address your comment) – kjo Aug 20 '17 at 23:47
  • Huh. Well I suppose the build-dep command would give you the same as what's listed at packages.debian.org/source/stretch/emacs25 – npostavs Aug 21 '17 at 0:27
  • Note that the particular packages required depend on how you build Emacs. Are you enabling or disabling any of the configure options? If so, give us details. – phils Aug 21 '17 at 4:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.