Installing Emacs 22 on Ubuntu

Aug072007

1.sudo apt-get install cvs
2.cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co emacs
3.OR Download the source from http://ftp.gnu.org/pub/gnu/emacs/emacs-22.1.tar.gz
4.install essential lib
1)png,ttif,jpeg...
sudo apt-get install libjpeg62-dev
sudo apt-get install libtiff4-dev
sudo apt-get install libungif4-dev
sudo apt-get install libpng12-dev


2)GTK
sudo apt-get install gnome-core-devel
sudo apt-get install libglib2.0-doc libgtk2.0-doc
sudo apt-get install devhelp
sudo apt-get install glade-gnome glade-common glade-doc
3)x-windows
sudo apt-get install xorg-dev
4)important!! in order to avoid error:annot open termcap database file for emacs
sudo
apt-get install libncurses5-dev
5.
./configure –with-gtk –enable-font-backend –with-xft –with-png –with-tiff –with-jpeg –with-freetype
6.if(cvs) make bootstrap
7.make
8.sudo make install