Requirements:
- OS X 10.9 (Mavericks) or above
- Access to an Admin account, with password
- An internet connection
- An hour or two
Step One - Install Xcode
Xcode is available for free on the
Mac App Store. Use the Mac App Store to install Xcode, and then run it and open the Preferences. Go to the Downloads tab, and if the "Command Line Tools" are available, install them. (If not, it means that they are already installed.)
Step Two - Install Homebrew
To install: just open up the Terminal and run this command:
Code: |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
The Terminal will tell you what it's about to do, and ask you if you want to proceed: press Enter to do so. The Terminal may then ask for a password: this is the password to the Admin account on your computer. As a security measure, the Terminal does not display anything as you type, not even asterisks
. 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.
When it's done, the Terminal will say that the installation was successful, and ask you to run brew doctor. Do as it suggests:
Note: If Homebrew tells you that you need to agree to the Xcode license, you can do that by running:
Code: |
sudo xcodebuild -license |
The Terminal window will fill up with the Xcode license: read it, type agree and hit enter to agree to the license.
Step Three - Install Homebrew cask
Homebrew uses an extension called Homebrew Cask to install other programs. Install the Cask extension by running:
Code: |
brew tap caskroom/cask |
Step Four - Install Required Casks
Wine needs both Java and XQuartz to run correctly, and the easiest way to install them is with Homebrew Cask. Run the following command:
Code: |
brew cask install java xquartz |
When Homebrew Cask is done installing both Java and XQuartz, it will stop displaying status messages and wait for you to type in a new command. Onto the next step!
Step Five - Install Wine using Homebrew
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:
Step Six - Install Windows Programs using Wine
Once you are in the correct directory, run the installer through Wine by running the following command in the Terminal:
Code: |
wine $INSTALLER.exe |
Where $INSTALLER is the name of the installer file. For example, if the installer file is named setup.exe, you would run:
XQuartz will open (if it isn't already), and soon you will see a regular graphical Windows installer. Click through it, and you're done!
Step Seven - Run Windows Programs using Wine
Open up the Terminal and run this to get to your Program Files folder:
Code: |
cd ~/.wine/drive_c/Program\\ Files/ |
Run ls to see what programs you have installed. Pick a program, and enter its directory using cd. (If the folder has a space in it, you must type a \\ before the space. For example, Program\\ Files. If you're having problems, try using tab autocomplete.) There should be a file that ends in .exe: this is the program file. Type this into Terminal:
Source: https://www.davidbaumgold.com/tutorials/wine-mac/