i had read somewhere and also in cygmin (under "what isn't")..that native compiled executeables in linux can't be run under cygwin...they need to be recompiled under cygwin to operate..it is true?
so if i have natively compiled program (in unix), can i still literally port to cygwin and run it? thanks
---------- Post updated at 01:36 AM ---------- Previous update was at 01:22 AM ----------
Quote:
Originally Posted by lchunleo
i had read somewhere and also in cygmin (under "what isn't")..that native compiled executeables in linux can't be run under cygwin...they need to be recompiled under cygwin to operate..it is true?
so if i have natively compiled program (in unix), can i still literally port to cygwin and run it? thanks
i think i have found my ans, no binary executeable compiled in unix environment can be ported and run in cygwin..
i had read somewhere and also in cygmin (under "what isn't")..that native compiled executeables in linux can't be run under cygwin...they need to be recompiled under cygwin to operate..it is true?
That is correct. UNIX and UNIX-like OSs such as Linux do not guarantee binary portability. You are expected to recompile the application source code for each target platform and programming model.
Quote:
i think i have found my ans, no binary executeable compiled in unix environment can be ported and run in cygwin..
In the OS world the term "porting" has a specific meaning. It does not just mean just transfer an application binary from one platform to another - say Unix to Cygwin. It means to take the application source code, modify it as necessary and recompile it for the target platform.
you are right, can i check what other tools should i explore if i wish not to perform recompilation of my unix apps but still wish to run in windows os machine with a unix emulator?
Reason being, my existing unix apps have too many imports which i don't think i would wish to spend time recompiling each of them in the cygwin. i just wish to take them and run in a windows machine..
I'm pretty sure your HP UX applications will NOT run on any other platform, be it Linux, Cygwin, or other unices, without porting, which implies adaption and recompilation of every single module.
Reason being, my existing unix apps have too many imports which i don't think i would wish to spend time recompiling each of them in the cygwin. i just wish to take them and run in a windows machine..
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 2,288
Thanks Given: 430
Thanked 480 Times in 395 Posts
HI.
My understandings: if the user has a recent HP box, then it has an Itanium CPU, whereas older HP boxes use PARISC. Neither of the binaries that run on those can be run directly on an Intel box. Cygwin runs on MS/Windows, Windows only runs on Intel CPUs (no more Alpha, no more MIPS).
I think there are some solutions for "just moving the binaries over", but on a non-HP box, say an Intel Linux machine, first one would need to emulate PARISC or Itanium instructions. Then install HP-UX, then move the applications over. Or do the same on an MS/Windows box -- get a PARISC or Itanium emulator running on Windows, install HP-UX, etc., etc.
I think it would be much easier to re-compile the code. I don't know what "existing unix apps have too many imports" means.
The Cygwin that I use definitely has the tools to re-compile code:
For example:
To show what happens when an HP-UX binary attempts to run on an Intel Linux box, I copied /sbin/ls from an HP box to a Linux workstation. Then I did an ls on both files (and validating the Linux binary -- it produced output):
then I identified both applications:
and then I tried to run the HP application:
so we have permission to run it, but the format is not understandable.
I need to rebuild an application that developed in unix environment and run in windows OS with cygwin. so How can I rebuild from the source code?
is there any one who said something on this regard? (2 Replies)
Hi,
I installed unix emulator cygwin, it does not allow me to open vi editor.
Can anybody know if cygwin supports vi.
if not can somebody please refer a good emulator. (5 Replies)
i have a cygwin unix and i would like to use alias to save a cd command.. however i lose this alias when i close out cygwin and log back in.. is there any way to save this command so that i can use it every time i log in? i am using cygwin on windows xp. thanks. (1 Reply)
Hi.
I'm New user for this Forum.Presently i'm working with Cygwin
I want to know the basic commands that will be used for Cygwin.
Can anyone guide me on this regards
Thanks & Regards
Sanjay (0 Replies)
Hi, I noticed that SUN is selling the Blade 100 workstation for < 1000. I am considering buying one with a high end graphics card for 3D animation/graphics (and also some java development). I am wondering if any relatively inexpensive graphics applications exist for Unix/Solaris machines. Anybody... (4 Replies)