Skip to content

Instantly share code, notes, and snippets.

@BaReinhard
Last active October 18, 2023 18:44
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BaReinhard/ef0dc259485a1aa1afe595a1c2b88c18 to your computer and use it in GitHub Desktop.
Save BaReinhard/ef0dc259485a1aa1afe595a1c2b88c18 to your computer and use it in GitHub Desktop.
Installing Wine to run .exe files on Mac

Install Wine to run .exe files

For Mac OSX

If you haven't installed Homebrew yet do so by following this guide

  1. Open a terminal
  2. brew install --cask xquartz, wait for it to complete the install, it should ask you for your password before beginning
  3. brew install --cask wine-stable , this will take some time to finish so sit back and relax.

For Linux

  1. sudo apt-get install wine-stable

Now Wine is installed, to use wine, open a terminal navigate to the exe and type:

wine /path/to/file.exe

@vorachirag
Copy link

vorachirag commented Dec 24, 2019

image

Getting error : -bash: /usr/local/bin/wine: Bad CPU type in executable .

@m-l
Copy link

m-l commented Dec 28, 2019

Getting error : -bash: /usr/local/bin/wine: Bad CPU type in executable .

Use /usr/local/bin/wine64 instead. And .exe needs to be compiled as 64-bit too.

@adamdavenport
Copy link

use wine? try winetap to make .exe files double-click-able in macOS
https://github.com/adamdavenport/winetap

@ahreenah
Copy link

ahreenah commented Apr 7, 2020

me six XD

@FrancescoPerrone
Copy link

me seven :/

@dassiorleando
Copy link

me eight :)

@oonqt
Copy link

oonqt commented Apr 12, 2020

Me nine

Thanks for this buddy

@gaetanoiachella
Copy link

Me X ^_^

@m-l
Copy link

m-l commented Apr 13, 2020

use wine? try winetap to make .exe files double-click-able in macOS
https://github.com/adamdavenport/winetap

Yes, just winetap creates huge files, and the resulting app starts slowly.

@MonkeyChuang
Copy link

Me XI 😮

@whiteCcinn
Copy link

me \d+

@zabelkina
Copy link

Getting error when running brew cask install wine-stable

Error: Cask 'wine-stable' is unavailable: No Cask with this name exists.

Can anyone help?

@divyansh-jain-guavus
Copy link

divyansh-jain-guavus commented Sep 10, 2020

Me XIII XD

@Haque197
Copy link

Getting error when running brew cask install wine-stable

Error: Cask 'wine-stable' is unavailable: No Cask with this name exists.

Can anyone help?

you need to install homebrew onto mac
https://brew.sh/

@ChristianLoizou
Copy link

Me XIV

@Max094Reikeb
Copy link

Please help me. I did everything right, and it still says the command "wine" does not exist

@ajh123
Copy link

ajh123 commented Jan 30, 2021

@Max094Reikeb you may need to install with brew cask install wine-stable

@ekz0rcyst
Copy link

How to update wine version from brew?

@ajh123
Copy link

ajh123 commented Feb 18, 2021

@ekz0rcyst probably. ```brew cask reinstall wine-stable````

@jackkrebsbach
Copy link

Me XV

@AviFS
Copy link

AviFS commented Jul 26, 2021

Thanks for the instructions, me XVI!
Also on newer homebrew versions, remember that the syntax is brew install --cask wine-stable.

@rubba77
Copy link

rubba77 commented Oct 27, 2021

brew cask install wine-stable
Error: Unknown command: cask
I had already installed Homebrew.
Help?

@GrishaPastukhov
Copy link

brew cask install wine-stable
Error: Unknown command: cask
I had already installed Homebrew.
Help?

brew install --cask wine-stable

@adamdavenport
Copy link

adamdavenport commented Nov 4, 2021 via email

@ajencrypted
Copy link

brew install --cask wine-stable

@osalbahr
Copy link

Getting error when running brew cask install wine-stable
Error: Cask 'wine-stable' is unavailable: No Cask with this name exists.
Can anyone help?

you need to install homebrew onto mac https://brew.sh/

The error message would be different if homebrew wasn't installed. Something along the lines of:

% brew
zsh: command not found: brew

@charanjit-singh
Copy link

➜  ~ brew install --cask wine-stable
==> Downloading https://formulae.brew.sh/api/cask.jws.json
-=#=#   #   #                                                                  
Warning: Cask 'wine-stable' is already installed.

To re-install wine-stable, run:
  brew reinstall --cask wine-stable
➜  ~ wine
zsh: command not found: wine
➜  ~ wine
zsh: command not found: wine

@osalbahr
Copy link

osalbahr commented Jul 8, 2023

➜ ~ brew install --cask wine-stable
==> Downloading https://formulae.brew.sh/api/cask.jws.json
-=#=# # #
Warning: Cask 'wine-stable' is already installed.

To re-install wine-stable, run:
brew reinstall --cask wine-stable
➜ ~ wine
zsh: command not found: wine
➜ ~ wine
zsh: command not found: wine

What does brew list tell you? Also try typing “wine” and then hit the tab bar. You might need to hit the tab bar twice to see suggestions. iirc it’s wine64 that you want.

@juanmf
Copy link

juanmf commented Oct 18, 2023

I run into Mac OS security issues. “Wine Stable” cannot be opened because the developer cannot be verified.
Any hint?

@crummy
Copy link

crummy commented Oct 18, 2023

I run into Mac OS security issues. “Wine Stable” cannot be opened because the developer cannot be verified. Any hint?

https://support.apple.com/en-nz/guide/mac-help/mh40616/mac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment