TextMate 1 on Yosemite

I’m still using TextMate 1.x and therefore need Ruby 1.8 to use the subversion bundle.

It seems that the quickest workaround to get this working on OS X 10.10 Yosemite is to compile and install Ruby 1.8

Here are the brief instructions.

You will need a compiler. So, you’ll need XCode and maybe X11.

Get the source code:

mkdir -p ~/src/ruby
cd ~/src/ruby
svn co http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7_374
cd v1_8_7_374

Setup your environment

export PATH=/Developer/usr/bin:$PATH
export LDFLAGS=-L/opt/X11/lib
export CPPFLAGS=-I/opt/X11/include

Link autoconf so that it can be found

sudo ln -s /Developer/usr/share/autoconf /usr/share

Configure and build

./configure --prefix=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr
make install