Visit Our UNIX and Linux User Community


compile .exe, run in unix.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers compile .exe, run in unix.
# 1  
Old 02-23-2009
compile .exe, run in unix.

Hi all,

I am using putty to access my school unix servers.

I have recently downloaded a source file of a software in .tar format. I change the code of the program and compile it in VS8 and build an .exe file.

1) I copy the .exe file to my school account but I could not make it work. How can I do it?

Another question is: There exists some .bin files or executables which are already installed in the machine. When you type their names wherever you are they work. How can I do this for my own .bin file. I want that when I write myfile to the terminal like a command -wherever I am- it should work.


I'll appreciate your help...
# 2  
Old 02-23-2009
exe files will works individually for dos/windows machines. you can compile your source file in school's unix machine with gcc as g++ source.cpp -o binaryfile then try ./binaryfile
or copy .exe file and try wine yourfile.exe if get dll not found error copy that file(s) from win32 directory to current working dir on unix machine.
google wine will useful too.
# 3  
Old 02-23-2009
First off, UNIX is not binary compatible with Windows. Never happened, never will, which means there is no way an executable compiled on Windows will run (natively) on UNIX. WINE is just an emulator for that, and in order to use it you have to have the original Windows libraries (which means you have to have a valid license or it's illegal otherwise).
Second, if you've downloaded source code, it usually comes with a file called "README" or "INSTALL", which contains instructions on how to compile and run that software. If it isn't there, look on the website where you've downloaded it.
Third, UNIX does not require you to identify executables by file extensions, those are for the user to easily identify it's possible content. .bin is usually used for binaries, eg. compiled code, as opposed to .sh for shell scripts or .pl for Perl scripts.
In order to run executables from whatever directory you are in, either call it with it's full path, or put it in a directory specified in the PATH environment variable (which probably requires admin rights)
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #1009
Difficulty: Easy
The number 128 in base 10 equals 64 in base 16.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to compile and run java in UNIX?

Hi Im using MobaXterm Unix on my windows XP.I want to compile java in unix.I have installed java to the following path C:\Program Files\Java\jdk1.7.0_09\bin In order to compile the java prog im typing the following command after entering into the bin directory: C:\Program... (2 Replies)
Discussion started by: ak3141
2 Replies

2. Shell Programming and Scripting

How to run exe files in unix

Hi I have a open source tool called table text comparator Link to download that tool: http://www.nirsoft.net/utils/csv_file_comparison.html I wish to run this tool in our unix servers. In windows O.S i just have to unzip and i can use this tool by running the .exe file. So i want to know how... (6 Replies)
Discussion started by: Ganesh_more
6 Replies

3. OS X (Apple)

Need to run UNIX exe on apple

Hello all, I am looking for some help with running a unix executable file using Apple Remote Desktop or Terminal with no user intervention. I am able to create a packate that can copy the file to the machine using ARD but I would like to copy the file and run the command with out the users... (1 Reply)
Discussion started by: dam1197
1 Replies

4. Programming

I have C++ exe file( no source code) and need to run many large dataset under unix, b

I have C++ exe file( no source code) and need to run many large dataset under unix, but how to know the memeroy usage for one dataset?http://www.codeproject.com/script/Forums/Images/New.gif I think "top" is not good and if using the profiler, it seems no free download, any ideas? (1 Reply)
Discussion started by: Danielwang1986
1 Replies

5. UNIX and Linux Applications

Is it possible to run .exe in unix

hi friends i want to know if its possible to run windows exe files in unix.... i know the file system in windows and unix are totally different. but is there any application which allows this???? (2 Replies)
Discussion started by: vikashtulsiyan
2 Replies

6. HP-UX

How to run .exe file

Hello, I have an test.exe file under a directory. When i execute the .exe file directory from the prompt, i get following error: $ test.exe <enter> ksh: test.exe: not found How do i solve this error? TIA, Ramesh (1 Reply)
Discussion started by: brap45
1 Replies

7. Linux

How to run .exe

Hai, is there any way to run an .exe file in unix environment . i have read that WINE HQ supports this concept but its very inconsistent and upto the user risk . but i tried WINE but iam not able to configure it can any one help me in this matter Regards Sanju (1 Reply)
Discussion started by: sanjustudy
1 Replies

8. UNIX for Dummies Questions & Answers

not able to run base64 exe

Hi, I have copied base64.exe under base64-1.3 folder and i am trying to run base64.exe from another folder called Request. But i am getting the following error message. mga.ksh: base64: not found Please let me know how to execute the base64.exe from a directory where it is not installed. ... (0 Replies)
Discussion started by: lotus123
0 Replies

9. Shell Programming and Scripting

Run an exe from different folder

Am trying to run a exe on my unix machine from a different folder. For instance, i have a perl file in a folder /home/asif/runprj.pl which runs a exe in a different folder /home/projects/cobsat/a.out and my perl file is something like this #!/usr/bin/perl... (1 Reply)
Discussion started by: Asif Ali
1 Replies

10. Programming

How to compile and run C++ programs in UNIX environment?

:( :confused: Does anybody here know how to compile and run C++ programs in UNIX enviroment? I am so confused. Any help on this would be greatly appreciated! Thanks! (5 Replies)
Discussion started by: Kahuashi
5 Replies

Featured Tech Videos