sunstudio 12: could not install some modules
Hi,
I installed sunstudio 12 on a new machine with Solaris 9 x86.
When I start it, it displays a list of warnings about missing netbeans modules and ask me if I want to disable them:
[code]
Warning - could not install some modules:
ATD Workshop Project Import - The module named org.netbeans.modules.cnd/1 was needed and not found.
ATD Workshop Project Import - The module named org.netbeans.modules.cnd.makeproject/1 was needed and not found.
ATD Performance Analyzer Actions - The module named org.netbeans.modules.cnd/1 was needed and not found.
ATD Performance Analyzer Actions - The module named org.netbeans.modules.cnd.makeproject/1 was needed and not found.
Performance Analyzer - The module named org.netbeans.lib.terminalemulator was needed and not found.
Tools Common - The module named org.netbeans.lib.terminalemulator was needed and not found.
ATD Sun Studio Core - The module named org.netbeans.modules.cnd/1 was needed and not found.
ATD Sun Studio Core - The module named org.netbeans.modules.cnd.makeproject/1 was needed and not found.
dbx Debugger UI - The module named org.netbeans.lib.terminalemulator was needed and not found.
dbx Debugger UI - The module named org.netbeans.modules.cnd/1 was needed and not found.
dbx Debugger UI - The module named org.netbeans.modules.cnd.makeproject/1 was needed and not found.
ATD ATActions SPI - The module named org.netbeans.modules.cnd/1 was needed and not found.
ATD ATActions SPI - The module named org.netbeans.modules.cnd.makeproject/1 was needed and not found.
4 further modules could not be installed due to the above problems.
[/code]
Obviously, I want those debugging modules.
How can I fix this ?
Here is my PATH:
[code]
/usr/local/bin:/opt/SUNWspro/bin:/usr/bin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin /bin:/bin:/usr/ucb:/usr/sfw/bin:/usr/apache/bin:/usr/local/sbin:/usr/sbin:/usr/s adm/bin:/usr/local/ssl/bin:/usr/local/samba/bin:/opt/jdk1.5.0_12/jre/lib/i386/:/ opt/netbeans-5.5.1/bin
[/code]
java -version => 1.5.0_12
there is a netbeans-5.5.1 folder under /opt
For info, I can compile c++ projects from the shell.
Thanks for your help.
Francois
[2309 byte] By [
francoisa] at [2007-11-27 8:47:03]

# 4
If you did not uninstall Netbeans yet, could you please try one experiment?
If you run "bash -x `which sunstudio`", it will print how it finds Netbeans.
You will see lines like these, but with your installation directory:
+ NBHOME=
+ '[' -n '' ']'
+ '[' -z '' -a -d /export/home/sser-dlight/SUNWspro/../netbeans-5.5.1 ']'
+ validate_netbeans_cnd /export/home/sser-dlight/SUNWspro/../netbeans-5.5.1 error
+ '[' -f /export/home/sser-dlight/SUNWspro/../netbeans-5.5.1/platform6/core/core.jar -a -d /export/home/sser-dlight/SUNWspro/../netbeans-5.5.1/cnd1 ']'
+ NBHOME=/export/home/sser-dlight/SUNWspro/../netbeans-5.5.1
This will probably help us to understand what is wrong with your installation.
Thanks,
Nik
# 5
Hi,
thanks for your answers.
I'll list what I did in case it helps someone else:
I tried the update first through "NetBeans update center".
I selected everything but that didn't solver the issue (I didn't see any explicit reference to dbx in the packages added).
Then I uninstalled sunstudio:
[code]
cd /opt
java -cp . uninstall_Sun_Studio_12
[/code]
Then I uninstalled netbeans:
[code]
cd /opt/netbeans-5.5.1/_uninst
./uninstaller
[/code]
After that, I noticed there was a second uninstall folder (my guess from sunstudio). So I uninstalled it too:
[code]
cd /opt/netbeans-5.5.1/_uninst2
./uninstaller
[/code]
All 3 uninstall completed without errors.
There were some leftovers (mostly some netbeans modules and prerequisites) so I renamed the folders just in case:
[code]
mv netbeans-5.5.1 netbeans-5.5.1_old
mv prepare_system_prerequisites prepare_system_prerequisites_old
[/code]
At that point, I ran the installer again.
It tried to install but failed. Here's a small part of the log:
[code]
...
/tmp/installQIayVk/checkinstallSIayVk: /tmp/response.SPROfdxd: cannot create
Processing package instance <SPROfdxd> from </tmp/install-intel-S2/packages-intel-S2>
Sun Studio 12 X-Designer GUI Builder
(i386) 12.0,REV=2007.04.11
pkgadd: ERROR: request script did not complete successfully
Installation of <SPROfdxd> failed.
No changes were made to the system.
Error: pkgadd failed for SPROfdxd
...
[/code]
I was running this as root so I'm not sure why it failed.
I was reusing the installation files I extracted from the pkg.tar.bz2 under /tmp so I deleted everything and extracted it again from a different place.
I also deleted the .sunstudio, .netbeans and .java in my home folder.
I was previously using cygwin XWin to run the installer with the UI.
This time, I did it from a shell terminal (putty) and used the -nodisplay option.
It installed successfully.
Then I go back to the ui and sunstudio starts normally now: no missing modules and I have the dbx options in the menu
Again, thanks for your time.
Francois