1

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
kjo
  • 3,145
  • 14
  • 42
  • Do you have `deb-src` in your `/etc/apt/sources.list`? https://unix.stackexchange.com/questions/158395/apt-get-build-dep-is-unable-to-find-a-source-package – 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 https://packages.debian.org/source/stretch/emacs25 – npostavs Aug 21 '17 at 00: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 04:05

0 Answers0