Solaris / OpenSolarisThis forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have a simple question. I have a binary program compiled for SUN5 Solaris. I cannot run this binary in a linux machine. I tried, but it was impossible. So... Is Linux incompatible with Solaris? Do you think I get to run this software in a machine with SUN9 Solaris?
Well, the files structures are different from one another and the Solaris binary most likely was only programmed to work on Solaris. Have you attempted to look for an alternative to the binary for Linux?
Given that a binary that works on one version of one linux distro often won't work on a different version of the same distro or a different contemporary distro , I think the odds of a binary working on Solaris and Linux which are totally different OSs is slim to say the least.
With different OSs, you have three levels of compatibility. The most common is none at all : you can't even compile the same code on different servers without tweaking it. Some OSs have source compatability (e.g. AIX 5 and Linux) where in most cases you can take source code written for Linux and compile it to run on AIX without amendment; as long as you follow certain rules and don't do anything too wacky. Having the same compiled binary running OK on different OSs is the third and, as I say, is uncommon to say the least.
Originally posted by trickykid Well, the files structures are different from one another and the Solaris binary most likely was only programmed to work on Solaris. Have you attempted to look for an alternative to the binary for Linux?
This is a very specific and very old software. I only got a binary done in 1997. There is not an alternative to the binary for Linux. : - (
Bad news for you, but there's no way to run it on an Intel, the first reason being you'll need a SPARC and Sun H/W emulator/simulator, and there are not I'm aware of.
SPARC is an open standard RISC processors architecture, usually big endian, while PCs run a proprietary little endian CISC architecture, the instruction sets are completely differents and the data will be reversed.
If you happen to find the source code of your program, it would probably compile easily on a intel solaris platform though, perhaps just endianness issues.
Btw, the opposite, running intel solaris binaries on sparc solaris, is probably achievable by the means of bochs, a portable x86 emulator.