---
layout: project
title: "Reminder: compiling Emacs24 on Debian Wheezy"
date: 2012-02-23 18:26:31 +0100
id: "0223"
---
$ # We will use snapshots from naquadah.org with patches
$ # Maintainer: Julien Danjou <acid(at)debian.org>
$ echo "deb-src http://emacs.naquadah.org/ unstable/" | sudo tee -a /etc/apt/sources.list
$ sudo apt-get update
$ # We already have everything to compile (make, gcc, etc) so we just need some headers
$ sudo apt-get install xorg-dev libjpeg8-dev libpng12-dev libtiff4-dev libgif-dev libncurses5-dev
$ cd /tmp ; apt-get source emacs-snapshot
$ cd emacs-snapshot-20120222/
$ ./autogen.sh
$ # We want Emacs as is with X support but no toolkits like gtk+/whatever; all in system folders
$ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --with-x --with-x-toolkit=no
$ make
$ sudo make install