Question:
running linux file from windows?
Stefano C
2011-11-26 08:58:20 UTC
Hi there,
I have a program compiled in linux (extension appears as .DAT on my windows) that i need to run on my windows.
Any suggestion on how to do that?
I downloaded cygwin, but i have no idea what to do next
Four answers:
?
2011-11-27 15:02:48 UTC
A .DAT file is probably not a program. Linux files don't need an extensions, like .exe to run. Likewise many linux files don't even use extensions, (extension being the three letter code after the dot, (.dat .exe. doc)



It could be that the .DAT file is a data file for another program. Maybe that other program is for linux. Can you tell me more about the file, where it came from and what you want to do with it?



If it does indeed need a linux program to run, you probably can't use Cgywin immediately. Most linux applications have source code available. Programs for cgywin are compiled a certain way so as to work in Windows. You could see if there is a pre-complied bianary for cgywin and get that or you could get the source code, a compiler, the development files and headers, the needed libraries and compile it yourself. (No this is not a simple option, cgywin is a very nerdy tool).



Best options if you do indeed need linux in Windows are:



1. Use a Virtual Machine. A virtual machine can run another operating system as a "guest" in side another. You can install Sun's version for example, (there are other versions,) and then use it to run your favorite linux distributions right inside windows. Ubuntu, Kubuntu, OpenSuse, Fedora, Centos, LinuxMint, Puppylinux, or any that can run on the cpu will work this way.



https://www.virtualbox.org





Alternatively, you can install Linux side by side with Windows, so that when your computer stats you choose which Operation System to start. This isn't what you asked for in your question, but I am throwing it out there. You could also use Wubi:



"Wubi is an officially supported installer for Windows users that allows Ubuntu to be installed and uninstalled in a safe, easy way as with any other Windows application."



https://wiki.ubuntu.com/WubiGuide
?
2011-11-26 12:34:49 UTC
If the the program is compiled in Linux, if will not run in Windows, generally even if you use cygwin.

Cygwin is a dll that gives the API linux programs expect when running. You have to compile the linux program in windows, for it to execute in windows.



See this link to and look at "What cygwin is not" http://cygwin.com/
Ram M
2011-11-26 09:05:26 UTC
I doubt, whether you are refering to the correct version of executable file. .dat should be a windows file, not a linux file. In Unix the default exe file is a.out.
2016-10-24 01:29:30 UTC
.exe information are living house windows community, they are in a position to't be run in Linux. the answer is wine, as cautioned numerous cases already. .mkv information are maximum probable to be Matroska video information. attempt to place in VLC participant and open them with VLC.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...