installing wine on Snow Leopard

For the most part Snow Leopard was an almost seamless upgrade from Leopard for me. Whenever there’s a major OS X update, some things take a little while to catch up. So I have some understanding when lower level tools require some extra steps to get working.

Wine took a bit of debugging and googling to figure out. Maybe this will help someone else.

Steps:

I pretty much followed these instructions, with a little variation at the end: http://davidbaumgold.com/tutorials/wine-mac/ Here’s a summary:

  1. install the Xcode dev tools from the Snow Leopard DVD. These are not installed be default. Make sure you select the X11 tools to be installed
  2. Install or upgrade MacPorts: http://www.macports.org/install.php
  3. Install wine with MacPorts:

>> sudo port install wine-devel +universal

Now that should work. However, I didn’t do it that way. I did it without the ‘+universal’ switch and that’s where my troubles began. If you are now in a place where you’re getting this error:

>>sudo port install wine-devel
Password:
---> Computing dependencies for wine-devel
---> Extracting wine-devel
Error: You cannot install wine-devel for the architecture(s) i386
Error: because /opt/local/lib/libexpat.dylib only contains the architecture(s) x86_64.
Error: Try reinstalling the port that provides /opt/local/lib/libexpat.dylib with the +universal variant.
Error: Target org.macports.extract returned: incompatible architectures in dependencies
Error: Status 1 encountered during processing.
You need to figure out what port uses that lib and force a universal upgrade. Here's how:
>>port provides /opt/local/lib/libexpat.dylib
/opt/local/lib/libexpat.dylib is provided by: expat

So expat is the culprit. Now lets get it upgraded:

>>sudo port upgrade --enforce-variants expat +universal

I ended up doing this about a dozen times, once for each of the wine dependancies that wine complained about. I eventually got wine installed.

I suppose you could script this by getting all the Wine deps and doing some copy and pasting. That would probably be quicker.

Update:

Here’s a post I found that streamlines the process a bit.

Previous Next

3 Comments (+add yours?)

  1. Rodrigo
    Nov 20, 2009 @ 16:11:49

    Thanks for the helpful instructions!

  2. Bartholomew Sanchez
    Jun 13, 2010 @ 00:07:37

    Thanks for the helpful instructions!
    +1

  3. Kree Terry
    Aug 30, 2011 @ 10:39:40

    how long should this take, ive had this thing installing for the past 2 hours.

Leave a Reply