Emacs 21 for Mac OS X
Latest News, FAQ, Files, Links, and other Resources.
Latest News


Obtaining and Building Emacs



Emacs Home Page

Emacs Project Page on Savannah

Emacs for Mac OS Classic Project Page

My OS X Programming Blog

Obtaining and Building Emacs 21

To obtain and build Emacs 21 on Mac OS X, basically all you need do is to follow the instructions at the Emacs CVS repository to obtain the source code and then follow the instructions in the files INSTALL-CVS and mac/INSTALL to build Emacs. Since the code checked out by CVS does not contain the compiled Lisp files, you must run make bootstrap instead of just make.

Note that the Emacs developers change this code in the CVS repository all the time! As such the most current version of code you checkout may not work correctly or may not even build at all. You should be prepared to put in some effort yourself to build and run it. To find out what the latest problems might be in the source code, read the emacs-devel mailing list. If you are a beginner, please don't post questions there; post to gnu.emacs.help instead. Also please read the FAQ and the News sections before you post for help.

Emacs for Mac OS X has been reported to build and run on both Mac OS X 10.1, 10.2, and 10.3. You will of course need the Developer Tools for your version of OS X, which you can download free of charge from the Apple Developer Connection website. You will also need to download and install the latest GNU texinfo package as described in the mac/INSTALL file.

The sequence of commands to obtain and build texinfo and Emacs (assuming that you already have Developer Tools installed) should look something like the following (updated 29/12/03). You may need to modify them for your system. If you are building on Panther, skip the steps for installing texinfo since Panther already installs it.

  curl -O ftp://ftp.gnu.org/gnu/texinfo/texinfo-4.6.tar.gz
  tar zxf texinfo-4.6.tar.gz
  cd texinfo-4.6
  sudo make install

cd .. export CVS_RSH="ssh" cvs -z3 -d:ext:anoncvs@savannah.gnu.org:/cvsroot/emacs co emacs (verify that the site's public key is 80:5a:b0:0c:ec:93:66:29:49:7e:04:2b:fd:ba:2c:d5) cd emacs ./configure --with-carbon --without-x make bootstrap sudo make install

To run Emacs, double-click the Emacs.app icon in the Finder or type the full pathname to .../mac/Emacs.app/Contents/MacOS/Emacs from a terminal window.

To build Emacs to run under X Window, change the ./configure line to

  ./configure --with-x --without-carbon

Note that to run Emacs under X Window, the environment variable DISPLAY needs to be set appropriately.

For more complete instructions and specialized methods of building Emacs, such as building it as an application bundle, please read the file mac/INSTALL. The instructions above are provided merely as a courtesy. They do not replace studying the install files and manuals.

Copyright © 2003 Andrew Choi <akochoi-emacs at shaw.ca> Created with
emacs Made on a Mac