02 Nov 2009 3 Comments
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.
I pretty much followed these instructions, with a little variation at the end: http://davidbaumgold.com/tutorials/wine-mac/ Here’s a summary:
- 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
- Install or upgrade MacPorts: http://www.macports.org/install.php
- 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
---> 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.
Here’s a post I found that streamlines the process a bit.
3 Comments (+add yours?)
Leave a Reply