LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Installing ORACLE/Sun Workshop (official Sun C/C++/FORTRAN) Compiler (https://www.linuxquestions.org/questions/solaris-opensolaris-20/installing-oracle-sun-workshop-official-sun-c-c-fortran-compiler-4175608365/)

Laserbeak 06-22-2017 01:41 AM

Installing ORACLE/Sun Workshop (official Sun C/C++/FORTRAN) Compiler
 
I've seemed to follow all the instructions, got keys and installed them in order to be able to download the software from Sun/ORACLE and was able to install parts of it, including an apparently working C compiler (just used some test code to compile).

However the IDE doesn't seem to want to install and if I type the command to install the whole thing I get this error:

Code:

root@sunshine:~# pkg install --accept developerstudio-125
Creating Plan (Running solver): -
pkg install: No solution was found to satisfy constraints

maintained incorporations:
  pkg://solaris/consolidation/SunVTS/SunVTS-incorporation@7.19.2-0.175.3.0.0.26.3
  pkg://solaris/consolidation/X/X-incorporation@0.5.11-0.175.3.1.0.2.1489
  pkg://solaris/consolidation/admin/admin-incorporation@0.5.11-0.175.1.0.0.5.0
  pkg://solaris/consolidation/cacao/cacao-incorporation@0.5.11-0.175.3.0.0.24.0
  pkg://solaris/consolidation/cde/cde-incorporation@0.5.11-0.175.3.0.0.16.0
  pkg://solaris/consolidation/cns/cns-incorporation@0.5.11-0.175.3.0.0.24.0
  pkg://solaris/consolidation/dbtg/dbtg-incorporation@0.5.11-0.175.3.0.0.29.0
  pkg://solaris/consolidation/ddt/ddt-incorporation@8.9.15.9.11
  pkg://solaris/consolidation/desktop/desktop-incorporation@0.5.11-0.175.3.0.0.28.0
  pkg://solaris/consolidation/desktop/gnome-incorporation@0.5.11-0.175.3.0.0.26.0
  pkg://solaris/consolidation/gfx/gfx-incorporation@0.5.11-0.175.1.0.0.5.0
  pkg://solaris/consolidation/ips/ips-incorporation@0.5.11-0.175.3.0.0.26.0
  pkg://solaris/consolidation/java-7/java-7-incorporation@1.7.0.85.33-0
  pkg://solaris/consolidation/java-8/java-8-incorporation@1.8.0.60.27-0
  pkg://solaris/consolidation/jdmk/jdmk-incorporation@0.5.11-0.175.2.0.0.22.0
  pkg://solaris/consolidation/l10n/l10n-incorporation@0.5.11-0.175.3.0.0.26.2
  pkg://solaris/consolidation/man/man-incorporation@0.5.11-0.175.3.0.0.28.0
  pkg://solaris/consolidation/nspg/nspg-incorporation@0.5.11-0.175.1.0.0.5.0
  pkg://solaris/consolidation/nvidia/nvidia-incorporation@0.5.11-0.175.3.0.0.17.0
  pkg://solaris/consolidation/osnet/osnet-incorporation@0.5.11-0.175.3.1.0.5.0
  pkg://solaris/consolidation/sfw/sfw-incorporation@0.5.11-0.175.3.0.0.30.0
  pkg://solaris/consolidation/sic_team/sic_team-incorporation@0.5.11-0.175.3.0.0.20.0
  pkg://solaris/consolidation/solaris_re/solaris_re-incorporation@0.5.11-0.175.3.1.0.5.0
  pkg://solaris/consolidation/ssm/ssm-incorporation@2.3.3.0-0.175.3.0.0.29.0
  pkg://solaris/consolidation/sunpro/sunpro-incorporation@0.5.11-0.175.3.20.0.2.0
  pkg://solaris/consolidation/ub_javavm-6/ub_javavm-6-incorporation@1.6.0.999.99-0
  pkg://solaris/consolidation/userland/userland-incorporation@0.5.11-0.175.3.1.0.3.0
  pkg://solaris/consolidation/xvm/xvm-incorporation@0.5.11-0.175.1.0.0.5.0
  pkg://solaris/entire@0.5.11-0.175.3.1.0.5.2

Plan Creation: Package solver is unable to compute solution.
Dependency analysis is unable to determine exact cause.
Try specifying expected results to obtain more detailed error messages.
Include specific version of packages you wish installed.
root@sunshine:~#

Any ideas?

Like I said, I did partially install it by installing subpackages, so I can use the official Sun cc, not gcc. But the entire package still seems to elude me.

Code:

root@sunshine:~# cc -V
cc: Studio 12.5 Sun C 5.14 SunOS_i386 2016/05/31
root@sunshine:~# cat test-cc.c
#include <stdio.h>

int main (int argc, char * argv[]) {

  printf("Compiled with SUN Compiler!\n");

}
root@sunshine:~# cc -o test-cc test-cc.c
root@sunshine:~# ./test-cc
Compiled with SUN Compiler!
root@sunshine:~# file test-cc
test-cc:        ELF 32-bit LSB executable 80386 Version 1 [SSE], dynamically linked, not stripped
root@sunshine:~# cc -m64 -o test-cc test-cc.c
root@sunshine:~# file test-cc
test-cc:        ELF 64-bit LSB executable AMD64 Version 1 [SSE], dynamically linked, not stripped
root@sunshine:~# ./test-cc
Compiled with SUN Compiler!
root@sunshine:~#

Note gcc is still installed:

Code:

root@sunshine:~# gcc --version
gcc (GCC) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

root@sunshine:~#

Oh, it also works with FORTRAN:

Code:

root@sunshine:~# cat test-fortran.f90
program hello
print *,"Hello World!"
end program hello
root@sunshine:~# which f90
/opt/developerstudio12.5/bin/f90
root@sunshine:~# f90 -V
f90: Studio 12.5 Fortran 95 8.8 SunOS_i386 2016/05/31
root@sunshine:~# f90 -o test-fortran test-fortran.f90
root@sunshine:~# ./test-fortran
 Hello World!
root@sunshine:~#


Laserbeak 06-22-2017 12:15 PM

* PARTIALLY solved *

I was able to get it installed up to version 124, yet 125 still won't install.

I seem to have to install 123 then 124, but still 125 wouldn't install.

But at least I have the Sun IDE now, even if it isn't the latest version!

Everything installs in /opt.

Pretty cool, huh?

https://imageshack.com/i/pmBWOX2xp


All times are GMT -5. The time now is 03:06 AM.