LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 04-09-2004, 11:56 AM   #1
josealexandre
LQ Newbie
 
Registered: Sep 2003
Location: Brazil
Distribution: Ubuntu
Posts: 22

Rep: Reputation: 15
SUN Solaris vs Linux


Hi, Guys!

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?

Regards,
Jose Alexandre
 
Old 04-09-2004, 11:58 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
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?
 
Old 04-09-2004, 12:06 PM   #3
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
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.
 
Old 04-09-2004, 12:08 PM   #4
josealexandre
LQ Newbie
 
Registered: Sep 2003
Location: Brazil
Distribution: Ubuntu
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
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?
Hi, trickykid!

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. : - (
 
Old 04-09-2004, 12:16 PM   #5
josealexandre
LQ Newbie
 
Registered: Sep 2003
Location: Brazil
Distribution: Ubuntu
Posts: 22

Original Poster
Rep: Reputation: 15
Hello, iainr!

I will look for a Solaris machine. But... I won't find a SUN5 Solaris. Cannot the binary run in a SUN9 Solaris machine?

Regards,
Jose Alexandre
 
Old 04-09-2004, 01:45 PM   #6
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally posted by josealexandre
Hello, iainr!

I will look for a Solaris machine. But... I won't find a SUN5 Solaris. Cannot the binary run in a SUN9 Solaris machine?

Regards,
Jose Alexandre
Most likely I'm sure the filesystems and library's have changed, etc. You'd probably have to install all the dependencies on the Sun5 on the Solaris 9 machine in order for the binary to work.

PS, I'm moving this to our Solaris forum where it seems more suitable.
 
Old 04-09-2004, 05:19 PM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,500

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Sorry guys but there's no such beast like SUN5 Solaris vs SUN9 Solaris, perhaps Solaris 2.5 vs Solaris 9 is what you're talking about.

Anyway, put your binary on a Solaris machine (any kind) and type:

$ file yourBinary

That will give you a clue about it

Last edited by jlliagre; 04-09-2004 at 05:21 PM.
 
Old 04-12-2004, 01:54 AM   #8
erebus47
LQ Newbie
 
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
hrm...

Solaris would most-likely be on a SPARC machine right? If your linux machine x86, that might also be another factor to consider.
 
Old 04-12-2004, 06:05 AM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,500

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Yes, just a reason why I asked for the "file" command output actually ...
 
Old 04-12-2004, 06:13 AM   #10
josealexandre
LQ Newbie
 
Registered: Sep 2003
Location: Brazil
Distribution: Ubuntu
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by jlliagre
Yes, just a reason why I asked for the "file" command output actually ...
OK. Now, I understand.

The output to "$ file binary" command is:

FMatrix: ELF 32-bit MSB executable, SPARC, version 1 (SYSV), statically linked, stripped

But... What does that mean? Cannot I run this binary one in a PC machine?

Regards,
Jose Alexandre
 
Old 04-12-2004, 07:39 AM   #11
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,500

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
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.

Last edited by jlliagre; 04-12-2004 at 12:17 PM.
 
Old 04-12-2004, 08:53 AM   #12
josealexandre
LQ Newbie
 
Registered: Sep 2003
Location: Brazil
Distribution: Ubuntu
Posts: 22

Original Poster
Rep: Reputation: 15
OK, jlliagre! Thank you very much.
 
Old 04-25-2004, 12:56 AM   #13
yuva_mca
LQ Newbie
 
Registered: Oct 2003
Posts: 21

Rep: Reputation: 15
Hi jlliagre

Could give me yr email address.

Best Regards
Yuvaraj.K
email : yuva_mca@yahoo.com
 
Old 04-25-2004, 08:44 AM   #14
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,500

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
yuva_mca,
there's a small icon labeled "email" just in the bottom of each message pane, why not using it ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How-to manage a Sun Solaris Server remotely with a Linux W Laoch Solaris / OpenSolaris 2 09-15-2005 02:15 AM
HowTo mount all Solaris (sun) ufs slices under Linux? DrLou Solaris / OpenSolaris 1 11-17-2004 11:36 AM
Linux or Solaris 9 on Sun Sparc Ultra 60 3d kt8993 Solaris / OpenSolaris 1 10-26-2004 01:32 AM
Connect Sun Solaris Ultra5 workstation to Linux server? EnderEd Linux - Networking 1 04-20-2004 09:53 AM
How can I have Sun solaris,linux,win2k on a pc athe same time? mimi Linux - General 18 08-29-2002 03:36 AM


All times are GMT -5. The time now is 07:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration