The Complete Guide A to Z to Install Wine On Mac OS X
Every Mac user I know loves their Mac and wouldn’t trade it for the world. But every now and then, there is a Windows application that they would like to be able to run. Sure there are Mac apps out there that can enable you to run them, like Boot Camp and VMWare, but what if you just want to run a couple apps? Can you really justify buying software for that? I would imagine not, unless you just absolutely can’t do without it. This article takes you through the entire process from start to finish to get a working Wine environment on your Mac. Now, there are other ways to run Wine on Mac OS X, but I feel this is probably the most common. Plus, if you visit the support forums, most of those guys are running Wine this way, so the solutions they give usually apply to the command line. Once you have Wine setup this way, I think it will be easier to find help and support. Rather than having to try and figure out how to apply it to your particular install.
What is Wine?
Simply put, Wine is software that allows Mac OS X users and Linux users to run Windows applications on their computer. It is Open Source software and available as a free download.
Why use Wine?
Every now and then, Mac users find that there is an application that they would like to use, but it’s only available for Windows. Typically the only way to run Windows applications on a Mac is to use virtualization software such as VMWare or use Boot Camp. This can eat into your system resources and take up lots of space on your hard drive, plus this may not be how you want your computer set up.
It’s not guaranteed that the application you want to use will work with Wine. Wine is an ongoing project and the team is constantly updating it and making improvements. They do have a list of applications that you can search to see how compatible your application is. You can find it here http://appdb.winehq.org/. If you cannot find your application listed, don’t give up hope. This just means it’s not very popular. For the ones that are listed, they are usually accompanied by any issues or bugs that people have encountered and how well it works. When it’s all said and done, the best way to see if your application works, is to just try! Plus, there is a huge community that you can turn to for support.
There are a few prerequisites for this installation of Wine. There are tutorials available for each one of these requirements if you need help installing them.
1. Make sure you have an Intel-based Mac.
– Click on the Apple logo in the upper left hand corner of your menu bar and select “About This Mac”
– If you see Intel in the processor description, you are good to go.
2. Install XCode and XCode Command Line Tools.
If you are running OS X 10.9 Mavericks, then you will need to login to the Apple Developer site and download the XCode Command Line Tool for Mavericks, otherwise you will not be able to install Python27.
3. Java – If you don’t have it, you can download and install it for free. Make sure you get the appropriate for your version of OS X.
Step #1 – Install MacPorts
MacPorts is an open source software utility that simplifies the process of installing Wine. Typically, Wine would have to be built from scratch, compiled and installed. Which is one reason why a lot of people have avoided it. MacPorts takes care of this for you. Bottom line, it makes life a whole lot easier.
Go to the MacPorts website. Look under “Installing MacPorts” in the “Getting Started” section.
Choose the appropriate version. For this tutorial I’m using Mountain Lion.
Double click the .dmg file and run through the installation.
Install the following utilities by typing each one on a separate line and hitting Enter.
Open a terminal window and decide which install option you want to do.
You will be prompted for your administrator password. Type it and hit Enter.
At this point, the installation will take place. This can take a while, so be prepared.
Once it’s done, you’ll want to run a couple post-install scripts. Type the following command.
Open a new terminal window. Then type “ls” (without the quotes). You should see something like this.
Next, navigate to the Desktop by typing “cd Desktop”
Now type, this command.
Now type this command. It’s going to turn that winetricks file into an executable file.
Next, move it where it needs to be.
Lets use winetricks to install a few DLLs that I recommend having in your .wine prefix.
Open a terminal window and navigate to your newly created wineprefix.
Next, type this.
You’ll need to copy the installer for your software over to your Mac. Usually setup.exe or an .msi file.
Then you’ll open a terminal window and navigate to the directory where you copied it to.
To run the installer, type the following.
When it’s finished, navigate to the Program Files directory by typing:
Once there, find the directory that has your installation. When you do, type:
Type the following in a terminal window.
Enter you administrator password and you will see the update kick off.
Step #2 – Install Common Utilities Using MacPorts
Step #3 – Install Wine with MacPorts
For this step, I would recommend disabling Sleep Mode on your Mac. This process can take quite a while to complete. It will be downloading, compiling and installing Wine.
There are two different options here. The first one installs the latest official release of Wine. The second installs the very latest “beta” version. The Wine project moves pretty fast, so the developers publish “mini” versions in between official releases. These have bugs and issues that have been fixed so if you’re having trouble with a particular application you might want install this version. Otherwise, if you go with the official release, you’ll have to wait until a new official release is published.
For the latest “official” release
For the absolute latest beta version
You will need to reinstall XCode and XCode Command Line Tools before you can continue.
You should see this screen. If you were watching the install you may have seen it pass by. Simply run the two commands that are listed here.
Step #4 – Install Winetricks
Winetricks is truly the key to using Wine. It is a shell script utility that is used to download and install required Windows software. Normally you would have to find DLLs, runtime engines, fonts, etc and figure out how to install them. Winetricks simplifies this process by doing all that tedious work for you. What’s the difference between this and MacPorts? MacPorts installs open source software on your Mac. Winetricks installs Windows software in your Wine environment, or wineprefix.
Remember those utilities that you installed earlier? One of them was “wget” and is about to make this step super easy.
When it’s done, you should have a file name “winetricks” on your Desktop. You can run another “ls” command to check.
You can check to make sure it went there by typing “which winetricks” and it should display that path.
Step #5 – Let’s Explore What You’ve Accomplished
And do an “ls” command
Does that folder structure look familiar? It should. It’s basically what your Windows computer looks like. Anytime you run a winetricks script or install software, it goes here in the .wine directory. If you’d like to start with a fresh Wine prefix it’s easy to do simply by wiping out this directory with the following command.
Step #6 – Installing and Running a Windows Application
This is basically how you would install and run a Windows application. Keep in mind, that there may be dependencies that will need to be installed before it will run. One good rule of thumb is to pay attention to any software requirements. If your application requires .NET, then you will need to install that in your wineprefix first. Just as if you were installing it on your Windows computer.
If all is well in the world of Wine, you should see a window open that will take you through the installation process just as if you were on a Windows computer.
Step #7 – Updating Wine on Mac and Winetricks
Like I said before, Wine is constantly being updated by the development team. They have a long list of bugs to fix and new functions to add. One thing about the team is that they are exceptionally fast. You never have to wait very long for a newer version or release. With that being said, if for some reason your application doesn’t work or doesn’t fully work, you can always try again after a newer version is out. I have personally experienced this. I had an application that did not fully work and after updating to the next release, everything was working fine. I would recommend checking for an update every month or so, or even sooner. You can always go to the website and see if there is a new version out as well.
Winetricks is also updated constantly, so you’ll always want to make sure you have the latest version. To do so, simply run the same command that you used to install it in Step #4
Uninstalling Wine and MacPorts
If for some reason you decide you don’t like Wine and don’t want to use it, getting rid of it is just as easy.
Typing the following in a terminal window will uninstall Wine
If you installed Wine using the “wine-devel” then you will need to use that instead of just plain “wine” in the command and vice versa.
To uninstall MacPorts you can follow the documentation found on their website. It’s not that hard to do, but they already have the tutorial written 🙂 http://guide.macports.org/chunked/installing.macports.uninstalling.html
If you found this article useful, please give it a +1 and share it!