How to install Wine on OS X El Capitan

Wine OS X El Capitan

In a previous article, I have shown you how to install OS X El Capitan GM (golden master) or other Beta version without developer account. As I sometime still need Windows-based program such as Mikrotik Winbox, I need to have WINE (Windows Emulator) on my Mac. In this post I would like to guide you how to install Wine on OS X El Capitan. At the time of this writing, the latest version of OS X is OS X 10.11 El Capitan GM (Golden Master).

UPDATE: If you also want to install Microsoft Visio on Mac, you can follow our post how to install Visio on Mac running OS X El Capitan.

Requirements

1. Latest version of OS X El Capitan (Golden Master build at this time of this writing)
2. Latest version of Xcode (Xcode 7.0 GM, you can download it from https://imzdl.com/osx.html if you are not a registered Apple developer.
3. Homebrew package manager for OS X. We will install Wine using Homebrew package manager.

I assume that you have done installing point 1 and 2 in the requirements above. So we just go to install Homebrew package manager.

Install Homebrew

Run the script below to install Homebrew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Once it is installed, run the below command to install Wine.

Install WINE using Homebrew

The format to install package using brew is “brew install package_name”:

$ brew install wine
Warning: You are using OS X 10.11.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
==> Downloading https://downloads.sourceforge.net/project/wine/Source/wine-1.6.2.tar.bz2
Already downloaded: /Library/Caches/Homebrew/wine-1.6.2.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/wine/1.6.2 --without-mpg123
==> make install
==> Downloading https://downloads.sourceforge.net/wine/wine_gecko-2.21-x86.msi
==> Downloading from http://ncu.dl.sourceforge.net/project/wine/Wine%20Gecko/2.21/wine_gecko-2.21-x8
######################################################################## 100.0%
==> Downloading https://downloads.sourceforge.net/wine/wine-mono-0.0.8.msi
==> Downloading from http://ncu.dl.sourceforge.net/project/wine/Wine%20Mono/0.0.8/wine-mono-0.0.8.ms
######################################################################## 100.0%
==> Caveats
You may want to get winetricks:
  brew install winetricks

The current version of Wine contains a partial implementation of dwrite.dll
which may cause text rendering issues in applications such as Steam.
We recommend that you run winecfg, add an override for dwrite in the
Libraries tab, and edit the override mode to "disable". See:
  https://bugs.winehq.org/show_bug.cgi?id=31374

By default Wine uses a native Mac driver. To switch to the X11 driver, use
regedit to set the "graphics" key under "HKCUSoftwareWineDrivers" to
"x11" (or use winetricks).

For best results with X11, install the latest version of XQuartz:
  https://xquartz.macosforge.org/
==> Summary
?  /usr/local/Cellar/wine/1.6.2: 2057 files, 196M, built in 15.5 minutes

To run a Windows program, use “wine /path/to/program.exe”.

Example below is to run Mikrotik Winbox using wine

wine /path/to/winbox.exe

Wine OS X El Capitan

Hopefully this post is helpful for anyone who want to install wine on OS X El Capitan.

17 Comments

  1. Maddie

    HI! I was able to complete all except that it does not want to load wine. this is what I receive.. I am running CATALINA though (:( ) and the latest version fo XCode 11.13.1, I think. I downloaded from the App store today.

    *********************************Start of error *************************

    brew install wine
    Error: No available formula with the name “wine”
    ==> Searching for a previously deleted formula (in the last month)…
    Error: No previously deleted formula found.
    ==> Searching for similarly named formulae…
    These similarly named formulae were found:
    twine-pypi winetricks winexe
    To install one of them, run (for example):
    brew install twine-pypi
    ==> Searching taps…
    ==> Searching taps on GitHub…
    Error: No formulae found in taps.

    ***************************End of Message ***********************

    • Hi, wine has moved to cask so to install wine you need to command ‘brew cask install wine-stable’

  2. sorry for the delay replying your comment. When you run this script it will install Homebrew as in the image below. Fist it will download and install Command Line Tools for Xcode as its dependency. Once installed it will download and install Homebrew into your OS X.

  3. ryan

    Hey, I am not great with tech. I open terminal and copy and paste that command and press enter and nothing happens?

    • Hi ryan, which command you run in Terminal and nothing happened? You must install Homebrew first before executing ‘brew install wine’

  4. Dylan

    Hello,

    If I used this method for an installer (let’s say for example Steam setup), is there a way of using that to download and could I access the .exe it “installs” with the installer (if so, how would I do that)? Or would you have to use this method to open the program every time you want to so it’d only be the installer running everytime? Thanks!

  5. raj naik

    how to start my applications with wine

  6. Ross Healy

    i have done everything up to here just not 100% sure what to type in terminal from your instructions Once it is installed, run the below command to install Wine. The format
    to install package using brew is “brew install package_name”:

    • In this tutorial I use Homebrew to install packages in OS X. We can also use ‘Macports’ to install packages in OS X however I prefer to use Homebrew.

      To install a package using Homebrew, the syntax is ‘brew install a_package_name’. Change the a_package_name with the package you want to install. In this post we will install Windows Emulator (wine) package using Homebrew so it should be ‘brew install wine’.

      I hope this explanation is clear enough for you :)

    • Try to update the brew first “brew update” and then re-run the “brew install wine”

  7. Jack Jesson

    I assume i’m meant to be running these scripts in script editor. can’t appear to make them work

    • Hi, You have to run the script on Terminal app. You can find the Terminal app in /Applications/Utilities folder.

      • Jack Jesson

        Yep, thats run it, thanks.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.