Sunstudio 11 updates wont install - Solaris

This is a discussion on Sunstudio 11 updates wont install - Solaris ; Hi All, Running Solaris 10 x86 here, I recently installed Sunstudio 11. Since then at least 6 new updates for the compiler and its tools appear when I run the update client, however, when I try to install the updates, ...

+ Reply to Thread
Results 1 to 14 of 14

Thread: Sunstudio 11 updates wont install

  1. Sunstudio 11 updates wont install

    Hi All,

    Running Solaris 10 x86 here, I recently installed Sunstudio 11. Since
    then at least 6 new updates for the compiler and its tools appear when
    I run the update client, however, when I try to install the updates,
    they ALL fail.

    Any ideas? Have I not set an environment variable that the installer
    is looking for?

    I have the compiler installed in $HOME/sunstudio/SUNWspro

    And I have these set in my .profile

    CC=/export/home/alex/sunstudio/SUNWspro/bin/cc
    export CC
    CXX=/export/home/alex/sunstudio/SUNWspro/bin/CC
    export CXX

    What have I missed?

    Alex

  2. Re: Sunstudio 11 updates wont install

    I forgot to mention, I also have
    $HOME/sunstudio/SUNWspro/bin set in my path.

    typing "sunstudio" at the shell prompt loads the IDE,
    so I can only assume I have a working install

  3. Re: Sunstudio 11 updates wont install

    Alex wrote:
    > I forgot to mention, I also have
    > $HOME/sunstudio/SUNWspro/bin set in my path.
    >
    > typing "sunstudio" at the shell prompt loads the IDE,
    > so I can only assume I have a working install


    Did a bit of looking around:

    # pwd
    /var/sadm/patch/120762-02
    # cat log
    pkgadd: ERROR: The package is currently installed on the
    system in the
    global zone. To install the new instance of this package in the global
    zone only, you must specify the -G option. To install the new instance
    of this package in all zones you must first remove the existing instance
    of this package from the global zone first (via pkgrm) and then install
    the new instance of this package in all zones.
    pkgadd: ERROR: package cannot be installed on this system/zone

    I dont understand what this means. I can only assume this is why the
    updates wont install.

  4. Re: Sunstudio 11 updates wont install

    Alex wrote:
    > Hi All,
    >
    > Running Solaris 10 x86 here, I recently installed Sunstudio 11. Since
    > then at least 6 new updates for the compiler and its tools appear when
    > I run the update client, however, when I try to install the updates,
    > they ALL fail.
    >
    > Any ideas? Have I not set an environment variable that the installer
    > is looking for?
    >

    You have to supply the -G option to patchadd.

    I've found the easiest way to obtain and install the patches is with to
    use pca.

    --
    Ian Collins.

  5. Re: Sunstudio 11 updates wont install

    Alex wrote:
    > I dont understand what this means. I can only assume this is why the
    > updates wont install.


    While in the global zone, cd /var/sadm/spool and you will see the patches in
    the directory. It's likely that there will be a patchid.jar file and a
    patchid.jar.dir directory.

    For each patch you want to install, cd patchid.jar.dir/patchid read the
    README to check that the patch is one you want to install, if it is then
    enter the followin as root

    # patchadd -G .

    and the patch will install. Once finished you can delete the patchid.jar
    file and patchid.jar.dir directory.

    The jar files are just zip'ed directories so if the patchid.jar.dir doesn't
    exist you can unzip -q patchid.jar and cd into the resulting patchid
    directory and install the patch.

    --
    Geoff Lane, Airstrip One


  6. Re: Sunstudio 11 updates wont install

    news@buffy.sighup.org.uk wrote:
    > While in the global zone, cd /var/sadm/spool and you will see the patches in
    > the directory. It's likely that there will be a patchid.jar file and a
    > patchid.jar.dir directory.
    >
    > For each patch you want to install, cd patchid.jar.dir/patchid read the
    > README to check that the patch is one you want to install, if it is then
    > enter the followin as root
    >
    > # patchadd -G .
    >
    > and the patch will install. Once finished you can delete the patchid.jar
    > file and patchid.jar.dir directory.
    >
    > The jar files are just zip'ed directories so if the patchid.jar.dir doesn't
    > exist you can unzip -q patchid.jar and cd into the resulting patchid
    > directory and install the patch.
    >


    Thanks for the response :-)

    I am still kinda new to solaris but am quite comfortable with linux/bsd.
    I dont understand the concept of 'zones'. Could someone explain or point
    me to a document that explains it?

    Thanks
    Alex

  7. Re: Sunstudio 11 updates wont install

    quoting Alex (Mon, 23 Oct 2006 18:13:45 -1000):

    > I am still kinda new to solaris but am quite comfortable with linux/bsd.
    > I dont understand the concept of 'zones'. Could someone explain or point
    > me to a document that explains it?


    I run five zones now. It's like having five diferent computers. But it all
    runs on just one instance of solaris on one machine. And believe me, you
    will not notice the difference in speed! It's a great way to have a
    seperate webserver, mailserver, dnszone, userzone or whatever you want all
    on one machine; all without delays. It is really great.

    I think a good reference can be found on the opensolaris site.
    Try http://www.opensolaris.org/zones/ or just google on "zones on
    opensolaris" A lot of links are there as also a lot of good articles.

    --
    dick -- http://nagual.nl/ -- PGP/GnuPG key: F86289CE
    ++ Running FreeBSD 6.1 +++ Solaris 10 6/06 ++

  8. Re: Sunstudio 11 updates wont install

    Dick Hoogendijk wrote:
    > I run five zones now. It's like having five diferent computers. But it all
    > runs on just one instance of solaris on one machine. And believe me, you
    > will not notice the difference in speed! It's a great way to have a
    > seperate webserver, mailserver, dnszone, userzone or whatever you want all
    > on one machine; all without delays. It is really great.
    >
    > I think a good reference can be found on the opensolaris site.
    > Try http://www.opensolaris.org/zones/ or just google on "zones on
    > opensolaris" A lot of links are there as also a lot of good articles.
    >


    Shall have a look at it, thanks for the info :-)

    Alex

  9. Re: Sunstudio 11 updates wont install

    news@buffy.sighup.org.uk wrote:
    > While in the global zone, cd /var/sadm/spool and you will see the patches in
    > the directory. It's likely that there will be a patchid.jar file and a
    > patchid.jar.dir directory.
    >
    > For each patch you want to install, cd patchid.jar.dir/patchid read the
    > README to check that the patch is one you want to install, if it is then
    > enter the followin as root
    >
    > # patchadd -G .
    >
    > and the patch will install. Once finished you can delete the patchid.jar
    > file and patchid.jar.dir directory.
    >
    > The jar files are just zip'ed directories so if the patchid.jar.dir doesn't
    > exist you can unzip -q patchid.jar and cd into the resulting patchid
    > directory and install the patch.
    >


    fantastic! it worked :-) Thanks a million

    Alex

  10. Re: Sunstudio 11 updates wont install

    Ian Collins wrote:
    > You have to supply the -G option to patchadd.
    >
    > I've found the easiest way to obtain and install the patches is with to
    > use pca.
    >


    I'll need to read up on PCA. not sure how to use it, but i am sure
    if i rtfm it will become clearer :-)

    Thanks!
    Alex

  11. Re: Sunstudio 11 updates wont install

    Alex wrote:
    > Ian Collins wrote:
    >
    >> You have to supply the -G option to patchadd.
    >>
    >> I've found the easiest way to obtain and install the patches is with to
    >> use pca.
    >>

    >
    > I'll need to read up on PCA. not sure how to use it, but i am sure
    > if i rtfm it will become clearer :-)
    >

    Download it, run pca -h for list of options.

    --
    Ian Collins.

  12. Re: Sunstudio 11 updates wont install

    Dick Hoogendijk wrote:
    > quoting Alex (Mon, 23 Oct 2006 18:13:45 -1000):
    >
    >> I am still kinda new to solaris but am quite comfortable with linux/bsd.
    >> I dont understand the concept of 'zones'. Could someone explain or point
    >> me to a document that explains it?

    >
    > I run five zones now. It's like having five diferent computers. But it all
    > runs on just one instance of solaris on one machine. And believe me, you
    > will not notice the difference in speed! It's a great way to have a
    > seperate webserver, mailserver, dnszone, userzone or whatever you want all
    > on one machine; all without delays. It is really great.
    >
    > I think a good reference can be found on the opensolaris site.
    > Try http://www.opensolaris.org/zones/ or just google on "zones on
    > opensolaris" A lot of links are there as also a lot of good articles.
    >

    That's a invalid link. I saw several articles when I searched for
    "zones" at the opensolaris site. Which do you recommend?

    --

    Gary Meerschaert

  13. Re: Sunstudio 11 updates wont install

    Alex wrote:
    > Ian Collins wrote:
    >> You have to supply the -G option to patchadd.
    >>
    >> I've found the easiest way to obtain and install the patches is with to
    >> use pca.

    >
    > I'll need to read up on PCA. not sure how to use it, but i am sure
    > if i rtfm it will become clearer :-)


    You would run "pca | grep Studio" to get a list of all Sun Studio patches
    which are not installed in their most recent revision, and then download,
    extract and install all you want with "pca -G -i ..".

    mp.
    --
    Systems Administrator | Institute of Scientific Computing | Univ. of Vienna
    | http://www.par.univie.ac.at/solaris/pca/
    Patch Check Advanced | Analyze, download and install patches for Sun Solaris

  14. Re: Sunstudio 11 updates wont install

    quoting Gary Meerschaert (Mon, 23 Oct 2006 08:12:09 -0400):
    > Dick Hoogendijk wrote:
    >> Try http://www.opensolaris.org/zones/ or just google on "zones on

    > That's a invalid link. I saw several articles when I searched for
    > "zones" at the opensolaris site. Which do you recommend?


    Yes, right.
    The link should be: http://opensolaris.org/os/community/zones/

    All links are worth reading but start with the FAQ:
    http://opensolaris.org/os/community/zones/faq

    Another usefull link:
    http://users.tpg.com.au/adsln4yb/zones.html

    Maybe too technical but hey, who cares..
    http://www.sun.com/bigadmin/features...l#packandpatch

    I like this blog:
    http://blogs.sun.com/jclingan/entry/...tion_using_the

    But again: start with the FAQ!

    --
    dick -- http://nagual.nl/ -- PGP/GnuPG key: F86289CE
    ++ Running FreeBSD 6.1 +++ Solaris 10 6/06 ++

+ Reply to Thread