WineHQ

MacOS: Difference between revisions

 
(30 intermediate revisions by 5 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''''Translations of this page (incomplete):''''' not yet ported. Translators, please see Discussion page.  
{{DISPLAYTITLE:macOS}}
'''Translations of this page:''' {{flag|France}} [[MacOS_fr|Français]] (Translators, please see Discussion page.)
----
----
== Installing WineHQ packages ==
Official WineHQ packages of the development and staging branches are available for Mac OS X 10.8 and higher. Please test these packages and report any bugs at http://bugs.winehq.org.


'''Prerequisites:'''
== Notice ==
# XQuartz >= 2.7.7
Only supports macOS Catalina (10.15.4) or later, wine also works on Apple Silicon systems via Rosetta2.
# Gatekeeper must not be set to block unsigned packages.
 
== Homebrew ==
Winehq packages can be installed using homebrew, these only support macOS Catalina (10.15.4) or later.


'''Installing:'''
To install wine the following command can be used;
brew install --cask --no-quarantine (selected wine package)
'''wine-stable''', '''wine@devel''' or '''wine@staging''' packages can be installed using the above example.
The advantage of installing via homebrew means wine is available from a standard terminal session
The '''--no-quarantine''' line is to avoid brew adding the quarantine flag.


Both .pkg files and tarball archives are available at https://dl.winehq.org/wine-builds/macosx/download.html.
== MacPorts ==
sudo port install (selected wine package)
'''wine-stable''', '''wine-devel''' or '''wine-staging'''


Installing from a .pkg file is recommended for inexperienced users.
== Building Wine ==
See [[macOS/Building|Building Wine on macOS]]


'''To install from a .pkg file''', double-click on the package, and the usual Mac OS X installer wizard should open. The process should be self-explanatory. It is possible to install the package either for all users (needs administrator privileges), or just for your current user. After the installation is finished, you should find an entry "Wine Staging" or "Wine Devel" in your Launchpad. By clicking on it, a new Terminal window opens with a short introduction into some important wine commands. You can now directly start wine/winecfg/... from the Terminal, as the PATH variable is set correctly. For user convenience, the package also associates itself with all *.exe files, which means you can run windows executables just by double-clicking on them.
== Uninstalling source build ==


'''To install from a tarball archive''', simply unpack it into any directory. There is no need to set DYLD_* environment variables; all paths are relative, so it should work as long as the directory structure is preserved (you can skip the /usr prefix though using --strip-components 1).
Remove the source tree and binaries.
Otherwise and if you used `sudo make install`, revert it:
sudo make uninstall
 
* Then simply delete your local Wine source code directory:
rm -rf src/wine


For more information, see https://www.winehq.org/pipermail/wine-devel/2015-December/110990.html and https://www.winehq.org/pipermail/wine-devel/2016-January/111010.html.
* Clean-up pseudo C: drive and registry entries as well as all programs installed to C:
rm -rf $HOME/.wine


== Building Wine ==
* Check the hidden directory `$HOME/.local/` where Wine stores some desktop menu entries and icon files as it interoperates with the [http://www.x.org/ X.Org Foundation] and the [http://www.freedesktop.org/wiki/ Free Desktop].
rm -rf $HOME/.local
Note: Files in this directory are unused on macOS '''unless''' you use a UNIX window manager and other X11 applications instead of the native MacOS apps.


It is strongly recommended that one use either [http://brew.sh Homebrew], [http://www.macports.org MacPorts], or [http://www.finkproject.org Fink] to build WINE on OSX.
== Homebrew ==
All support the current releases of OSX.
brew uninstall --cask (selected wine package)
'''wine-stable''', '''wine@devel''' or '''wine@staging'''


See [[MacOSX/Building|Building Wine on MacOSX]]
== MacPorts ==
sudo port uninstall --follow-dependencies (selected wine package)
'''wine-stable''', '''wine-devel''' or '''wine-staging'''


== Uninstalling Wine ==
== Installing Deprecated WineHQ packages ==
Official WineHQ packages of the development and stable branches are available for macOS 10.8 to 10.14 '''''(Wine won't work on macOS Catalina 10.15 as 32-bit x86 support is required)'''''. Please test these packages and report any bugs at http://bugs.winehq.org.


* Remove the source tree and binaries.
Note that work is being done to convert core modules of WINE to PE format which will allow WINE to work on newer versions of macOS in the future.


Using Homebrew:
'''Prerequisites:'''
brew rm wine && brew rm $(join <(brew leaves) <(brew deps wine))
# XQuartz >= 2.7.7
# Gatekeeper must not be set to block unsigned packages.


Using MacPorts, uninstall the wine package you previously installed:
'''Installing:'''
sudo port uninstall --follow-dependencies wine
Replace wine with wine-devel if you installed the development version.


Using Fink:
Both .pkg files and tarball archives are available at https://dl.winehq.org/wine-builds/macosx/download.html.
fink remove wine
Replace wine with wine-dev if you installed the development version.


Otherwise and if you used `sudo make install`, revert it:
Installing from a .pkg file is recommended for inexperienced users.
sudo make uninstall


Then simply delete your local Wine source code directory:
'''To install from a .pkg file''', double-click on the package, and the usual macOS installer wizard should open. The process should be self-explanatory. It is possible to install the package either for all users (needs administrator privileges), or just for your current user. After the installation is finished, you should find an entry "Wine Staging" or "Wine Devel" in your Launchpad. By clicking on it, a new Terminal window opens with a short introduction into some important wine commands. You can now directly start wine/winecfg/... from the Terminal, as the PATH variable is set correctly. For user convenience, the package also associates itself with all *.exe files, which means you can run windows executables just by double-clicking on them.
rm -rf src/wine


* Clean-up pseudo C: drive and registry entries as well as all programs installed to C:
'''To install from a tarball archive''', simply unpack it into any directory. There is no need to set DYLD_* environment variables; all paths are relative, so it should work as long as the directory structure is preserved (you can skip the /usr prefix though using --strip-components 1).
rm -rf $HOME/.wine


* Check the hidden directory `$HOME/.local/` where Wine stores some desktop menu entries and icon files as it interoperates with the [http://www.x.org/ X.Org Foundation] and the [http://www.freedesktop.org/wiki/ Free Desktop].
For more information, see https://www.winehq.org/pipermail/wine-devel/2015-December/110990.html and https://www.winehq.org/pipermail/wine-devel/2016-January/111010.html.
rm -rf $HOME/.local
Note: Files in this directory are unused on MacOS '''unless''' you use a UNIX window manager and other X11 applications instead of the native MacOS apps.


== Third Party Versions ==
== Third Party Versions ==
Line 60: Line 72:


== See Also ==
== See Also ==
* [[MacOSX FAQ]]  
* [[macOS FAQ]]  
* [[MacOSX/Building]]
* [[macOS/Building]]


----
----
[[Category:Distributions]]
[[Category:Distributions]]

Latest revision as of 02:09, 15 June 2024


Translations of this page: Français (Translators, please see Discussion page.)


Notice

Only supports macOS Catalina (10.15.4) or later, wine also works on Apple Silicon systems via Rosetta2.

Homebrew

Winehq packages can be installed using homebrew, these only support macOS Catalina (10.15.4) or later.

To install wine the following command can be used;

brew install --cask --no-quarantine (selected wine package)

wine-stable, wine@devel or wine@staging packages can be installed using the above example. The advantage of installing via homebrew means wine is available from a standard terminal session The --no-quarantine line is to avoid brew adding the quarantine flag.

MacPorts

sudo port install (selected wine package)

wine-stable, wine-devel or wine-staging

Building Wine

See Building Wine on macOS

Uninstalling source build

Remove the source tree and binaries. Otherwise and if you used `sudo make install`, revert it:

sudo make uninstall
  • Then simply delete your local Wine source code directory:
rm -rf src/wine
  • Clean-up pseudo C: drive and registry entries as well as all programs installed to C:
rm -rf $HOME/.wine
  • Check the hidden directory `$HOME/.local/` where Wine stores some desktop menu entries and icon files as it interoperates with the X.Org Foundation and the Free Desktop.
rm -rf $HOME/.local

Note: Files in this directory are unused on macOS unless you use a UNIX window manager and other X11 applications instead of the native MacOS apps.

Homebrew

brew uninstall --cask (selected wine package)

wine-stable, wine@devel or wine@staging

MacPorts

sudo port uninstall --follow-dependencies (selected wine package)

wine-stable, wine-devel or wine-staging

Installing Deprecated WineHQ packages

Official WineHQ packages of the development and stable branches are available for macOS 10.8 to 10.14 (Wine won't work on macOS Catalina 10.15 as 32-bit x86 support is required). Please test these packages and report any bugs at http://bugs.winehq.org.

Note that work is being done to convert core modules of WINE to PE format which will allow WINE to work on newer versions of macOS in the future.

Prerequisites:

  1. XQuartz >= 2.7.7
  2. Gatekeeper must not be set to block unsigned packages.

Installing:

Both .pkg files and tarball archives are available at https://dl.winehq.org/wine-builds/macosx/download.html.

Installing from a .pkg file is recommended for inexperienced users.

To install from a .pkg file, double-click on the package, and the usual macOS installer wizard should open. The process should be self-explanatory. It is possible to install the package either for all users (needs administrator privileges), or just for your current user. After the installation is finished, you should find an entry "Wine Staging" or "Wine Devel" in your Launchpad. By clicking on it, a new Terminal window opens with a short introduction into some important wine commands. You can now directly start wine/winecfg/... from the Terminal, as the PATH variable is set correctly. For user convenience, the package also associates itself with all *.exe files, which means you can run windows executables just by double-clicking on them.

To install from a tarball archive, simply unpack it into any directory. There is no need to set DYLD_* environment variables; all paths are relative, so it should work as long as the directory structure is preserved (you can skip the /usr prefix though using --strip-components 1).

For more information, see https://www.winehq.org/pipermail/wine-devel/2015-December/110990.html and https://www.winehq.org/pipermail/wine-devel/2016-January/111010.html.

Third Party Versions

Third party versions of Wine, such as Wineskin, Winebottler, and PlayOnMac, are not supported by WineHQ. If you are using one of those products, please retest in plain Wine before filing bugs, submitting AppDB test reports, or asking for help on the forum or in IRC.

See Also


This page was last edited on 15 June 2024, at 02:09.