Re: Multi OS sun environment, running into pkg issues..

From: Casper H.S. Dik (Casper.Dik_at_Sun.COM)
Date: 09/04/03

  • Next message: Jonno: "Re: Solaris 9 Security Administrator Certification"
    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.
    

  • Next message: Jonno: "Re: Solaris 9 Security Administrator Certification"

    Relevant Pages

    • Re: md5
      ... some changes but it also needed to retain binary compatibility. ... it's not the default and not possible on Solaris 2.5.1 and before. ... Expressed in this posting are my opinions. ... to opinions held by my employer, Sun Microsystems. ...
      (comp.unix.solaris)
    • Re: Which Sun Blade?
      ... Just be aware that the box will consume a bit of power, ... Make sure it runs Solaris and that Solaris is running picld; ... Expressed in this posting are my opinions. ... to opinions held by my employer, Sun Microsystems. ...
      (comp.sys.sun.hardware)
    • Re: strange behaviour of library in static initialization context
      ... >Linux, FreeBSD, NetBSD and MacOSX, without any problems. ... not limited to Solaris. ... Expressed in this posting are my opinions. ... to opinions held by my employer, Sun Microsystems. ...
      (comp.unix.solaris)
    • Re: gethostans: buffer overflow exploit on solaris / sendmail
      ... >sendmail on solaris 9. ... >possible attempt to exploit buffer overflow while looking up mail.xxx.be ... Expressed in this posting are my opinions. ... to opinions held by my employer, Sun Microsystems. ...
      (comp.unix.solaris)
    • Re: Thread Local Storage
      ... >initialization is handled by the linker and the threading library, ... a feature like this existed in the initial Solaris ... Expressed in this posting are my opinions. ... to opinions held by my employer, Sun Microsystems. ...
      (comp.unix.programmer)