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

MAMP Pro on Mac OS 10.10 Yosemite

MAMP Pro (2.2) has a problem with starting apache. You get an error in the crash log like:

Symbol not found: _iconv
 Referenced from: /usr/lib/libmecabra.dylib
 Expected in: /Applications/MAMP/*/libiconv.2.dylib
 in /usr/lib/libmecabra.dylib

To fix the problem. Have MAMP Pro use the envvars from the built in apache. So, move the MAMP one out of the way:

mv /Applications/MAMP/bin/apache2/bin/envvars /Applications/MAMP/bin/apache2/bin/_envvars