Install MySQL on Snow Leopard including Rails Gem
{ Posted on 8:21 AM
by Ben
}
After much pain, I've finally got MySQL installed on Snow Leopard including the MySQL 2.8.1 gem:
1) I installed the x86_64 package from:
http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg
2) Then ran:
sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include
This was to fix the following problems I was continually having:
Rails:
uninitialized constant MysqlCompat::MysqlRes
1) I installed the x86_64 package from:
http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg
2) Then ran:
sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include
This was to fix the following problems I was continually having:
Rails:
uninitialized constant MysqlCompat::MysqlRes

