Program For Running .exe On Mac

Program For Running .exe On Mac 4,1/5 407 reviews
  • Nov 04, 2017  There are several options for running Windows software (*.exe files) on a Mac, depending what your program is, how often you use it, and your personal preferences. One way that does not require Windows is an open source effort called WINE.
  • EXE files are Windows executable files, the core file type of most Windows programs. Unfortunately, Macs can't run them right out of the box, which can be a problem for programs, such as games and business applications, that have no Mac version.

WineBottler can pack your.exe into an Mac.app. Double-click your.exe or.msi and convert it into an app with WineBottler. You can run the generated app like every other program on your Mac.

Active1 year, 1 month ago

I am learning C for a class at my university and wish to write the program using the TextWrangler text editor on my Mac (running OSX Lion 10.7). Once I write the .c file, I compile it using gcc. I downloaded the compiler from Apple Developer Tools.

It is included in a command line tools download. I locate the file using Terminal, compile it using gcc filename.c where the a.out executable file is created. However, when I type 'a.out' or '/a.out' I get the following messages: '-bash: a.out: command not found' or '-bash: /a.out: No such file or directory'. I have successfully compiled and ran C programs on Linux systems before using this same method. What am I doing wrong on my Mac?

AstroCB
10.6k14 gold badges50 silver badges66 bronze badges
JT9JT9
4714 gold badges9 silver badges21 bronze badges

6 Answers

You need to add a dot to indicate that the executable is in the current directory, as the current directory is not in the path:

MByDMByD
120k23 gold badges235 silver badges253 bronze badges

You're just missing one thing!Instead of '/a.out' it should be './a.out'. Another useful thing is changing the output so that you can have multiple compiled programs. Simply, the only thing you need to put in the terminal is the following (fill in the blanks with what you would like)

good luck!

beckahbeckah
8874 gold badges18 silver badges48 bronze badges

You have to add a dot in front of the slash:

Used to love Google It’s WinXP pro. First, I went into Control Panel > Folder Options > File Types, and looked around for mailto. How to download spell check program for email. (There is no “Apply” button to become active to acknowledge I’ve changed the configuration.) Clicked all the OK buttons. Now, Outlook opens again when I hit mailto:, the way I like it.

/a.out would try to execute a program in the root folder (/).
a.out will look for your program in all the folders defined in the PATH environment variable.

I have successfully compiled and ran C programs on Linux systems before using this same method. What am I doing wrong on my Mac?

You have to do the same on Linux.

DrummerBDrummerB
36.2k8 gold badges93 silver badges132 bronze badges

make sure to set your permissions executable with chmod +x a.out

MichaelMMichaelM
3051 gold badge3 silver badges14 bronze badges
aFactoriaaFactoria

You'll need a compiler. The easiest way however is to install XCode. This way you'll get access to 'gcc', Thus,

How To Open Exe File On Mac

Then run it like this.

How To Run .exe On Mac

Hope this helps!. Best free zip file program.

.exe On Mac

What program runs exe files
Kent AguilarKent Aguilar

App To Run .exe On Mac

Not the answer you're looking for? Browse other questions tagged c or ask your own question.