Forked from henrik/epic snow leopard upgrade guide.txt
Created
August 31, 2009 08:26
-
-
Save haraldmartin/178355 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== Epic Snow Leopard Upgrayyyyd Guide === | |
Son, you’re now living in the land of 64-bit systems. | |
That means that some of your 32-bit shit is now broken. | |
Not all is lost. | |
== Fixing MySQL weirdness | |
Upgrade your MySQL binary to the 64-bit one: | |
Bring down the existing mysqld if it’s running. | |
Install the binary: http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg | |
You want the Mac OS X 10.5 (x86_64) version. | |
Boot that sucker up: | |
$ sudo /usr/local/mysql-5.1.37-osx10.5-x86_64/bin/mysqld_safe | |
Bring your old data into the new database: | |
Create /etc/my.cnf and fill it with | |
[mysqld] | |
datadir=/usr/local/mysql-5.0.51b-osx10.5-x86/data | |
UPDATE: Point it to the data/ directory, otherwise it won't work | |
Bring over the data | |
$ sudo mysql_upgrade | |
Remove /etc/my.cnf | |
$ sudo rm /etc/my.cnf | |
== Update MySQL gem | |
$ sudo gem uninstall mysql | |
$ sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config | |
== Update the rest of your gems | |
$ sudo gem pristine --all | |
== 64 bit MySQL.prefpane | |
Download and install the prefpane from http://www.swoon.net/site/software.html | |
== Passenger.prefpane | |
(instructions from David Estes, http://www.redwindsw.com/) | |
Download the RubyCocoa 0.13.2 Dmg file for 10.5 | |
http://sourceforge.net/projects/rubycocoa/files/RubyCocoa/0.13.2/RubyCocoa-0.13.2-OSX10.5universal.dmg/download | |
move the pkg file to the Desktop and you need to edit the Info.plist file IFRequirementDicts Item 1 Test Operator to = as opposed to < (<) | |
Run the pkg file after this has been saved | |
After this is completed and RubyCocoa is successfully installed. the Passenger Phusion Pref Pane should work | |
== References | |
http://stackoverflow.com/questions/991708/rails-mysql-and-snow-leopard | |
http://www.gregbenedict.com/2009/08/29/fixing-ruby-gems-mysql-and-passenger-phusion-on-snow-leopard-10-6/ | |
http://afreshcup.com/2008/10/06/upgrading-mysql-50-to-51-on-os-x/ | |
http://blog.costan.us/2009/07/rebuild-your-ruby-gems-if-you-update-to.html | |
http://norbauer.com/notebooks/code/notes/snow-leopard-upgrading-for-rails-developers | |
http://trac.macports.org/wiki/Migration |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment