Are you sure this is a solaris binary?

I had thought the "file" command would tell you, like this:

Solaris Binary: 
houst0n:dev0> file /bin/ls
/bin/ls:        ELF 32-bit LSB executable 80386 Version 1 [FPU], dynamically 
linked, not stripped, no debugging information available

Linux Binary:
houst0n:dev0> file squid
squid:          ELF 32-bit LSB executable 80386 Version 1, dynamically linked, 
not stripped

However, it appears that it doesn't actually say what os the binary is for (it 
does on linux and freebsd... Odd)

Oh well you can find out in other ways:

Solaris Bin:
houst0n:dev0> strings /usr/sbin/zlogin | grep SUN
SUNW_OST_OSCMD


Linux Bin:
houst0n:dev0> strings squid | grep linux
/lib/ld-linux.so.2


ldd may also help:


houst0n:dev0> ldd ./squid
squid: Cannot find /lib/ld-linux.so.2
ldd: ./squid: execution failed due to signal 9

Hope this helps!
 
 
This message posted from opensolaris.org

Reply via email to