|
Home > Archive > Unix questions > November 2006 > Want to run a Solaris Unix compiled C++ program in linux
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Want to run a Solaris Unix compiled C++ program in linux
|
|
| fAnSKyer 2006-11-22, 1:39 am |
| I got in trouble, When I am trying to run a Solaris Unix compiled C++
program [no GUI I guess, only 90KB after compiled] in linux, I got an
error:
"this binary code can not run"
The problem is that I don't have the source code. What I know is this
code is compiled in Unix Solaris system, I am curious and need a
solution.
How to run this code? will cygwin help? Need I install a Solaris
software?
Thanks a lot
Cheers
fAnS.
| |
| Todd H. 2006-11-22, 7:27 am |
| "fAnSKyer" <fanskyer@gmail.com> writes:
> I got in trouble, When I am trying to run a Solaris Unix compiled C++
> program [no GUI I guess, only 90KB after compiled] in linux, I got an
> error:
> "this binary code can not run"
>
> The problem is that I don't have the source code. What I know is this
> code is compiled in Unix Solaris system, I am curious and need a
> solution.
> How to run this code? will cygwin help? Need I install a Solaris
> software?
In short, you're screwed. Cygwin will not help you. You need a
Solaris box.
When source code is compiled into object code then linked into machine
code, you're locked into a specific chip architecture, library calls,
memory mapping, and all that stuff that is very processor architecture
and operating system specific.
Solaris isn't just "software" as in an application, it's an operating
system. A peer of Linux and Windows, if you will. Whether you
have a solaris for x86 binary or solaris for SPARC is another
question to resolve.
Best Regards,
--
Todd H.
http://www.toddh.net/
| |
| fAnSKyer 2006-11-22, 1:17 pm |
| Thanks.
Very Clear 
Cheers
Todd H. wrote:
> "fAnSKyer" <fanskyer@gmail.com> writes:
>
>
> In short, you're screwed. Cygwin will not help you. You need a
> Solaris box.
>
> When source code is compiled into object code then linked into machine
> code, you're locked into a specific chip architecture, library calls,
> memory mapping, and all that stuff that is very processor architecture
> and operating system specific.
>
> Solaris isn't just "software" as in an application, it's an operating
> system. A peer of Linux and Windows, if you will. Whether you
> have a solaris for x86 binary or solaris for SPARC is another
> question to resolve.
>
> Best Regards,
> --
> Todd H.
> http://www.toddh.net/
| |
| Rick Jones 2006-11-27, 1:18 pm |
| fAnSKyer <fanskyer@gmail.com> wrote:
> I got in trouble, When I am trying to run a Solaris Unix compiled
> C++ program [no GUI I guess, only 90KB after compiled] in linux, I
> got an error: "this binary code can not run"
> The problem is that I don't have the source code. What I know is
> this code is compiled in Unix Solaris system, I am curious and need
> a solution. How to run this code? will cygwin help? Need I install
> a Solaris software?
Strictly speaking, and as already pointed-out, you likely need a
system running Solaris. Having said that, _in theory_ if Solaris (and
other OSes such as HP-UX) can offer ways to run "Linux" binaries it
should be technically possible for "Linux" to offer ways to run
"Solaris" binaries. Of course I've no idea if any of the Linux
offering offer such an offering 
I _have_ heard that Fujitsu (?) talkes-up something about running
emulated SPARC binaries faster than SPARC. I don't recall what the OS
was, but I suspect that some web searching could find their
announcement. Whether that stuff would/could help you here I do not
know.
rick jones
--
oxymoron n, Hummer H2 with California Save Our Coasts and Oceans plates
these opinions are mine, all mine; HP might not want them anyway... 
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
| |
| Casper H.S. Dik 2006-11-27, 1:18 pm |
| Rick Jones <rick.jones2@hp.com> writes:
>I _have_ heard that Fujitsu (?) talkes-up something about running
>emulated SPARC binaries faster than SPARC. I don't recall what the OS
>was, but I suspect that some web searching could find their
>announcement. Whether that stuff would/could help you here I do not
>know.
Wrong company:
http://transitive.com/news/news_20060927.htm
Of course, "industry standard Itanium processor" has us rolling
on the floor every time.
Casper
|
|
|
|
|