wiki‎ > ‎

upgrade to snow leopard


Because I had so many problems every time I updated ubuntu, I decided to wait a bit - the 20th/02/2010 - before upgrading for the 1st my MAC OS from leopard to snow leopard.

I read following articles:


Upgrade went smoothly and took only 40 min. But a few things were broken ... I think I have spent 4-5 hours to fix them in total :-(

First thing, Run a system Update

mobile connect (3G modem)

I spent 1h on this one; I'd be happy to help if u have some problem

However, if you launch the Mobile Partner app and nothing happens (for my case), there are two workarounds. The recommended one (by Huawei) would be using the Dashboard Installer (see below).

The other way is to manually run the dashboard installation. Right click on the app and choose “Show Package Contents”. Then go to Contents > Resources > MobilePartner.mpkg. Run the MobilePartner.mpkg file and the installation should start. offers a 10€ / month 1Gb very cool dead. is blocked by the trust of O, S and B: f*ck that free market "perfection" ! Hopefully 3G license should change that in 2011. What I find so stupid is that mobile operators do not share antennas ... What if each electricity / water network had to build its own distribution network!!! Double f*ck this free market stupidity :-(((

mac port

To get rid of everything (and some of these directories are legacy) do the following:

sudo rm -rf \ /opt/local \ /etc/manpaths.d/macports \ /etc/paths.d/macports \ /Applications/DarwinPorts \ /Applications/MacPorts \ /Library/LaunchDaemons/org.macports.* \ /Library/Receipts/DarwinPorts*.pkg \ /Library/Receipts/MacPorts*.pkg \ /Library/StartupItems/DarwinPortsStartup \ /Library/Tcl/darwinports1.0 \ /Library/Tcl/macports1.0

Clean any partially-completed builds and remove any archives:

sudo port clean --work --archive all

Download the Snow Leopard version of MacPorts from their installation page. Run the installer off the dmg.

Sync MacPorts via

sudo port -v selfupdate
Install needed ports for development
sudo port install git-core +bash_completion
sudo port install tiff -macosx imagemagick +q8 +gs +wmf

sudo env ARCHFLAGS="-arch x86_64" gem install rmagick


mysql + import previous databases

  • Download and install the 64-bit MySQL 5.1.37 from

  • To use your existing databases with the new installation, you'll need
    to copy the contents of the old data directory to the new data
    directory. Make sure that neither the old server nor the new one is
    running when you do this.

    The fastest solution I found is a direct copy:

    sudo cp -R /usr/local/mysql-5.1.34-osx10.5-x86/data/ /usr/local/mysql/data/

    mysqld_safe as it is explained in did not work for me.

    After you have copied over the MySQL database files from the previous installation and have successfully started the new server, you should consider removing the old installation files to save disk space. Additionally, you should also remove older versions of the Package Receipt directories located in `/Library/Receipts/mysql-VERSION.pkg'.

    For Ruby on Rails run the following commands to update your gems: 

    sudo gem update --system 

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

    nokogiri (needed by cucumber)

    dlopen(/Library/Ruby/Gems/1.8/gems/nokogiri-1.3.3/lib/nokogiri/nokogiri.bundle, 9): no suitable image found.  Did find:
    /Library/Ruby/Gems/1.8/gems/nokogiri-1.3.3/lib/nokogiri/nokogiri.bundle: mach-o, but wrong architecture - /Library/Ruby/Gems/1.8/gems/nokogiri-1.3.3/lib/nokogiri/nokogiri.bundle
    Failed to load features/support/env.rb (LoadError)
    /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require'
    /Library/Ruby/Gems/1.8/gems/polyglot-0.2.9/lib/polyglot.rb:70:in `require'
    /Users/jeanmichel/Projects/betterplace/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:496:in `require'

    Fix it with:

    sudo port install libxml2
    sudo env ARCHFLAGS="-arch x86_64" gem install nokogiri --version 1.3.3


    linecache-0.43/lib/../lib/trace_nums.bundle, 9): no suitable image found.  Did find: (LoadError)

    To solve

    - git autocompletion
    - buggy snow leopard

    British Microsoft keyboard driver

    I am a software developer.

    I use a macbook and just upgrade to Snow leopard. I have wait for a few months because I wanted to avoid the upgrade "hell" ...

    Almost everything is working but I had the very unpleasant surprise to not to be able to use my keyboard! Very frustrating indeed.


    I use the Terminal every day. If I surf with google chrome, it's no problem with the "British - Microsoft" layout. When I switch to the Terminal, the keyboard layout changes automatically to "French" which is the keyboard installed on  the macbook ... The "British - Microsoft" layout is disabled ...

    It "only" happens with 64bits apps which is a major blocking.

    Being a software developper with 12 years of experience, I generally find a way. I have upgraded to Microsoft Desktop ( 7.1 which seems to be the latest version.

    I have also found and but I haven't managed to fix the problem ...


    1 possible solution:
    Thank you for submitting your incident online!
    Incident Details
    Incident Title:
    Natural Ergonomic keyboard 4000 does not work on snow leopard w/ 64 bits apps
    Support Request Number:
    Severity Rating:
    Severity C (Minimum business impact)
    Type of Response:
    Email to j
    Response time:
    Your expected response time is: Within 1 business day
    Your question was successfully submitted to Microsoft.
    A Microsoft support professional will contact you within the response time specified for the support that you chose.
    If you are using a spam blocker tool, make sure that you can receive e-mail messages from *

    Microsoft Natural Ergonomic Keyboard 4000 (All Languages)
    Product ID number:

    Swap Command & Option key:

    AP Grapher (wifi scanner)

    does not work on Snow. I am now using