![]() |
|||||
· Home of “Community Software for Solaris” ( CSW ) |
|||||
|
|
The Sun Studio 11 Installer is based on Java technology :
There are only two ways to run the Sun Studio 11 installer; on the console or graphically. If you are trying to install into a zone, regardless of it being a Solaris 8 Branded Zone or a native Solaris 10 Zone then you are best to simply use the zone console via zlogin and use the text based installer.
For my first attempt I will try to use whatever JDK is currently installed in the Solaris 8 Branded Zone. That really means that I will use whatever JDK was in the real server before I made it into a virtual server.
# PATH=/usr/xpg4/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/bin:/usr/ccs/bin;export PATH
# java -version
java version "1.2.2"
Solaris VM (build Solaris_JDK_1.2.2_17b, native threads, sunwjit)
#
# ls
120760-19 CD1
120761-03 CD2
121015-06 InstallGuide
121017-13 LICENSE_README
121019-09 QuickInstallREADME.html
121021-07 QuickInstallREADME_ja.html
121023-06 QuickInstallREADME_zh.html
122135-03 installer
122142-03 patchlist
122149-01
# ./installer -nodisplay
java.lang.NullPointerException
at java.util.Hashtable.get(Compiled Code)
at javax.swing.UIDefaults.get(Compiled Code)
at javax.swing.MultiUIDefaults.get(Compiled Code)
at javax.swing.UIDefaults.getUIClass(UIDefaults.java:299)
at javax.swing.UIDefaults.getUI(UIDefaults.java:368)
at javax.swing.UIManager.getUI(UIManager.java:561)
at javax.swing.JPanel.updateUI(JPanel.java:103)
at javax.swing.JPanel.<init>(JPanel.java:63)
at javax.swing.JPanel.<init>(JPanel.java:93)
at com.sun.wizards.core.WizardComponent.<init>(WizardComponent.java:159)
at com.sun.wizards.core.WizardComposite.<init>(WizardComposite.java:83)
at com.sun.wizards.core.WizardTreeManager.createWizardPanel(WizardTreeManager.java:890)
at com.sun.wizards.core.WizardTreeManager.<init>(WizardTreeManager.java:325)
at com.sun.wizards.core.CommandLineConsole.run(Compiled Code)
at java.lang.Thread.run(Thread.java:479)
Could not find class during deserialization of the WizardState:java.lang.ClassNotFoundException: com.sun.install.products.Product
java.lang.ClassNotFoundException: com.sun.install.products.Product
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.ClassNotFoundException.<init>(Compiled Code)
at java.io.ObjectInputStream.inputObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.util.Hashtable.readObject(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Compiled Code)
at java.io.ObjectInputStream.invokeObjectReader(Compiled Code)
at java.io.ObjectInputStream.inputObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at com.sun.wizards.core.GenericWizardState.setWizardState(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Compiled Code)
at com.sun.wizards.core.ArchiveReader.callObjectMethod(Compiled Code)
at com.sun.wizards.core.ArchiveReader.<init>(Compiled Code)
at com.sun.forte.install.tasks.AddChildWizardTask.fetchChildWizards(Compiled Code)
at com.sun.forte.install.tasks.AddChildWizardTask.perform(Compiled Code)
at com.sun.wizards.core.Sequence.perform(Compiled Code)
at com.sun.wizards.core.SequenceManager.run(Compiled Code)
at java.lang.Thread.run(Thread.java:479)
java.lang.NullPointerException
at java.util.Hashtable.get(Compiled Code)
at javax.swing.UIDefaults.get(Compiled Code)
at javax.swing.MultiUIDefaults.get(Compiled Code)
at javax.swing.UIDefaults.getUIClass(UIDefaults.java:299)
at javax.swing.UIDefaults.getUI(UIDefaults.java:368)
at javax.swing.UIManager.getUI(UIManager.java:561)
at javax.swing.JPanel.updateUI(JPanel.java:103)
at javax.swing.JPanel.<init>(JPanel.java:63)
at javax.swing.JPanel.<init>(JPanel.java:93)
at com.sun.wizards.core.WizardComponent.<init>(WizardComponent.java:159)
at com.sun.wizards.core.WizardComposite.<init>(WizardComposite.java:83)
at com.sun.wizards.core.WizardTreeManager.createWizardPanel(WizardTreeManager.java:890)
at com.sun.wizards.core.WizardTreeManager.<init>(WizardTreeManager.java:325)
at com.sun.wizards.core.CommandLineConsole.run(Compiled Code)
at java.lang.Thread.run(Thread.java:479)
Could not find class during deserialization of the WizardState:java.lang.ClassNotFoundException: com.sun.install.products.Product
java.lang.ClassNotFoundException: com.sun.install.products.Product
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.ClassNotFoundException.<init>(Compiled Code)
at java.io.ObjectInputStream.inputObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.util.Hashtable.readObject(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Compiled Code)
at java.io.ObjectInputStream.invokeObjectReader(Compiled Code)
at java.io.ObjectInputStream.inputObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at com.sun.wizards.core.GenericWizardState.setWizardState(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Compiled Code)
at com.sun.wizards.core.ArchiveReader.callObjectMethod(Compiled Code)
at com.sun.wizards.core.ArchiveReader.<init>(Compiled Code)
at com.sun.wizards.core.GenericWizardState.setWizardState(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Compiled Code)
at com.sun.wizards.core.ArchiveReader.callObjectMethod(Compiled Code)
at com.sun.wizards.core.ArchiveReader.<init>(Compiled Code)
at java.lang.reflect.Constructor.newInstance(Native Method)
at install.instantiateArchiveReader(ArchiveClassLoader.java:203)
at install.<init>(ArchiveClassLoader.java:143)
at install.main(Compiled Code)
That did not work well at all. I make the guess that my JDK is just too old to be used with the modern Sun Studio 11 installer and thus I install the lastest JDK. Does that help ? Let's see :
# ls -lap /usr/ | grep jdk
drwxr-xr-x 3 root bin 512 Apr 23 00:46 jdk/
# ls -lap /usr/jdk
total 13
drwxr-xr-x 3 root bin 512 Apr 23 00:46 ./
drwxr-xr-x 34 root sys 1024 Apr 23 00:46 ../
drwxr-xr-x 3 root bin 512 Apr 23 00:46 instances/
lrwxrwxrwx 1 root other 18 Apr 23 00:46 jdk1.6.0_06 -> instances/jdk1.6.0/
lrwxrwxrwx 1 root other 11 Apr 23 00:46 latest -> jdk1.6.0_06/
# PATH=/usr/xpg4/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/ccs/bin;export PATH
# which java
/bin/java
# java -version
java version "1.2.2"
Solaris VM (build Solaris_JDK_1.2.2_17b, native threads, sunwjit)
# /usr/jdk/instances/jdk1.6.0/bin/java -version
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)
# echo $PATH
/usr/xpg4/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/ccs/bin
#
# PATH=/usr/jdk/instances/jdk1.6.0/bin:/usr/xpg4/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/ccs/bin;export PATH
#
# java -version
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)
# ./installer -nodisplay
Welcome to the Install Wizard for Sun Studio 11 developer tools, an integrated
set of tools for the development and deployment of enterprise-class
applications.
<Press ENTER to continue> {"!" exits}
ENTITLEMENT for SOFTWARE
THIS ENTITLEMENT EVIDENCES YOUR LICENSE TO USE THE SUN SOFTWARE SET
FORTH BELOW UNDER THE TERMS OF THE SUN MICROSYSTEMS, INC. SOFTWARE
LICENSE AGREEMENT.
Licensee/Company: Entity receiving Software.
Effective Date: Date Sun delivers the Software to You.
Software: Sun Studio 11.
Permitted Use: You may reproduce and use the Software for Individual,
Commercial, and Research and Instructional Use.
License Term: Perpetual (subject to termination under the SLA).
Licensed Unit: Software Copy.
Licensed Unit Count: Unlimited.
Sun Microsystems, Inc. ("Sun") SOFTWARE LICENSE AGREEMENT
READ THE TERMS OF THIS AGREEMENT ("AGREEMENT") CAREFULLY BEFORE OPENING
SOFTWARE MEDIA PACKAGE. BY OPENING SOFTWARE MEDIA PACKAGE, YOU AGREE TO
THE TERMS OF THIS AGREEMENT. IF YOU ARE ACCESSING SOFTWARE
ELECTRONICALLY, INDICATE YOUR ACCEPTANCE OF THESE TERMS BY SELECTING
THE "ACCEPT" BUTTON AT THE END OF THIS AGREEMENT. IF YOU DO NOT AGREE
TO ALL OF THE TERMS, PROMPTLY RETURN THE UNUSED SOFTWARE TO YOUR PLACE
OF PURCHASE FOR A REFUND OR, IF SOFTWARE IS ACCESSED ELECTRONICALLY,
<--[10%]--[ENTER To Continue]--[n To Finish]--> {"<" goes back, "!" exits} n
Accept this agreement by typing "Accept"
at the following prompt. If you do not accept this agreement,
type "Decline", or select "!" to exit. {"<" goes back, "!" exits} Accept
Select Locale localized data for the languages showing a checked box will be
installed:
[X] 1 English [en] [CURRENT LOCALE]
[X] 2 Japanese [ja]
[X] 3 Chinese [zh]
To check a particular locale, enter its number, or 0 when you are finished
[0] {"<" goes back, "!" exits}:
Select the components you want to install by clicking the radio button in the
Default Install column or Custom Install column. If you choose a Custom
Install, you can select which subcomponents you want to install. To continue,
click Next.
No Install Default Install Custom Install Product
---------- --------------- -------------- -------
0. [ ] [X] [ ] Solaris patches
1. [ ] [X] [ ] Sun Studio Software
2. [ ] [X] [ ] Documentation
3. [ ] [X] [ ] Source Distribution
4. [ ] [X] [ ] Sun Performance Library
5. Done
Enter the number that corresponds with the product you want to change.
Select the number that corresponds with Done when you are finished. [5] {"<"
goes back, "!" exits}
Enter the directory name where you want to install the product.
Studio Software [/opt] {"<" goes back, "!" exits}
Checking disk space.
The following items will be installed:
Product: Solaris patches
Location: /opt
Size: 42.44 MB
------------------------
libm patch required by compilers for SPARC 1.22 MB
XSun patch required by XEmacs for SPARC 24.38 MB
libmtsk patch required by compilers for SPARC 429.85 KB
/usr/ccs/bin/sccs and /usr/ccs/bin/make patch for SPARC 774.78 KB
Shared library patch for C++ for SPARC 11.01 MB
Interprocedural optimizer patch (Linker patch) for SPARC 4.35 MB
assembler patch for SPARC 337.78 KB
Product: Sun Studio Software
Location: /opt
Size: 923.14 MB
----------------------------
Standalone Tools: DBX Debugging Tools 20.35 MB
Standalone Tools: Building Software 2.33 MB
IDE 58.46 MB
Compilers Fortran 95 with Legacy Libraries 4.9 MB
External editors 290.78 MB
X-designer 42.86 MB
Compilers C++ 237.73 MB
Compilers C 65.53 MB
Garbage Collectors 2.63 MB
Performance Tools 9.96 MB
Sun Studio 11 Demos 45.15 KB
Demos 394.24 KB
Standalone Tools: LockLint 852.61 KB
Compilers Fortran 95 298.21 MB
Product: Documentation
Location: /opt
Size: 22.84 MB
----------------------
Documentation Set 22.84 MB
Product: Source Distribution
Location: /opt
Size: 2.02 MB
----------------------------
Exuberant ctags source code 254.88 KB
Red-Black Tree Library 1.1 518.51 KB
DwarfLibrary 20.4 1.26 MB
Sun Studio 11 STLPort 1.83 MB
Product: Sun Performance Library
Location: /opt
Size: 307.96 MB
--------------------------------
Sun Performance Library 553.34 MB
Ready to Install
1. Install Now
2. Start Over
3. Exit Installation
What would you like to do [1] {"<" goes back, "!" exits}?
Installing Solaris patches
|-1%--------------25%-----------------50%-----------------75%--------------100%|
Installing Sun Studio Software
Exception in thread "Thread-65" java.lang.NoClassDefFoundError: com/sun/install/panels/ComponentSelectionListener
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getDeclaredMethod(Class.java:1935)
at java.awt.Component.isCoalesceEventsOverriden(Component.java:5726)
at java.awt.Component.access$100(Component.java:162)
at java.awt.Component$2.run(Component.java:5680)
at java.awt.Component$2.run(Component.java:5678)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Component.checkCoalescing(Component.java:5677)
at java.awt.Component.<init>(Component.java:5646)
at java.awt.Container.<init>(Container.java:245)
at javax.swing.JComponent.<init>(JComponent.java:581)
at javax.swing.JPanel.<init>(JPanel.java:65)
at javax.swing.JPanel.<init>(JPanel.java:92)
at javax.swing.JPanel.<init>(JPanel.java:100)
at com.sun.wizards.core.WizardComponent.<init>(WizardComponent.java:159)
at com.sun.wizards.core.WizardComponent.<init>(WizardComponent.java:145)
at com.sun.wizards.core.WizardLeaf.<init>(WizardLeaf.java:78)
at com.sun.install.panels.ComponentPanel.<init>(ComponentPanel.java:144)
at com.sun.install.products.CreateSimpleUninstaller.createSimpleUninstallerTree(CreateSimpleUninstaller.java:42)
at com.sun.install.products.UninstallArchiveCreator.writeArchiveFile(UninstallArchiveCreator.java:537)
at com.sun.install.products.UninstallArchiveCreator.writeArchive(UninstallArchiveCreator.java:317)
at com.sun.install.products.UninstallUnit.install(UninstallUnit.java:740)
at com.sun.install.products.Product.performInstallation(Product.java:649)
at com.sun.install.tasks.ProductTask.perform(ProductTask.java:153)
at com.sun.wizards.core.Sequence.perform(Sequence.java:343)
at com.sun.wizards.core.SequenceManager.run(SequenceManager.java:226)
at java.lang.Thread.run(Thread.java:619)
#
I resigned myself to accepting that one can not use the Sun Studio 11 tools in a Solaris 8 Branded Zone because one can not install them. If only there were a better installer then we would be fine. Not being one to give up easily I then simply tried to extract the tarball that you can download from Sun.
Please get the Studio 11 Compiler at the Sun Studio 11 Compilers and Tools for OpenSolaris Developers webpage.
Resolving sdlc-esd.sun.com... 96.6.121.19, 96.6.121.35
Connecting to sdlc-esd.sun.com|96.6.121.19|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 237211897 (226M) [application/x-sdlc]
Saving to: `foo.tar.bz2'
100%[=======================================>] 237,211,897 1.06M/s in 3m 35s
2008-04-27 13:06:48 (1.05 MB/s) - `foo.tar.bz2' saved [237211897/237211897]
bash-3.2$ mv foo.tar.bz2 sunstudio11-ii-20070829-sol-sparc.tar.bz2
bash-3.2$ pwd
/export/home/dclarke
bash-3.2$ su -
Password:
Sun Microsystems Inc. SunOS 5.8 Generic Patch February 2004
# cd /opt
# /opt/csw/bin/star -x -U -bz file=/export/home/dclarke/sunstudio11-ii-20070829-sol-sparc.tar.bz2
/opt/csw/bin/star: 102533 blocks + 2048 bytes (total of 1049939968 bytes = 1025332.00k).
#
# /opt/SUNWspro/bin/cc -V
cc: Sun C 5.8 Patch 121015-04 2007/01/10
usage: cc [ options] files. Use 'cc -flags' for details
LAST UPDATED : Sun Apr 27 12:45:44 EDT 2008
|
|||||||