Fix Ruby on Mac OS X 10.4

December 01, 2005

Reading time ~1 minute

Mac OS X 10.4 comes with ruby 1.8.2, it seems to have a problem with OpenSSL which causes

1
switchtower
to hang when trying to connect to your server.

You can download the source code to Ruby 1.8.3, compile it and install it, but you’ll start getting weird errors in

1
gem
when you try to install some libraries.

The solution turned out to be to compile Ruby slightly differently. You need to pass some flags to configure:

1
./configure --enable-shared --enable-pthread

After configuring it,

1
make
ing it, and running
1
sudo make install
, I had what seemed to be a working Ruby installation. It installs to
1
/usr/local/bin
which is already in my path. Executing
1
hash -r
causes
1
bash
to re-scan the path, after which executing
1
ruby -v
correctly reports

1
ruby 1.8.3 (2005-09-21) [powerpc-darwin8.3.0]

After that I installed RubyGems-0.8.11 and the

1
rails
and
1
switchtower
gems, including all dependencies. The installation worked fine, and so did
1
switchtower
when I tested it.

I didn’t even need to remove Apple’s Ruby install.

If you do want to remove Apple’s installation of Ruby, you’ll want to back up and delete the following files and directories:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/usr/bin/erb
/usr/bin/irb
/usr/bin/rdoc
/usr/bin/ri
/usr/bin/ruby
/usr/bin/testrb
/usr/bin/gem
/usr/bin/gem_server
/usr/bin/gemwhich
/usr/bin/rake

/usr/lib/ruby/
/usr/lib/libruby.1.dylib
/usr/lib/libruby.dylib

/usr/share/ri/

MINI F54 (Clubman) rear seat repair

I had a minor issue with the centre rear seat of my MINI a few weeks ago. I pulled the catch so that I could drop down the middle section...… Continue reading

LS400 ride height sensor repair

Published on November 23, 2009

LS400 centre console illumination repair part 2

Published on November 22, 2009