Re: Multi OS sun environment, running into pkg issues..
From: Casper H.S. Dik (Casper.Dik_at_Sun.COM)
Date: 09/04/03
- Previous message: Jason Creighton: "Re: responsible license"
- In reply to: Alan Perry: "Multi OS sun environment, running into pkg issues.."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 04 Sep 2003 07:44:18 GMT
"Alan Perry" <alan_perry@sbcglobal.net> 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:
#!/bin/sh
osrev=`uname -r`
if [ -x "$0.$osrev" ]
then
exec "`basename $0`.$osrev" "$@"
exec "$0.$osrev" "$@"
else
echo "$0: not found" 1>&2
exit 1
fi
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
Solaris 2.x.
With the advent of 64 bit Solaris the picture is somewhat muddier:
find . -name top\*
./top (wrapper script)
./top.5.3
./top.5.4
./top.5.5
./top.5.5.1
./sparcv7/top.5.7
./sparcv7/top.5.8
./sparcv7/top.5.9
./sparcv9/top.5.7
./sparcv9/top.5.8
./sparcv9/top.5.9
./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)
Casper
-- 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.
- Previous message: Jason Creighton: "Re: responsible license"
- In reply to: Alan Perry: "Multi OS sun environment, running into pkg issues.."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|