4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

TextMate 2 のインストール

Posted at
  • 覚書なのであとでちゃんと書く

ダウンロード

$ git clone https://github.com/textmate/textmate.git

必要なライブラリのインストール

$ brew install --HEAD https://raw.github.com/adamv/ homebrew-alt/master/head-only/ninja.rb
$ brew install ragel boost multimarkdown hg

Build

$ ./configure && ninja

エラー発生

Shared/PCH/prelude.cc:30:10: fatal error: 'boost/optional.hpp' file not found
#include <boost/optional.hpp>

ヘッダが見つからないと言われたので

diff --git a/target b/target
index 1c418e9..e1c0d9c 100644
--- a/target
+++ b/target
@@ -7,6 +7,7 @@ FLAGS += -DNS_BUILD_32_LIKE_64 -D'NULL_STR="\uFFFF"'
 FLAGS += -Wall -Wwrite-strings -Wformat -Winit-self -Wmissing-include-dirs -Wno-parentheses -Wno-sign-compare -Wno-switch
 FLAGS += -Wno-address-of-temporary
 FLAGS += -IShared/include
+FLAGS += -I/usr/local/Cellar/boost/1.49.0/include
 
 # FLAGS += -D_GLIBCXX_DEBUG
 FLAGS += -DNDEBUG -Os

brew でインストールした boost の path を追加

もう1回Build

$ ./configure && ninja

Application にコピー

$ cp -r ~/build/TextMate/Applications/TextMate/TextMate.app /Applications/

TextMateの起動

$ open /Applications/TextMate.app/
4
4
2

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?