Cool Tools and non-default install paths

We have several Sun Studio versions installed under /opt/StudioNN/SUNWSpro, where NN reflects the Studio version.

According to the installation webpage http://cooltools.sunsource.net/studioaddon/install.html one can relocate the install package with the -R option to pkgadd, but this will still keep the /opt/SUNWspro path element. This means that we can't use the pkgadd installation method, because I would need /opt/Studio11/SUNWspro while the pkgadd -R /opt/Studio11 results in an install path /opt/Studio11/opt/SUNWspro.Is there a way around this problem, e.g. a more flexible installer, like the one that installs the Sun Studio product?

Regards,

Bernd

[691 byte] By [dtugrid] at [2007-11-25 23:11:44]
# 1

You need to use -a <admin-file> to tell a different default

installation location.

For example, in your case, do

pkgadd -a /tmp/spot_admin -d <download-dir> SPROprfns

Inside /tmp/spot_admin, you can have the following -

%cat /tmp/spot_admin

mail=

instance=unique

partial=nocheck

runlevel=nocheck

idepend=quit

rdepend=quit

space=quit

setuid=nocheck

conflict=nocheck

action=nocheck

basedir=/opt/Studio11

%

Let us know if this works.

a_tong at 2007-7-5 18:01:43 > top of Java-index,Open Source Technologies,OpenSPARC...
# 2

If you do not want to use an admin-file, then specify 'none',

the pkgadd will prompt you for a basedir.

For example, for your case, do

pkgadd -a none -d <download-dir> SPROprfns

Then you will be prompted for the base directory,

at which time you can input

/opt/Studio11

and continue.

a_tong at 2007-7-5 18:01:43 > top of Java-index,Open Source Technologies,OpenSPARC...
# 3
Great - that helped! I didn't know, that the basedir in the admin file is different from the directory specified with the -R option.
dtugrid at 2007-7-5 18:01:43 > top of Java-index,Open Source Technologies,OpenSPARC...