LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-17-2005, 12:40 AM   #1
mili
LQ Newbie
 
Registered: Apr 2005
Posts: 19

Rep: Reputation: 0
why .exe not work in linux


hai friends.

why linux not execute .exe files ....i wish to know more abt this
 
Old 06-17-2005, 12:46 AM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 46
Because .exe files are for windows only.

You can emulate windows (and thus run .exe's) using (among others) WINE (for `WINE Is No Emulator'). Consult your package manager's manual for general installation instructions.

Btw, if you go to User CP -> Edit Profile -> Distro and type in your distribution name and version (~= release number), you don't have to answer that question all the time.

Seing that you're fairly new to LQ: Welcome; enjoy your stay. And have fun with GNU/Linux.
(http://www.gnu.org/gnu/linux-and-gnu.html)

I would suggest that you read http://www.catb.org/~esr/faqs/smart-questions.html -- it's a really good investment of your time: you'll get answers to your questions much faster, the answers will be better, and you'll generate good karma

hth --Jonas
 
Old 06-17-2005, 12:47 AM   #3
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Solus
Posts: 2,254

Rep: Reputation: 47
Because Linux doesn't use .exe files. That would likely be a Windows executable. They're two different systems.
 
Old 06-17-2005, 12:50 AM   #4
redhatrosh
Member
 
Registered: May 2004
Location: Student of University of Mumbai, Maharastra State, India
Distribution: Redhat Linux 9.0, Knoppix LIVE CD, Ubuntu Live CD, Kubuntu Live CD
Posts: 483

Rep: Reputation: 30
.exe is a format in which, the code is such, that Windows based operating systems can execute it.

Similarly, .bin is a format which is executed directly by linux based operating systems.

However, you can emulate SOME windows based software (.exe's) in GNU/Linux using WINE or CROSSOVER or stuff like that

you can download the latest version of WINE from here
http://winehq.org/site/download
 
Old 06-17-2005, 12:50 AM   #5
akudewan
Member
 
Registered: Apr 2004
Location: India
Distribution: Ubuntu
Posts: 364

Rep: Reputation: 30
For a file to be executable in linux, it has to be given permission to do so. This is done by the command: chmod a+x filename

I think you should get a book on linux, thats how I started

Oh, and wine can help you run windows apps in linux.

Enjoy your linux experience!
 
Old 06-17-2005, 12:58 AM   #6
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 46
Quote:
For a file to be executable in linux, it has to be given permission to do so. This is done by the command: chmod a+x filename
... which doesn't make the executable automatically Do The Right Thing.
Actually, it might be a bad idea to +x .exe files, since you don't execute(*) them, and they most certainly aren't valid code in any format (a.out, ELF) used by GNU/Linux.

(*) `execute' is here used in the strict sense: running the file however sh does it (probably by looking for a #! line, then looking in magic, and then just assuming it's a shell script).

Of course, you could add an entry to magic telling that .exe-files are windows executables (if it isn't there already--nautilus automagically knows).

--Jonas
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.exe on linux domon#1 Mandriva 2 07-04-2005 08:48 PM
.exe in linux? zfmt Linux - Newbie 4 12-02-2004 11:26 PM
Run exe in Linux???!!!!! yenonn Linux - General 10 10-14-2004 07:48 AM
login.exe and linux docjohn Linux - Networking 10 01-18-2004 10:17 PM
linux .exe? loop Linux - General 5 11-02-2001 02:09 PM


All times are GMT -5. The time now is 06:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration