LoginSignup
4
4

More than 5 years have passed since last update.

mac で emacs24.3 をインストールする

Posted at

Xcode

App Store で Xcode をインストールしておく
Xcode の Preferences->Download で Command Line Tool を落としておく

wget が使えなかったので使えるようにする

こちらの記事を参考にして入れる
http://www.absolute-keitarou.net/blog/?p=296
curl -O http://ftp.gnu.org/pub/gnu/wget/wget-1.13.4.tar.gz
tar zxvf wget-1.13.4.tar.gz
./configure –with-ssl=openssl
make
sudo make install

emacs インストール

こちらの記事を参考
http://x3mismatch.blogspot.jp/2013/12/mac-os-x-mavericksemacs243.html
wget http://ftp.gnu.org/pub/gnu/emacs/emacs-24.3.tar.xz
tar xvf emacs-24.3.tar.xz
tar: Error opening archive: Child process exited with status 254Child process exited with status 254

解凍できなかった
xzモジュールが足りないようなので入れる
ここ参考
http://apple.stackexchange.com/questions/80269/child-process-exited-with-status-254-error-when-extracting-a-tar-xz-file
http://tukaani.org/xz/xz-5.0.5.tar.gz
tar xvf xz-5.0.5.tar.gz
./configure
make
sudo make install

これで再度解凍
tar xvf emacs-24.3.tar.xz
パッチがあるみたいなのでおとして当てる
wget http://svn.sourceforge.jp/svnroot/macemacsjp/inline_patch/trunk/emacs-inline.patch
patch -p0 < emacs-inline.patch

make してインストールする
./configure --with-ns --without-x -with-wide-int && make -j4 && make install
/bin/sh: autoheader: command not found

autoheader がないっておこられる
homebrew で入れれるみたいなのでいれる
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
brew install autoconf

再度make
make -j4 && make install
アプリケーションフォルダにコピー
cp -R nextstep/Emacs.app/ /Applications/Emacs.24.3app/
ターミナル上で起動できるように .bashrc とかに記述
alias emacs="/Applications/Emacs.app/Contents/MacOS/Emacs -nw"

4
4
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
4
4