How to install Wine on 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. 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. 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 program.exe”. Example below is to run Mikrotik Winbox using wine

wine winbox.exe

Wine on OS X El Capitan

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

8 thoughts on “How to install Wine on OS X El Capitan

  1. 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”:

    1. 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 :)

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

Comments are closed.