How To Run Almost Any Windows Game On Your Mac Without Boot Camp Or Parallels Using Wine [Feature]

Install XCode & MacPorts

How To Run Almost Any Windows Game On Your Mac Without Boot Camp Or Parallels Using Wine [Feature]
If you’re running Mac OS X 10.6 Snow Leopard above, XCode is available in the Mac App Store. If you’re still using OS X 10.5 Leopard (why?), you’ll need to install Xcode from one of the System Install DVDs that came with your Mac. I’m going to assume you’re using either Lion or Mountain Lion for the rest of this article, and just point you to the Mac App Store. Be warned, though: XCode is a 1.6GB  download, so it may take a while depending on your internet connection speed.

Once XCode is downloaded and installed, launch it and go to the Preferences. Click on the Downloads tab and then install the “Command Line Tools.” If you’re running OS X 10.8 Mountain Lion, copy and paste the following into a Terminal session (Terminal can be found in Applications > Utilities) to avoid some heartache later:

sudo xcodebuild -license

You’ll need to type in your admin password here, as well.

Then quit Terminal, and head to the MacPorts website. Once there, click on the link for your particular version of OS X. I grabbed MacPorts for OS X Mountain Lion, but there are links for Lion and Snow Leopard as well. Launch the package installer and follow the directions, including entering your admin password again. Next, you’ll need to configure MacPorts using the command line, so launch Terminal.

Copy and paste the following into your Terminal window (you’ll need to type in your password again after you hit enter on the keyboard):

echo export PATH=/opt/local/bin:/opt/local/sbin:\$PATH$'\n'export MANPATH=/opt/local/man:\$MANPATH | sudo tee -a /etc/profile

After that process finishes, copy and paste the next line:

if [ `sysctl -n hw.cpu64bit_capable` -eq 1 ] ; then echo "+universal" | sudo tee -a /opt/local/etc/macports/variants.conf; else echo "not 64bit capable"; fi

If your Mac is 64-bit capable, you’ll get +universal as a result. If not, you’ll get not 64 bit capable. Either result is fine; MacPorts is just figuring out what to do for your particular machine. computers should show +universal if you have a 64Bit Mac. If not, it will show “not 64bit capable” which is fine – it’s just showing MacPorts what kind of Mac you have.

Close the Terminal window, and open a new one.

Install Wine

How To Run Almost Any Windows Game On Your Mac Without Boot Camp Or Parallels Using Wine [Feature]
Copy and paste the following text into your newly opened Terminal window:

sudo port install wine

MacPorts will start chugging away, finding all the magic source code that is required to build up a functioning copy of Wine for your specific Macintosh. This will probably take some time, so go get a soda while you wait. Unless it’s later and you’re of drinking age in your local area; in which case, grab a beer or two. This could be a while.

Download and Install Your Game

How To Run Almost Any Windows Game On Your Mac Without Boot Camp Or Parallels Using Wine [Feature]I headed over to the GuildWars website and downloaded the latest .exe file there to install on my Mac. Your game will probably be on another website, or be on CD. Head there, and download the file, making note of the place you save the file.

Head back into Terminal, and type cd /locationOfDownloadedFile, where that last bit is actually the place you put your game file. I put mine in ~/Downloads/, but your download location will be unique to you. If in doubt, you can drag the Finder window where your file is located on top of Terminal to instantly get the correct path.

Once you’re in the proper directory in Terminal, run the installer via your Wine install by typing in the following command:

wine INSTALLER.exe

Of course, the INSTALLER bit will be different for you. For GuildWars, the setup file is called GwSetup.exe. So, I typed in:

cd ~/Downloads/GwSetup.exe
then
wine GwSetup.exe

X11 (you did download XQuartz and install it if you’re running Mountain Lion, right?) then opens up, and you’ll see a standard Windows installer, just like magic. Click on through the installation prompts, and boom, you’re ready to go.

Run, Game, Run

Now, to get your game up and actually running, you’ll need to launch Terminal one final time. Type the following into Terminal to get to your Program Files folder:

cd ~/.wine/drive_c/Program\ Files/

Then type

ls

This should show you the name of the game you installed; head into the folder with a cd command. In that game folder should (finally) be a file that starts the game, ending in .exe – this is your game file. Type the following into Terminal to get it running:

wine PROGRAM.exe

Be sure to replace PROGRAM with your game startup file. You should now be playing that PC game right on your Mac, sans emulation. Whoopee! Let us know what game you got to run this way in the comments.

A huge thanks to David Baumgold, who’s Wine and Mac tutorial was invaluable in navigating the whole setup.

Related

Pages: 1 2

  • CaptainAndroc

    Does anyone know if it works for games that run steam?

  • coolman1081

    Does anyone know if it works for games that run steam?

    I’m wondering this too, as Steam prevents you from downloading incompatible games.

  • Guest

    Error:
    Error: No valid Xcode installation is properly selected.
    Error: Please use xcode-select to select an Xcode installation:
    Error: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer # version 4.4.1
    Error:
    Warning: xcodebuild exists but failed to execute
    Warning: Xcode does not appear to be installed; most ports will likely fail to build.
    —> Computing dependencies for wine

    Any ideas?

  • SevanGrim

    “The Mac may be a better computer than a windows box…”
    ” It basically fools Windows into thinking they are running in a Windows environment, without actually emulating that environment (and taking the same performance hit)…”
    really? Cant you just write an article about why the program is good without bashing the competitor in so biased a manner?
    What i find most hilarious is that you contradict yourself in the same paragraph when speaking of Steam. Sooooo…. lack of customization makes your device better than all the ones that can be easily modified. I can make an honest to god list of all the ways that logic fails in the real world…

    I visit this site, among others, for tech news. And this one specifically because i own a iphone. I give credit where credit is due. But a strong chunk of the “writers” here at Cult of Mac seem incapable of writing anything that doesnt onesidedly glorify Apple… even when the actual article is about Apple shortcomings.
    … This is how republicans report. “We are right about everything, and everyone else is stupid/silly/wrong/should switchover.”
    Journalism 101: facts over opinions. seeing as to how MANY people own PC’s, and the MAJORITY of games made for computers are not designed for Macs even though MANY programers use them… well i think at that point it’s safe to say to each his own. Grow up.

  • Tallest_Skil

    Grow up.

    Or just DON’T come to websites that think this. I fail to see the issue. We don’t go to PC websites and complain when they say the PC is better than the Mac.

    Why are Apple users so much better than PC and Android users in this regard? I think it’s humorous that you’re telling us to grow up.

  • Sammi Oo IgglePiggle

    help! When i enter in the cd ~/Downloads/Filename.exe, Terminal says that it is not a directory!! help?

  • SevanGrim

    Why are Apple users so much better than PC and Android users in this regard?

    lol do you read what you type or just hit enter and merrily skip off?
    in case you didnt notice, i never bashed Apple in my comment. I swear by my ipod and Phone, and have contemplated getting a Mac several times. I have no real problem with Apple, and the few i do have with them were left unmentioned. But this article couldnt be more biased.
    Im sorry i want a higher level of wordsmithing from a site i visit frequently. If im going to get information from someplace, i would like a certain amount of intelligence to go along with it, ie being unbiased for a couple paragraphs.

  • Sean Kremer

    Ya no…This does not work. I kept getting no directory. I even email Rob twice and both responses did not help. He answered completely from left field. if your thinking about trying this all you’ll get are programs and files that are going to be a major pain to uninstall. If you happen to get it to work then you need to post on here how exactly and what you did differently from the author because he isn’t very helpful. In my opinion this whole thing isn’t worth it. Just use bootcamp it so much simpler and that saying something since bootcamp isn’t the easiest thing to do unless you have experience with it and computers.

  • julienemarie

    Why would you come to a MAC website and look for unbiased? Of course it’s going to be biased, the name gives it away, CULT OF MAC. It’s a website about all things Apple and how great it is. I’m sure there are a million other websites about your iPhone that are unbiased. Go bother them.

  • Spyros Pilatos

    ARE YOU FUCKING KIDDING ME?i have tried more than 5 times!ABSOLUTLY NOTHING!waste of time :@

  • Spyros Pilatos

    wine: cannot find L”C:\\windows\\system32\\launchpad.exe”
    WHY???@@@@

  • Spyros Pilatos

    No1 can answer me why???

  • Spyros Pilatos

    Come on guys!THAT THING TOOK ME 4 HOURS AND YOU CAN’T TELL ME WHY???

  • Cameron Beau Hilton
    help! When i enter in the cd ~/Downloads/Filename.exe, Terminal says that it is not a directory!! help?

    That’s because a file is not a directory – leave off the filename.exe and it should work. :)

  • bernhardush

    I got it to work on my system. Thanks, your guide helped a lot!
    The only catch was that I had to set the directory of Xcode before running xcodebuild.
    The last step (the port install wine command) really did take long! As in really, really long! Perhaps partially due to my low 384 Kb/s internet connection, although the parts where it compiles are very CPU intensive and very time consuming as well, so I would expect it to take a few hours on a system with a fast internet connection as well.
    Anyway, in my case the installation ran the entire afternoon. That evening it was still busy, so I let it run overnight.
    Also, the installation seemed to have taken about 3GB of HD space.
    Nevertheless, it looks as though it works as it should!

  • defa

    Cheers Rob. I now going to play GW on my MacBook (SLeo, 2.4 GHz Intel Core2). Just follow the recipe and use your brain…

    cheers
    defa

  • ddrysdale2

    Hi there! I have followed the instructions to the letter but I keep falling at the same hurdle! This message comes up when i try to Install wine:
    Error: Unable to open port: invalid command name “compiler.whitelist”
    To report a bug, see < http://guide.macports.org/#project.tickets>
    Any help would be greatly appreciated!!
    many thanks!

  • Yoshgoodman

    Error:
    Error: No valid Xcode installation is properly selected.
    Error: Please use xcode-select to select an Xcode installation:
    Error: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer # version 4.4.1
    Error:
    Warning: xcodebuild exists but failed to execute
    Warning: Xcode does not appear to be installed; most ports will likely fail to build.
    —> Computing dependencies for wine

    Any ideas?

    I am getting this same error message, any solutions?

  • Yoshgoodman
    Error:
    Error: No valid Xcode installation is properly selected.
    Error: Please use xcode-select to select an Xcode installation:
    Error: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer # version 4.4.1
    Error:
    Warning: xcodebuild exists but failed to execute
    Warning: Xcode does not appear to be installed; most ports will likely fail to build.
    —> Computing dependencies for wine

    Any ideas?

    I am getting this same error message, any solutions?

    UPDATE: This fixed my problem

    xcode-select

    There have been reports of xcode-select not pointing to the new Xcode location for some users after upgrading to 4.3. If you are having problems even with the latest MacPorts version and xcode-select -print-path does not print /Applications/Xcode.app/Contents/Developer on your system, or

    Warning: Xcode appears to be installed but xcodebuild is unusable; some ports will likely fail to build.
    then you need to run:

    sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

    This is particularly important for people who have error messages referring to their old compiler locations after installing Xcode 4.3: you need to reinstall the package that stored the old compiler location if you see an error message like this:

    error: can’t exec ‘/Developer/usr/bin/‘ (No such file or directory)

    So far this error is seen in previously-built perl and python when building perl or python modules. For example, if a py27-xxxx port fails to install and the log contains error messages of this type, try reinstalling the main python27 port with:

    sudo port -n upgrade –force python27

  • PatriciaMac

    That is pretty complicated for a regular person, i’d rather stick with the regular games for mac http://www.cultofmac.com/tag/mac-games-and-more/ on cultofmac friday’s selection.

  • piverson

    I have tried this 4 times and it keeps saying unable to install wine

  • piverson

    can u help

  • DisorientedDiva

    I keep on getting this error message…will anyone be able to help me?

    (what I type in) wine $ST.25.20121026a.8_EN.exe

    Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
    err:ntdll:RtlpWaitForCriticalSection section 0x7bc969b4 “loader.c: loader_section” wait timed out in thread 001d, blocked by 001e, retrying (60 sec)
    wine: cannot find L”C:\\windows\\system32\\.25.20121026a.8_EN.exe”

  • kenchicle

    Hi. i have the disk for the game i want to play (pharaoh) so how do i do this? i have got up to the point of needing to tell terminal where the file is stored. thanks

  • 1939

    I’m trying to install American McGee’s Alice, and it keeps saying, “The InstallShield (iKernel)could not be installed. File not found.” Any advice?

  • evanspitzer

    everything installed okay and all that but now it asks me to insert disk one when I am trying to run the application, any ideas?

  • MacDemon

    What do I do if my game is installed through steam?(Fall Out: New Vagas)

  • Pappa_P

    When I paste ind first line after installing MacPort I get… -bash: sudo: command not found….why ?

  • xLuvUSum_

    Same problem as Kenchicle!! How do I install the game? Which .exe file do i choose?

  • torgola

    If you are trying to install Windows games inside a Mac, you should prefer using Wineskin. It’s easier, and the games became much more similar to the original Windows games.

  • flerchjj

    Wine has issues compiling on 10.7 and 10.8

    Darwine has a wine installer (https://sourceforge.net/p/darwine/wiki/Home/) if you don’t want to compile Wine yourself. This is compiled with a new environment, so please provide feedback there.

    WineBottler is another good app that simplifies the process (http://winebottler.kronenberg.org/).

    Download and install Steam, then run ‘wine “c:\Program Files\Steam\Steam.exe” -no-dwrite’ to start steam and play steam games. The “-no-dwrite” bit is because of a current bug in Wine.

  • flerchjj

    everything installed okay and all that but now it asks me to insert disk one when I am trying to run the application, any ideas?

    try running “wine winecfg” first and make sure your cd or D: drive is selected in the gui that pops up before running your game.

  • flerchjj

    I keep on getting this error message…will anyone be able to help me?

    (what I type in) wine $ST.25.20121026a.8_EN.exe

    Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
    err:ntdll:RtlpWaitForCriticalSection section 0x7bc969b4 “loader.c: loader_section” wait timed out in thread 001d, blocked by 001e, retrying (60 sec)
    wine: cannot find L”C:\\windows\\system32\\.25.20121026a.8_EN.exe”

    The terminal doesn’t like the “$” in your file. I think putting a backslash “\” in front of the “$” will fix this. If it does then be lazy and type “wine ” (note the space and only type the stuff inside the quotes) and then drag the file to the terminal. This will correctly format the file name.

  • NS123

    I downloaded a game off the Internet and there is a crack which is to applied by replacing the .exe file in program files but I can’t because there is no command to replace files on terminal plz help!!!

  • JasperFioole

    I aborted the installation process because my cpu was getting around 96C during the installation process. At that moment there was nothing more open then my terminal. Is there a safer way for installing wine, on this way it will cause serious damage.

  • clsuburbs

    installed game correctly, i do the cd command to get to the folder, then i try to run the game and i get this message. what i typed was “wine Astonia35.exe

    Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
    wine: cannot find L”C:\\windows\\system32\\astonia.exe”

    any help would be greatly appreciated

  • freysar

    unknown-7c-d1-c3-7b-bd-88:~ Zadmin$ cd/Volumes/Neverhood/setup95.exe
    -bash: cd/Volumes/Neverhood/setup95.exe: No such file or directory

    I have tried all sorts of variations of file locations but keep getting the same -bash: message back. What am I doing wrong?

  • stescott1

    Hi i need some help.
    I started the wine process but gor kicked off the network half way through. is there a way past this:-

    —> Verifying checksum(s) for libidl
    Error: org.macports.checksum for port libidl returned: libIDL-0.8.14.tar.bz2 does not exist in /opt/local/var/macports/distfiles/libidl
    Error: Failed to install libidl
    Please see the log file for port libidl for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libidl/libidl/main.log
    Error: The following dependencies were not installed: gstreamer010-gst-plugins-base gnome-vfs gconf orbit2 libidl policykit gnome-mime-data libtheora libvorbis libogg orc xorg-libice xorg-libsm lcms mesa xorg-dri2proto xorg-glproto xorg-libXmu xorg-libXt xorg-libXxf86vm xorg-xf86vidmodeproto
    To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
    Error: Processing of port wine failed

    Please someone help as it looks like it was near the end!!
    Thanks, ste

  • bossOC

    I get this when trying wine commands
    -bash: wine: command not found

  • stescott1

    Hi guys, I am having a nightmare with this.
    “ls” in terminal wont show me the .exe files i have installed!
    Can anyone help?
    Ste

  • MissHeatherMaria

    I’ve gotten through majority of the steps but I’m stuck on the actual downloading of the game. I put the disc in but since it’s for PC I don’t know how to download it onto my Mac. Help?

  • perigby

    Hi, i copy and paste the text to terminal (before installing wine) but get the following

    -bash: syntax error near unexpected token `then’

    help?

  • jodymac311

    When I get down to the end and am trying to install the .exe file I get denied permission to run the binary file. Any suggestions on how to circumvent this issue? I tried also to type – “wine users/name/setup.exe” and then it tried to crunch the numbers and came up with a “cannot divide an integer with 0″ error message. Anyone have any suggestions?

    Thanks ahead of time.

  • wh0is

    How can I uninstall completely, after I have run “sudo port install wine” ??? I unfortunately changed my mind Many thanks

  • ZeFuhrer13

    i completed the whole setup, but i forgot to download XQuartz… so i got an error… after installing XQuarts… i tried to reopen the directory where my .exe file was, and now it just says /volumes/crusader/disk1 is a directory and thats it. Before the error, wine actually loaded the directory just fine and opened the file.

    Can anyone help me please?? i’ve been at al day now pff… PLEASE HELP

  • ZeFuhrer13

    How can I uninstall completely, after I have run “sudo port install wine” ??? I unfortunately changed my mind Many thanks

    just type “sudo port uninstall wine” ;)

  • Eternalight

    I’m using Mac os x 10.6.8

    I’m stuck at these:

    1. I downloaded Xcode 4.2 for Snow Leopard
    I can’t find ‘command line tool’ in the downloads tab

    2. In ‘sudo port install wine’ command. it said that; “Error: Processing of port wine failed”

    3. Does it only works for a game that use installer and not the one with a “ready-to-play-one-folder” games?

    Would anyone like to help me? Thanks before…

  • eurobum

    Terrific guide, almost there. I’m at:

    cd ~/Downloads/GwSetup.exe
    then
    wine GwSetup.exe

    I can’t get passed the first of those lines in Terminal:

    -bash: cd/Users/ADMIN/Documents/Games/NBA 2K14/NBA2K14.exe: No such file or directory

    Even though the file is EXACTLY in that directory. Doesn’t matter if I drag from Finder (as article suggests) or manually type in the directory, same result.

    Did everything according to the tutorial thus far.

    Running 10.8.5 on i5 Mac mini (2011).

    Hope someone can help. Sooo close.

  • eurobum

    Terrific guide, almost there. I’m at:

    cd ~/Downloads/GwSetup.exe
    then
    wine GwSetup.exe

    I can’t get passed the first of those lines in Terminal:

    -bash: cd/Users/ADMIN/Documents/Games/NBA 2K14/NBA2K14.exe: No such file or directory

    Even though the file is EXACTLY in that directory. Doesn’t matter if I drag from Finder (as article suggests) or manually type in the directory, same result.

    Did everything according to the tutorial thus far.

    Running 10.8.5 on i5 Mac mini (2011).

    Hope someone can help. Sooo close.

    Alright, so got a little further. If I enter:

    cd ~/Documents/Games/NBA2K14

    Then

    wine NBA2K14.exe

    It will say this:

    Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
    fixme:shell:SHAutoComplete stub
    fixme:ieframe:PersistStreamInit_InitNew (0x17fa30)
    fixme:urlmon:URLMoniker_BindToObject use running object table
    err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
    fixme:iphlpapi:NotifyAddrChange (Handle 0x128f550, overlapped 0x128f55c): stub

    And if I try to exit Terminal it will say:

    Do you want to close this window?
    Closing this window will terminate the running processes: sh, wine.

    Note: computer is working, fan going off, but can’t see any progress.

  • KenkuBoing

    I am stuck in ” Head back into Terminal, and type cd /locationOfDownloadedFile, where that last bit is actually the place you put your game file. I put mine in ~/Downloads/, but your download location will be unique to you. If in doubt, you can drag the Finder window where your file is located on top of Terminal to instantly get the correct path. ” Please give me a really proper and slow explanation. The game I want to play is ” Dragonica_EN.exe “. What am I gonna do? Please answer me! I really appreciate the guide you do, and I hope you can help me with this one too!

About the author

Rob LeFebvreAnchorage, Alaska-based freelance writer and editor Rob LeFebvre is Cult of Mac's Culture Editor. He has contributed to various tech, gaming and iOS sites, including 148Apps, VentureBeat, and Paste Magazine. Feel free to find Rob on Twitter @roblef

(sorry, you need Javascript to see this e-mail address)| Read more posts by .

Posted in Featured stories, How-To, News, Top stories | Tagged: , , , , , , , |