Mini howto: Emacs CVS installation

Share your own howto's etc. Not for support questions!

Mini howto: Emacs CVS installation

Postby Rodolfo Medina » 2006-08-04 14:21

Operating system: Debian GNU/Linux 3.1 r2 "Sarge".

After the Debian base installation, I had chosen the manual
packages selection and installed the following packages:

make gcc less x-window-system gnome-session gnome-panel nautilus gnome-applets gnome-control-center gnome-system-tools gnome-core epiphany-browser libc6-dev kernel-source-2.4.27



Downloading.

See the `Anonymous CVS Access' section of

http://savannah.gnu.org/cvs/?group=emacs

. I did:

# apt-get install cvs

. I connected to Internet, then from `/home/rodolfo' I did:

$ export CVS_RSH="ssh"
$ cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co emacs


. The above commands created the dir `/home/rodolfo/emacs'
in which the complete tree of source were downloaded.


Installation:

# apt-get instal gcc
# apt-get install cvs


. I have the complete Debian DVD set: two binaries and three sources.
My /etc/apt/sources.list is the following:

------------------------------------------------------------------
#deb file:///cdrom/ sarge main

deb-src cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official Source-3 (20060419)]/ unstable contrib main
deb-src cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official Source-2 (20060419)]/ unstable contrib main
deb-src cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official Source-1 (20060419)]/ unstable contrib main
deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-2 (20060419)]/ unstable contrib main
deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-1 (20060419)]/ unstable contrib main





# deb http://security.debian.org/ stable/updates main contrib
-------------------------------------------------------------------

. I did:

# apt-get build-dep emacs21
Reading Package Lists... Done
Building Dependency Tree... Done
Note, selecting libtiff4-dev instead of libtiff-dev
The following NEW packages will be installed:
autotools-dev build-essential dpatch dpkg-dev g++ g++-3.3 libice-dev
libjpeg62-dev liblockfile-dev libncurses5-dev libpng12-dev libpng3-dev
libsm-dev libstdc++5-3.3-dev libtiff4-dev libtiffxx0 libungif4-dev
libungif4g libx11-dev libxaw7-dev libxext-dev libxi-dev libxmu-dev
libxmuu-dev libxp-dev libxpm-dev libxrandr-dev libxrender-dev libxt-dev
libxtrap-dev libxtst-dev libxv-dev patch pm-dev render-dev texinfo x-dev
xaw3dg xaw3dg-dev xlibs-dev xlibs-static-dev zlib1g-dev
0 upgraded, 42 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/12.7MB of archives.
After unpacking 38.0MB of additional disk space will be used.
Do you want to continue? [Y/n]

. I said `yes'.
I copied the `emacs' source directory that I had downloaded into the ~/tmp dir,
then from `~/tmp/emacs':

$ ./configure

The '$ ./configure' process ended up with the following output:



Configured for `i686-pc-linux-gnu'.

Where should the build process find the source code? /home/rodolfo/tmp/emacs-cvs-2006.june.25/emacs
What operating system and machine description files should Emacs use?
`s/gnu-linux.h' and `m/intel386.h'
What compiler should emacs be built with? gcc -g -O2
Should Emacs use the GNU version of malloc? yes
(Using Doug Lea's new malloc from the GNU C Library.)
Should Emacs use a relocating allocator for buffers? yes
Should Emacs use mmap(2) for buffer allocation? no
What window system should Emacs use? x11
What toolkit should Emacs use? LUCID
Where do we find X Windows header files? /usr/X11R6/include
Where do we find X Windows libraries? /usr/X11R6/lib
Does Emacs use -lXaw3d? yes
Does Emacs use -lXpm? yes
Does Emacs use -ljpeg? yes
Does Emacs use -ltiff? yes
Does Emacs use -lungif? yes
Does Emacs use -lpng? yes
Does Emacs use X toolkit scroll bars? yes

configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib-src/Makefile.c
config.status: creating oldXMenu/Makefile
config.status: creating man/Makefile
config.status: creating lwlib/Makefile
config.status: creating src/Makefile.c
config.status: creating lisp/Makefile
config.status: creating lispref/Makefile
config.status: creating lispintro/Makefile
config.status: creating leim/Makefile
config.status: creating src/config.h
config.status: executing default commands
creating src/epaths.h
creating lib-src/Makefile
creating src/Makefile


. Then I did:

$ make bootstrap
(about 25 minutes)

# make install

If you have to run ./configure more than once
(e.g. because the first time there were problems),
do `$ make distclean' first and then `$ ./configure'.

. Then I removed the whole source directory `~/tmp/emacs'.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Updating.

. I copied the `emacs' source directory that I had downloaded into the ~/tmp dir,
then:

$ cd ~/tmp/emacs
$ cvs -z3 update -dP


. After updating I repeated the installation:

$ ./configure
$ make bootstrap
# make install
Rodolfo Medina
 
Posts: 35
Joined: 2006-05-06 10:39

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable