Popular Posts

Mar 9, 2020

How to Install Oracle Developer Studio 12.6

How to Install Oracle Developer Studio 12.6

APPLIES TO :  Solaris 10 and Solaris 11

ISSUE :  Currently no ISO images available with IPS repositories for Oracle Solaris Studio, nor with patches for Oracle Solaris Studio.

GOAL :  Install Oracle Developer Studio 12.6

SOLUTION :  Install Oracle Solaris Studio 12.6 From a Tar File 

Prerequisites :   Solaris 10 and Solaris 11

               1. Download Oracle Developer Studio 12.6.
                       Download Link

               2. Extract the tar file using the appropriate command for your platform:
                       bzcat download-directory/SolarisStudio12.6-solaris-sparc-bin.tar.bz2 | tar -xf -
                       The contents are unpacked in a directory named: SolarisStudio12.4-OS-platform-bin where OS is solaris or linux

               3. Install the operating system patches as described below. (Oracle Solaris 10 only)
                       installation-directory/install_patches.sh

               4How to Create a Local IPS Repository for Oracle Solaris Studio (Doc ID 2100640.1)
                       There currently are no ISO images available with IPS repositories for Oracle Solaris Studio, nor with patches for Oracle Solaris Studio., This is the topic of BUG:22099153.


Part I: Get the certificates

If the certificates have already been downloaded, there is no need to download them again.
1.) Go to https://pkg-register.oracle.com
2.) Select Oracle Solaris Studio Support -> Show Details
3.) Click on the link to the "certificate page", currently at https://pkg-register.oracle.com/register/certificate
4.) Download both Key and Certificate
5.) Give the downloaded files recognizable names, for example:
solarisstudio-support-pkg.oracle.com.certificate.pem
solarisstudio-support-pkg.oracle.com.key.pem

Part II: Setting up the Repository Server

The repository server needs to be able to connect to https://pkg-register.oracle.com.
No Solaris packages or Oracle Solaris Studio packages will be installed on the repository server.
Only the local IPS repository will be created and populated.
How exactly the repository is created should not matter; steps 7 and 8
are examples, but if you prefer a different approach, use your own preferred method
to create the local IPS repository.
6.) Transfer Key and Certificate to the repository server, into a directory where the superuser can access the pem files
7.) Create a zfs pool for the rlocal IPS epository:
The example instructions below put the repository under rpool/export/local/solarisstudio
$ sudo zfs create rpool/export/local
$ sudo zfs create -o compression=on -o atime=off rpool/export/local/solarisstudio
Check:
$ zfs get -r compression,atime rpool/export/local
NAME PROPERTY VALUE SOURCE
rpool/export/local compression off default
rpool/export/local atime on default
rpool/export/local/solarisstudio compression on local
rpool/export/local/solarisstudio atime off local
8.) Create the repository:
$ sudo pkgrepo create /export/local/solarisstudio
9) Create a file update-studio-124 which looks like this:
$ cat update-studio-124
DIRECTORY=<DIR_CONTAINING_CERTS>
PRODUCT=solarisstudio-support-pkg.oracle.com
KEY=${DIRECTORY}/${PRODUCT}.key.pem
CERT=${DIRECTORY}/${PRODUCT}.certificate.pem
# if the certificates do not cover Oracle Solaris Studio Support,
# use the https://pkg.oracle.com/solarisstudio/release repository instead.
SOURCE=https://pkg.oracle.com/solarisstudio/support/
TARGET=/export/local/solarisstudio
pkgrecv -s $SOURCE -d $TARGET --key $KEY --cert $CERT -r \
developer/solarisstudio-124
# "-m all-timestamps" is default in Solaris 11.2.
# Add "-m latest" option to download only the most recent version of each patch
pkgrecv -s $SOURCE -d $TARGET --key $KEY --cert $CERT -r \
developer/solarisstudio-124/*
[ $? -eq 0 ] && pkgrepo refresh -s $TARGET

10) Run this script:
$ sudo sh -x update-studio-124
+ DIRECTORY=<DIR_CONTAINING_CERTS>
+ PRODUCT=solarisstudio-support-pkg.oracle.com
+ KEY=<DIR_CONTAINING_CERTS>/solarisstudio-support-pkg.oracle.com.key.pem
+ CERT=<DIR_CONTAINING_CERTS>/solarisstudio-support-pkg.oracle.com.certificate.pem
+ SOURCE=https://pkg.oracle.com/solarisstudio/support/
+ TARGET=/export/local/solarisstudio
+ pkgrecv -s https://pkg.oracle.com/solarisstudio/support/ -d /export/local/solarisstudio --key <DIR_CONTAINING_KEY>/solarisstudio-support-pkg.oracle.com.key.pem --cert <DIR_CONTAINING_CERT>/solarisstudio-support-pkg.oracle.com.certificate.pem -r developer/solarisstudio-124
Processing packages for publisher solarisstudio ...
Retrieving manifests for dependency evaluation ...
PROCESS ITEMS GET (MB) SEND (MB)
Completed 36/36 1448/1448 4231/4231
+ pkgrecv -s https://pkg.oracle.com/solarisstudio/support/ -d /export/local/solarisstudio --key <DIR_CONTAINING_KEY>/solarisstudio-support-pkg.oracle.com.key.pem --cert <DIR_CONTAINING_CERT>/solarisstudio-support-pkg.oracle.com.certificate.pem -r 'developer/solarisstudio-124/*'
Processing packages for publisher solarisstudio ...
Retrieving manifests for dependency evaluation ...
PROCESS ITEMS GET (MB) SEND (MB)
developer/solarisstudio-124/backend 0/37 44/1315 15/4579
[...]
+ [ 0 -eq 0 ]
+ pkgrepo refresh -s /export/local/solarisstudio
Initiating repository refresh.
$

At this point, the local IPS repository has been created, and populated with Oracle Solaris Studio 12.4. It is now possible to create a copy of the repository and move that
to another server, for example via an ISO image, or by transferring a tarball.

11.) Create Repository Server.
The example sets up an HTTP server
$ sudo svccfg -s application/pkg/server setprop pkg/inst_root=/export/local/solarisstudio
$ sudo svccfg -s application/pkg/server setprop pkg/readonly=true
$ svcprop -p pkg/inst_root application/pkg/server
/export/local/solarisstudio
$ sudo svcadm refresh application/pkg/server
$ sudo svcadm enable application/pkg/server

At this point, the repository server is completely set up.

Part III: Client setup

The client must have a working solaris publisher to add Solaris packages.
On any client on which the compilers are supposed to be installed:
12.) Configure the publisher for solarisstudio:
$ sudo pkg set-publisher -G '*' -M '*' -g http://<repository server>:80 solarisstudio
$ pkg publisher
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F http://pkg.oracle.com/solaris/release/
solarisstudio origin online F http://<repository server>:80/
Check:
$ sudo pkg refresh solarisstudio
$ pkg list -af 'pkg://solarisstudio/*'
NAME (PUBLISHER) VERSION IFO
developer/solarisstudio-124 (solarisstudio) 12.4-1.0.0.1 ---
developer/solarisstudio-124 (solarisstudio) 12.4-1.0.0.0 ---
developer/solarisstudio-124/backend (solarisstudio) 12.4-1.0.6.0 ---
developer/solarisstudio-124/backend (solarisstudio) 12.4-1.0.5.0 ---
developer/solarisstudio-124/backend (solarisstudio) 12.4-1.0.4.0 ---
developer/solarisstudio-124/backend (solarisstudio) 12.4-1.0.3.0 ---
developer/solarisstudio-124/backend (solarisstudio) 12.4-1.0.2.0 ---
developer/solarisstudio-124/backend (solarisstudio) 12.4-1.0.1.0 ---
developer/solarisstudio-124/backend (solarisstudio) 12.4-1.0.0.0 ---
developer/solarisstudio-124/c++ (solarisstudio) 12.4-1.0.10.0 ---
developer/solarisstudio-124/c++ (solarisstudio) 12.4-1.0.9.0 ---
developer/solarisstudio-124/c++ (solarisstudio) 12.4-1.0.7.0 ---
developer/solarisstudio-124/c++ (solarisstudio) 12.4-1.0.5.0 ---
developer/solarisstudio-124/c++ (solarisstudio) 12.4-1.0.4.0 ---
developer/solarisstudio-124/c++ (solarisstudio) 12.4-1.0.2.0 ---
developer/solarisstudio-124/c++ (solarisstudio) 12.4-1.0.1.0 ---
developer/solarisstudio-124/c++ (solarisstudio) 12.4-1.0.0.0 ---
developer/solarisstudio-124/cc (solarisstudio) 12.4-1.0.4.0 ---
developer/solarisstudio-124/cc (solarisstudio) 12.4-1.0.3.0 ---
[...]

13.) Install the packages:
$ sudo pkg install solarisstudio-124

4. How to Create a Copy of a Solaris Studio IPS Repository (Doc ID 2101537.1)


~Judi~

No comments:

Post a Comment

Popular Posts