Thursday, October 24, 2024

Installing Developer Studio 12.6 on SPARC Solaris

Oracle seem to offer Developer Studio compilers free of charge. You just need to sign in with your free Oracle account, request access to software packages and accept license terms.

I encountered a number of snags with this process:

First, I could not figure out where to download the key and certificate files, which would allow me to set up pkg publisher. The instructions read:

Download your personal key and certificate files, called pkg.oracle.com.key.pem and pkg.oracle.com.certificate.pem from the certificate page.

The last two words: "certificate page" are linked to the certificate page, however the link is nearly impossible to see, since the text highlight colour blends in with the normal text colour on the page.

Second, the instructions for setting up the publisher seem to be incorrect. They tell you to download the key and certificate files to your home directory and then run 'pkg set-publisher'. However this results in errors:

# pkg set-publisher \
-k ./pkg.oracle.com.key.pem \
-c ./pkg.oracle.com.certificate.pem \
-G'*' -g https://pkg.oracle.com/solarisstudio/release solarisstudio

Unable to locate certificate '//pkg.oracle.com.certificate.pem' for publisher 'solarisstudio' needed to access 'https://pkg.oracle.com/solarisstudio/release/'.

It looks like the key and certificate files need to be copied to /var/pkg/ssl directory in order for them to be correctly located:

# ls -1 pkg*
pkg.oracle.com.certificate.pem
pkg.oracle.com.key.pem

# cp pkg* /var/pkg/ssl
# pkg set-publisher \
-k /var/pkg/ssl/pkg.oracle.com.key.pem \
-c /var/pkg/ssl/pkg.oracle.com.certificate.pem \
-G '*' -g https://pkg.oracle.com/solarisstudio/release solarisstudio

# pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
solaris        (syspub)     origin   online T <system-repository>
solarisstudio               origin   online F https://pkg.oracle.com/solarisstudio/release/

# pkg install --accept developerstudio-126
...

# /opt/developerstudio12.6/bin/cc -V
cc: Studio 12.6 Sun C 5.15 SunOS_sparc 2017/05/30

All done.

No comments:

Post a Comment