XDXA

Blog / Mac OS X Snow Leopard Port Wine

Mac OS X Snow Leopard Port Wine

Currently, wine is not happy with my 64bit upgrade to Snow Leopard. Just for the record, I find no fault in either port or wine for this, because I was an early adopter. I upgraded port with a simple reinstall. (I know there are more elegant solutions than this, but I was being lazy.) After upgrading port, installing wine resulted in the following error:

Error: wine 1.0.1 is not compatible with Mac OS X 10.6 or later. Until wine 1.2 is released, please install wine-devel instead.

This is pretty straight­for­ward. Obviously, the next step was "port install wine-devel". However, I was promptly stopped with another error in the following format:

Error: You cannot install wine-devel for the architecture(s) i386

Error: because /opt/local/lib/libjpeg.dylib only contains the architecture(s) x86_64.

Error: Try reinstalling the port that provides /opt/local/lib/libjpeg.dylib with the +universal variant.

Error: Target org.macports.extract returned: incompatible architectures in dependencies

I'm not too familiar with port or the com­plex­i­ties of 64bit ar­chi­tec­tures working with 32bit binaries, but I do understand the principle behind OS X's universal (fat) binaries. After googling around a bit I discovered that the way to compile in the universal format is with the following command:

sudo port upgrade --enforce-variants jpeg +universal

The part that hung me up was figuring out which package was associated with that file. After digging around in the man page I found the following solution:

port provides /opt/local/lib/libjpeg.dylib

That's it! Just keep installing the de­pen­den­cies and retrying "sudo port install wine-devel". After about eight de­pen­den­cies are recompiled, you'll be finished. Good luck.

Microsoft Natural Ergonomic »