I just did a clean install of Yosemite. While reviewing my previous posts on getting up and running, I noticed some errors/missing information while following my own directions. I’ve edited those posts for clarity/omissions; however, my previous method of installing emacs via homebrew has been superceded by building it from source. This post details the steps to do so. It takes a bit longer, but allows me to keep up with current development. Caveat: following the master git repo of any software can potentially lead to a unstable/unusable build.
Also, rather than try to install every possible thing to cover every possible use case, I’ve moved to installing things as necessary. I’m a newbie to emacs, so my previous homebrew install of the Cocoa app included just about every possible configuration option; this one is much more minimal.
-imagemagick (allows image viewing)
-gnutls (allows communication via SSL, TLS, amd DTLS)
Git, imagemagick and gnutls can all be installed via homebrew. The last 2 no longer come bundled with Xcode so must be manually installed. This can be done either through
brew install autoconf and
brew install automake, or by compiling from source:
curl -O http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz
tar xf autoconf-latest.tar.gz
sudo make install
curl -O http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz
tar xf automake-1.14.tar.gz
sudo make install
2. get the source:
git clone git://git.savannah.gnu.org/emacs.git
3. build Emacs.app:
./configure –with-ns CFLAGS=”-I /usr/local/include/libxml2″
(As of 22 June 2015, –with-ns is no longer necessary)
./configure CFLAGS="-I /usr/local/include/libxml2"
open -R nextstep/Emacs.app
Drag this to Applications to find in Launchpad.
updating and rebuilding:
# discard stuff from last build
git reset --hard
# delete all of the last build stuff
git clean -xdf
Delete the app from Applications, then follow steps from #3.
comment by Offby1, referencing:
Author: Glenn Morris <firstname.lastname@example.org>
Date: 2015-06-22 22:03:33 -0400
* configure.ac (--with-ns): Enable by default on OS X.