Re: Multi OS sun environment, running into pkg issues..
From: Casper H.S. Dik (Casper.Dik_at_Sun.COM)
Date: 04 Sep 2003 07:44:18 GMT
"Alan Perry" <email@example.com> writes:
>I need to set up a server that can serve of say Top for solaris 2.6, 2.7,
>2.8, 2.9 all at the same time. I am at a loss, and am not sure how to intall
>all these packages on say 1 solaris 2.8 box and get all the libraries and OS
>specific files right, as well then have each of my client boxes check and
>mount the proper /usr/local/bin directory!
Current versions of top (3.5beta<mumble>) will actually work regardless
of OS release version.
Since there's usually only a handful of executables that requires
an OS specific version, you'd typically write a wrapper script:
if [ -x "$0.$osrev" ]
exec "`basename $0`.$osrev" "$@"
exec "$0.$osrev" "$@"
echo "$0: not found" 1>&2
Urban legends have it that you'd also need to take the architecture
(sun4u/sun4m/sun4d) into account but that has never been true on
With the advent of 64 bit Solaris the picture is somewhat muddier:
find . -name top\*
./top (wrapper script)
./top.5.7 (copy of isaexec)
./top.5.8 (copy of isaexec)
./top.5.9 (copy of isaexec)
As early as 5.5.1 I had a version of top that ignored /dev/kmem open
failures and still runs on Solaris 9 (32 bit binary on 64 bit OS)
-- Expressed in this posting are my opinions. They are in no way related to opinions held by my employer, Sun Microsystems. Statements on Sun products included here are not gospel and may be fiction rather than truth.