Upgrading to Snow Leopard
Somewhat following the instructions from rubyonrails.org:
- Install Snow Leopard from DVD.
- Install XCode tools from Optional Installs on same DVD.
- Start 1Password – install 1Password3 when prompted.
- Evernote Safari clipper seemed to be overwriting the 1Password button in Safari. Upgraded Evernote to release candidate, still had problem. Disabled Evernote Safari Clipper. Also enabled “Show in Top Menu” in 1Password preferences.
- Installed updates including 10.6.1 from Software Update. (restart required).
- Installed latest MySQL 10.5 x86_64 package: mysql-5.1.39-osx10.5-x86_64.dmg. Installed startup task then pref-pane. Started server. Set root password with sudo mysqladmin password <password>.
- Reinstalled mysql gem for x86_64 architecture only:
sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
- Reinstalled iStat Menus.
- Installed MacPorts-1.8.0.pkg. Removed all ports.
port installed > myports.txt sudo port clean installed sudo port -f uninstall installed sudo port install unison sudo port install git-core +svn sudo port install ImageMagick
Upgraded SuperDuper to version 2.6.1 as it failed to backup Snow Leopard.
Debugging
Got this error when trying to run cucumber/webrat:
dlopen(/Users/sam/.gem/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/nokogiri.bundle, 9): no suitable image found. Did find: /Users/sam/.gem/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/nokogiri.bundle: mach-o, but wrong architecture - /Users/sam/.gem/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/nokogiri.bundle
To fix it I uninstalled then reinstalled the nokogiri gem.
Got this error when trying to run cucumber/webrat/selenium:
==> Waiting for rails application server on port 3001... /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5.1/bin/../lib/http11.bundle: dlopen(/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5.1/bin/../lib/http11.bundle, 9): no suitable image found. Did find: (LoadError) /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5.1/bin/../lib/http11.bundle: no matching architecture in universal wrapper - /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5.1/bin/../lib/http11.bundle
To fix it I uninstalled then reinstalled the mongrel gem.
On a different machine I got this error when trying to run cucumber/webrat/selenium:
dyld: Library not loaded: /usr/lib/libsqlite3.dylib Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security Reason: Incompatible library version: Security requires version 9.0.0 or later, but libsqlite3.dylib provides version 1.0.0
Per http://stackoverflow.com/questions/1364523/firefox-bin-quit-unexpectedly-while-running-selenium-test, I moved /Applications/Firefox.app/Contents/MacOS/libsqlite3.dylib out of the way and that fixed it. It is not clear why this happened on one machine (with Firefox 3.0.13 which I upgraded to 3.5.3 while debugging) but did not happen on another machine (Firefox 3.0.14).
