Ruby - getting the latest on Leopard

Wanna upgrade Leopard's default ruby binary? Unlike most of the other Apple inclGNUsions like MySQL and PHP, they couldn't really cripple this one. Still, we all like the latest greatest stuff right?

Per usual, the process can be painful. To cut a long story short, with a new 64-bit MySQL and PHP installation, you need to do this (in addition to your other ruby upgrade steps) to get the MySQL part going.


env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

Otherwise - you'll bomb out as Leopard tries to compile a universal binary ie. a whole lot of binary stuff you don't want/need and can't use. The use of the --with-mysql-config flag is a nifty way to get these things to just WORK with your MySQL installation. Kudos to MySQL for this.

Comments

Popular Posts