Apr 12 2010
∞
Installing 64-bit MySQL and Ruby gem on Mac OS X 10.6
- Download and install Mac OS X (x86_64) package, currently 5.1.45 from mysql.com
- Install MySQL.prefPane to start the server automatically.
- Download source.zip, currently 5.1.45 with MySQL sources.
- Copy the contents of “include” folder from sources to /usr/local/mysql/include.
- Install Rails gem:
env ARCHFLAGS="-arch i386 -arch x86_64"; sudo gem install mysql -v=2.7 \ -- --with-mysql-config=/usr/local/mysql/bin/mysql_config \ --with-mysql-dir=/usr/local/mysql \ --with-opt-include=/usr/local/mysql/include
sudo gem install ruby-mysql