Mon, 24 Sep 2007

How to compile cvs emacs in a fresh ubuntu 7.04 installation

Once you've installed ubuntu 7.04 the very next thing you need to do is compile cvs emacs, right? Of course. Here's how.

First, to compile programs you need various development libraries (and you may want to grab some optional goodies):

sudo apt-get install build-essential libc6-dev libgtk2.0-0
libgtk2.0-bin libgtk2.0-common libgtk2.0-dev libjpeg62-dev libjpeg62
libncurses5-dev libpng12-dev libpng12-0 libsm-dev libtiff4-dev
libtiff4 libx11-dev libxext-dev libxmu-dev libxmu-headers libxpm-dev
libxt-dev xlibs-dev libungif4-dev flashplugin-nonfree gnomesword
sword-language-pack-en sword-text-web

get cvs so you can checkout emacs

mkdir ~/software
cd ~/software
wget http://ftp.gnu.org/non-gnu/cvs/source/stable/1.11.22/cvs-1.11.22.tar.gz
tar xvf cvs-1.11.22.tar.gz
cd cvs-1.11.22/
./configure
make
sudo make install

get texinfo so you'll have documentation in emacs

cd ~/software
wget http://ftp.gnu.org/gnu/texinfo/texinfo-4.11.tar.gz
tar xvf texinfo-4.11.tar.gz
cd texinfo-4.11/
./configure
make
sudo make install

checkout the latest emacs and compile (I hate the gui scrollbars)

cd ~/software
cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co emacs
cd emacs
./configure --without-toolkit-scroll-bars
make bootstrap

I run emacs from its src dir by putting this in my ~/.bashrc:

PATH=/home/billw/software/emacs/src:$PATH

Note that you should check gnu.org for the latest versions of cvs and texinfo. The entire process from inserting the ubuntu install cd in a bare wiped machine to launching a freshly-compiled emacs took 45 minutes this evening.

A facility for quotation covers the absence of original thought.—Lord Peter Wimsey

Left column Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.