In particular, trying to install a large program like Wine without the help of a package manager would be tremendously difficult. Fortunately, Homebrew itself is simple to install: The Terminal will tell you what it's about to do, and ask you if you want to proceed: The Terminal may then ask for a password: Type your password anyway, and press Enter.
If you get some kind of error, it might be because the Admin account doesn't have a password set. Setting a password is required. Installing Homebrew should only take a few seconds or minutes depending on the speed of your internet connection. When it's done, the Terminal will say that the installation was successful, and ask you to run brew doctor. Do as it suggests:.
This will make Homebrew inspect your system and make sure that everything is set up correctly. If the Terminal informs you of any issues, you'll need to fix them yourself, and then run brew doctor again to verify that you fixed them correctly. When everything is set up correctly, you'll see the message Your system is ready to brew , and you can move on to the next part of the tutorial.
If Homebrew tells you that you need to agree to the Xcode license, you can do that by running:. The Terminal window will fill up with the Xcode license: Wine needs XQuartz to install correctly, and Homebrew won't automatically pull in this dependency for you.
However, we can easily ask Homebrew to install it by running the following command:. Let's break down this command into parts. A GUI application is an app that you can see running, as opposed to invisibly running in the background. We only need to include the word cask because XQuartz is a GUI application — by default, you use Homebrew to install applications that run on the command line, and don't have a graphical user interface.
When you run this command, Homebrew will install the Cask extension automatically, and then Homebrew Cask will download and install XQuartz for you.
Lots of installers installing other installers! Homebrew will display messages and progress bars on the Terminal to let you know what it's doing. When it's done installing XQuartz, it will stop displaying messages and wait for you to type in a new command. When that happens, move on to the next step! Now we get to actually install Wine! We'll let Homebrew do all the work, all you have to do is tell it what you want with this command:.
You'll notice that this command is almost identical to the last one, except we're leaving out the word cask because Wine doesn't have a graphical user interface , and we're replaced xquartz with wine. When you run this command, Homebrew will start automatically downloading and installing software onto your computer. Wine needs several different pieces of software to run correctly, not just XQuartz, so Homebrew is going to first install those other dependencies before it installs Wine.
Just as before, Homebrew will display messages and progress bars on the Terminal to let you know what it's doing. This step of the tutorial might be very quick, or it might take a long, long time. You see, software like Wine normally needs to be compiled: This process usually takes a long time — for a program like Wine and all of its depedencies, it might take an hour or two, even for a fast, modern computer. However, the people who make Homebrew know that people don't like to wait, and they've pre-compiled most of the software available in Homebrew, including Wine.
Your computer will automatically download the pre-compiled versions if it is able to, which will make the installation process go a lot faster. However, if your computer is in an unusual configuration, it may not be able to use the pre-compiled versions. If that's the case, it will have to compile the software for itself, which will still work, but it will take awhile.
If you get an error message at this step that indicates that Homebrew has accidentally downloaded a file that is empty or incorrect, you can delete Homebrew's downloaded files by running brew cleanup. Then try running this step again, and Homebrew will redownload the file — hopefully correctly!
When Homebrew is finished installing Wine, it will stop displaying messages and wait for you to type in a new command. You may see a message that mentions a "Mac driver" and an "X11 driver". This message is related to that XQuartz thing we installed earlier, and it's an advanced configuration for people who like to adjust settings on their computers. If you just want to use Wine and don't care about adjusting settings, you can ignore that message.
To install a Windows program, first download the installer file: Remember the location you put it, and open up the Terminal again. Once you are in the correct directory, run the installer through Wine by running the following command in the Terminal:.
For example, if the installer file is named setup. A window will pop up with a regular graphical Windows installer. Click through it, and you're done! Run ls to see what programs you have installed. Pick a program, and enter its directory using cd. If you're having problems, try using tab autocomplete.
There should be a file that ends in. Type this into Terminal:. EXE , you would run:. The program will pop up in a new window, ready to use! Enjoy using Windows on your Mac, freely and legally! Many people want to be able to run Windows programs the same way they run other programs on the Mac: Wine isn't specifically designed to support this, but with a little trickery, we can make it do what we want.
Wine prints out error messages in the Terminal when something goes wrong. By launching Windows programs via a Dock icon, you are sidestepping the Terminal, which means that if something does go wrong and Wine has to quit, it will not be able to tell you what the problem was.
The first step to solving a problem is knowing what it is, so without running Wine from the Terminal, you won't be able to fix it, and neither will anyone else. Running from the Dock is fine as long as your program seems to be working correctly, but if it crashes, the first thing you should try is running it from the Terminal instead: In order to launch a Windows program via the Dock, we're going to write an AppleScript that launches the program for us, and then put that AppleScript in the Dock.
Essentially, we're writing a program ourselves! Don't worry, it's easy enough.
There is a program on your computer that is designed for helping you write AppleScripts: Open up the Script Editor. Get it? So clever, those open source folks. Wine actually runs as more of a translator between the instructions in the PC program and the Mac operating system. It basically fools Windows into thinking they are running in a Windows environment, without actually emulating that environment and taking the same performance hit like Parallels does. Wine has the benefit of a large, open-source community for support as well, which means it will continue to get better and improve compatibility for a lot of games along the way.
Speaking of compatibility, not all PC games are going to work with Wine. To find out if the game you want to try to install on your Mac via Wine will work, head over to the Wine HQ website , where they have an entire database full of the games and applications that will work with Wine.
They even have levels of how well these work with Wine, including Platinum, Gold, and Silver levels of compatibility. I chose Guild Wars: All the examples from here on out will be from my own experience installing Wine to play Guild Wars on my Mac Mini To find out what kind of Mac you have, click on the Apple menu in the upper left corner of your screen, choose About This Mac , and it will tell you. Install it as you would any other package file. How to get p YouTube videos in iPad Safari.