Skip to content

Instantly share code, notes, and snippets.

@somebox
Created September 10, 2009 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save somebox/184801 to your computer and use it in GitHub Desktop.
Save somebox/184801 to your computer and use it in GitHub Desktop.
=== Snow Leopard, Ruby and MySQL
I was finally able to get the mysql 2.8.1 gem after a snow leopard upgrade. After trying many different builds, 64 vs. 32, etc, I ended up:
- removing the existing mysql bundle
$ sudo rm /Library/Ruby/Site/1.8/universal-darwin10.0/mysql.bundle
- installing 64-bit mysql 5.0 from the .dmg download
- building the gem with this command:
$ sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment