Tuesday, June 9, 2015

Build Emacs from source

1. Get emacs from source

$ git clone git://git.savannah.gnu.org/emacs.git

2. Downloaded Packages

$ cd emacs $ ls
admin        ChangeLog.2   doc           leim     m4           nt
autogen.sh   config.bat    etc           lib      make-dist    oldXMenu
BUGS         configure.ac  GNUmakefile   lib-src  Makefile.in  README
build-aux    CONTRIBUTE    INSTALL       lisp     msdos        src
ChangeLog.1  COPYING       INSTALL.REPO  lwlib    nextstep     test

3. Check if you have require tool to build emacs

$ ./autogen.sh
Checking whether you have the necessary tools...
(Read INSTALL.REPO for more details on building Emacs)

Checking for autoconf (need at least version 2.65)...
Checking for automake (need at least version 1.11)...
Your system has the required tools.
Running 'autoreconf -fi -I m4' ...
configure.ac:757: installing 'build-aux/compile'
configure.ac:139: installing 'build-aux/config.guess'
configure.ac:139: installing 'build-aux/config.sub'
configure.ac:136: installing 'build-aux/install-sh'
configure.ac:136: installing 'build-aux/missing'
lib/Makefile.am: installing 'build-aux/depcomp'
Installing git hooks...
‘build-aux/git-hooks/commit-msg’ -> ‘.git/hooks/commit-msg’
‘build-aux/git-hooks/pre-commit’ -> ‘.git/hooks/pre-commit’
‘.git/hooks/applypatch-msg.sample’ -> ‘.git/hooks/applypatch-msg’
‘.git/hooks/pre-applypatch.sample’ -> ‘.git/hooks/pre-applypatch’
You can now run './configure'.

4. Configure

$ ./configure

5. Build emacs

$ make

6. Test Installation

$ src/emacs -Q

7. Deploy the new emacs on your machine

$ sudo make install

1 comment:

  1. The Emacs put together present at emacs for macosx is helpful for help me write my college essay community who don't aspiration to accumulate on their own.