This content has been marked as final. Show 7 replies
user6814269 wrote:These instructions saying to run the installer only apply if you download the installer. If you download a tar file instead, all you have to do is untar it. If you install via IPS, you don't need to run the installer either.
The Installation docs keep talking about running the script "solarisstudio.sh" to start the installer (GUI or text). I have downloaded Solaris Studio in all 4 variants (SPARC/x86, Solaris/Linux), and for the life of me I cannot find this script...
It seems that by extracting the tarfile and then simply copying the solarisstudio12.3 subdirectory to /opt, say, and setting PATH to contain solarisstudio12.3/[prod/]bin the compilers can be found -- kind of -- , but one still needs to install system/header files etc.Well, yes, that seems quite normal.
user6814269 wrote:If you are on Solaris 11, you can use the pkg command to search/install files you need, find out what package it is in, see if it is installed, and then install it. e.g.
It seems that by extracting the tarfile and then simply copying the solarisstudio12.3 subdirectory to /opt, say, and setting PATH to contain solarisstudio12.3/[prod/]bin the compilers can be found -- kind of -- , but one still needs to install system/header files etc.
koberoi@s11ext: ~$ pkg search stdio.h
INDEX ACTION VALUE PACKAGE
basename file usr/include/stdio.h pkg: */system/header* @0.5.11-0.175.0.0.0.2.1
basename file usr/gcc/4.5/include/c++/4.5.2/tr1/stdio.h pkg:/email@example.com
basename file usr/gcc/4.5/lib/gcc/sparc-sun-solaris2.11/4.5.2/include/ssp/stdio.h pkg:/firstname.lastname@example.org
basename file usr/gcc/4.5/lib/gcc/i386-pc-solaris2.11/4.5.2/include/ssp/stdio.h pkg:/email@example.com
basename file usr/include/ast/stdio.h pkg:/firstname.lastname@example.org
koberoi@s11ext:~$ pkg info -r system/header
Summary: Core Header Files
Description: Core C/C++ header files
State: Not installed
Build Release: 5.11
Packaging Date: October 19, 2011 07:31:58 AM
Size: 10.36 MB
koberoi@s11ext:~$ sudo pkg install system/header
Packages to install: 1
Create boot environment: No
Create backup boot environment: No
DOWNLOAD PKGS FILES XFER (MB)
Completed 1/1 1560/1560 3.1/3.1
Install Phase 1681/1681
Package State Update Phase 1/1
Image State Update Phase 2/2
I am having the same problem. I downloaded Solaris Studio from here:
And was using this install guide:
Where do we get the solarisstudio.sh script from? Why isn't it included in the Tarfile?
I called Oracle last week but I haven't gotten any feedback.
In the "Package Installation" column, you can download Studio which is packaged in various OS packaging types (SVR4 for Solaris, RPM for Linux). These come with an installer, which instructions are provided in the Oracle Solaris Studio documentation. As all OS packaging-based software installations, this requires elevated permissions.
In the "Tarfile" column, you can download Studio and "unpack" it to an installed filesystem using the instructions on the download page. (e.g. bzcat [download_directory]/SolarisStudio12.3-linux-x86-bin.tar.bz2 | /bin/tar -xf -) After unpacking, you can set up your paths, etc. and you should be ready to go.
Use the tarfile version on Solaris 11 for now. Depending on what you are building, you may need additional OS packages (e.g. system/header, etc.)
We just released the IPS version for Oracle Solaris Studio 12.2 and the 12.3 version will be available shortly:
First of all: thanks for all the replies.
I indeed forgot to say that I tried to install Studio 12.3 on Solaris 11.
It would be VERY helpful if the download pages explained in a bit more detail that if one downloads the tarfile, then after copying one has to check which other packages should be installed and how the PATH should be set. It would be still a (minor) PITA, but at least one would know where to start...
The recommended solution is, however, to wait until Studio 12.3 is packaged properly for Solaris 11. Finding out manually which additional packages are needed reminds me of the early Linux days... Solaris 11 should be better than that... :-)