Brandon Fouts

snow leopard upgrade

both of my snow leopard installs went smoothly.  as with all upgrades some things break or the versions of apps on the old OS version you had now become incompatible.  i started tweeting about different fixes but there are quiet a few things that just do not fit in 140 characters and it got annoying.  the best thing about this upgrade is my 24 inch $139 hd monitor's dvi connection now works and the quality is phenomenal.  anyways, so far this is what i've found that is broken: cisco vpn, mysql, postgres and menumeters.  i will find other stuff i am quiet sure!

menumeters

ragingmenace will have an update soon for menumeters.  islayer will push a new build soon of istats as well.  whoever gets it first gets my business.

ciscso vpn

the cisco vpn is an easy fix, just reinstall the dmg.  if you use shimo you will also need to upgrade to the latest AFTER upgrading the cisco vpn (shimo is awesome if you use cisco vpn's frequently).

mysql

i have a few test mysql db's nothing important and nothing i couldn't setup within a few minutes.  so i just wiped my mysql install and did the following.  (if you have important stuff back it up and restore or go find a better solution than mine)

$ wget http://mysql.mirrors.pair.com/Downloads/MySQL-5.1/mysql-5.1.37-osx10.5-x86_64.dmg

getting the gem working was tricky to find the right solution.  this blog helped but here was my final solution.

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

postgres

same as mysql..i don't have a lot so i just wiped and reinstalled.  this is the BEST place to get postgres for mac os x.  just a heads up though...if you rely on the prefpane to start and stop postgres its broken.  they are working on a fix.  the downside to this is you cannot start postgres in that easy way you are used too.  So if you need to start it up:


$ sudo su -
$ export DATA_PATH=/Library/PostgreSQL8/data
$ export LOG_FILE=/Library/PostgreSQL8/log/PostgreSQL8.log
$ su -m postgres -c "/Library/PostgreSQL8/bin/pg_ctl start -D $DATA_PATH -l $LOG_FILE -o -i"

OR as recommended by a tejus in the comments...setup aliases.

getting the gem working:


$ sudo su -
$ export PATH=/Library/PostgreSQL8/bin:$PATH
$ gem install postgres -- --with-pgsql-dir=/Library/PostgreSQL8

i am sure for the above there are better, faster solutions but for me this worked and really didn't take all that long.  i'm sure the next few days i'll find new little hidden brokeness and if i find anything interesting i'll post it.

update 1

found the following stuff is broke. mac ports, passenger and passenger pref pane.  props to greg benedict.  to fix do the following:

mac ports

reinstall ports for 10.6 i have seen a lot of recommendations for just ditching your entire port install base but i opted not to at this time.  another method is the following:


$ sudo port selfupdate
$ sudo port sync
$ sudo port upgrade --force installed

update on macports

it is all sorts of screwed up after further digging.  here is what i did (not recommending this but it fixed my issues).  the issues were that i couldn't update ports and had all sorts of failures:


$ sudo port installed
this lists out all your installed ports so you can reinstall them.
$ sudo rm -rf /opt/local
reinstall ports
$ sudo port sync
start installing (and waiting for a LONG time).

passenger

if you are getting segfaults or its not working.

$ sudo gem uninstall passenger
$ sudo env ARCHFLAGS="-arch x86_64" gem install passenger
$ sudo passenger-install-apache2-module

follow the onscreen instructions.  its important that if you had an older version that you change your /etc/apache2/http.conf to use the latest version (time of writing is 2.2.4) and then run the following:


$ sudo apachectl restart

passenger prefpane

if you are not using the passenger prefpane you are wasting dev cycles. if you don't have it get it here.  if you want to get it working do the following:


$ wget http://sourceforge.net/projects/rubycocoa/files/RubyCocoa/0.13.2/RubyCocoa-0.13.2-OSX10.5universal.dmg/download

  • move the pkg to some folder
  • right-click the pkg and select "Show Package Contents"
  • navigate to Contents/ and double-click Info.plist
  • Change IFRequirementDicts -> Item 1 -> TestOperator to =
  • now install the package

Now run:

$ sudo apachectl restart

update 2

textmate keys not working any longer?  do one of two things:

option a

opt for cutting-edge updates in textmate.  open text preferences and go to software update and set "watch for" Cutting-Edge:

Screen shot 2009-08-30 at 9.33.03 PM-1

option b

install the snow leopard compatibility patch the ticket for the issue is here.

update 3

if certain gems stop working use this script to find the ones to uninstall and reinstall.  it will spit out the gem commands for both operations.  credits go to

 

definitely how i feel