LoginSignup
5
6

More than 5 years have passed since last update.

El Capitanで Emacs-24.5 をビルドして動かす

Last updated at Posted at 2015-10-01

Yosemite から El Capitan に移行すると Emacs.app が起動しなくなったので、動かすためにやった手順を。

といっても、ほとんどこの記事で書いた通り。

環境

  • OSX 10.11.4
  • Xcode 7.3.1

ビルド、インストール

cd ~/src/emacs
curl -LO http://ftp.gnu.org/pub/gnu/emacs/emacs-24.5.tar.xz
curl -LO ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-24.5-mac-5.17.tar.gz
tar Jxvf emacs-24.5.tar.xz
tar zxvf emacs-24.5-mac-5.17.tar.gz
cd emacs-24.5
patch -p1 < ../emacs-24.5-mac-5.17/patch-mac
cp -R ../emacs-24.5-mac-5.17/mac mac
cp ../emacs-24.5-mac-5.17/src/* src
cp ../emacs-24.5-mac-5.17/lisp/term/mac-win.el lisp/term
cp nextstep/Cocoa/Emacs.base/Contents/Resources/Emacs.icns mac/Emacs.app/Contents/Resources/Emacs.icns
./configure --with-mac --without-x
make 
make install
cp -R mac/Emacs.app /Applications/Emacs.app
cd ..
curl -LO http://emacsformacosx.com/emacs-builds/Emacs-24.5-universal.dmg
open Emacs-24.5-universal.dmg
cp -R /Volumes/Emacs/Emacs.app/Contents/MacOS/bin-x86_64-10_9 /Applications/Emacs.app/Contents/MacOS/bin
umount /Volumes/Emacs

補足

make の時点で、 libxml/tree.h が見つからないエラーが出る人は、

xcode-select --install

やっておけば良い。 (もちろん Xcode がインストールされていることが必要)

Xcode は普段使いなので、指摘されて初めて気づいた...

更新履歴

  • 2015.5.9
    • 10.11.4 でビルドしなおしたついでに環境、emacs-mac patch のバージョン更新
    • patch のオプション修正
  • 2015.5.10
    • make 時のエラーについて追記
5
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
6