This discussion is archived
3 Replies Latest reply: Jan 31, 2012 6:48 AM by 914359 RSS

Solaris Studio 12.3 install on Ubuntu

911938 Newbie
Currently Being Moderated
[I realize that I'm installing SS12.3 on an unsupported system.]

I've unpacked the tar file (http://download.oracle.com/otn/solaris/studio/SolarisStudio12.3-linux-x86-bin.tar.bz2) and am able to start the IDE with 'solstudio.'

The problem that I'm having is that I'm unable to run a 64-bit version of the fortran compiler, 'f90' or 'f95'. The files in '.../solarisstudio12.3/prod/bin' are all 32-bit executables. For example:

mparis@T5500:~/Install/SolarisStudio12.3-linux-x86-bin/solarisstudio12.3/prod/bin$ file f*
f90: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
f90comp: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
f90.f77: POSIX shell script text executable
fbe: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
fdumpmod: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
fpp: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
fpr: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
fsplit: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped

While the files in '.../solarisstudio12.3/bin/amd64' are 64-bit but do not seem to be the compilers. I have:

mparis@T5500:~/Install/SolarisStudio12.3-linux-x86-bin/solarisstudio12.3/bin/amd64$ file *
collect: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
dbx: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), stripped
er_archive: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
er_cp: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
er_export: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
er_mpipp: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
er_mv: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
er_otfdump: empty
er_print: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
er_rm: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
er_vtunify: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
ss_attach: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), stripped

I'm obviously confused about something. Any help is welcome.

Thank you!
  • 1. Re: Solaris Studio 12.3 install on Ubuntu
    koberoi Newbie
    Currently Being Moderated
    Some of the Studio binaries are 32-bit. Irrespective of the compiler binaries (32-bit / 64-bit), the compilers can produce both 32-bit and 64-bit code (-m32, -m64).

    To run any 32-bit binaries, including those included in Studio, you need to get the 32-bit version of glibc installed on your system from the Linux distribution. We list out those packages for Oracle Linux / RHEL in the release notes:

    http://docs.oracle.com/cd/E24457_01/html/E21986/ossrn.html#scrolltoc

    I'm not familiar with Ubuntu, but libc6-dev-i386, libc6-i386 &/or libc6-i686 may be what you're looking for.

    /kso
  • 2. Re: Solaris Studio 12.3 install on Ubuntu
    911938 Newbie
    Currently Being Moderated
    Here are the steps for installing Solaris Studio 12.3 on Ubuntu 11.10 (YMMV):

    1) Download Tarfile on Linux x86 (368 MB) from http://www.oracle.com/technetwork/server-storage/solarisstudio/downloads/index.html (be sure to accept the OTN license agreement by selecting the appropriate radio button).
    2) Move SolarisStudio12.3-linux-x86-bin.tar.bz2 to a work/scratch directory (this is optional; install it as you like). I'm using ~/Install
    3) cd ~/Install; tar jxvf SolarisStudio12.3-linux-x86-bin.tar.bz2
    4) Install the 32-bit (libc6, lib32gcc1,lib32stdc++6, etc.) libraries: sudo apt-get install ia32-libs
    5) sudo mkdir /opt/oracle
    6) sudo mv ~/Install/SolarisStudio12.3-linux-x86-bin/solarisstudio12.3 /opt/oracle/.
    7) Add the executables (/opt/oracle/solarisstudio12.3/bin) to your path.

    Hope this helps someone.

    Edited by: MarkWayne on Jan 25, 2012 8:36 AM

    Edited by: MarkWayne on Jan 25, 2012 8:38 AM

    Edited by: MarkWayne on Jan 25, 2012 8:39 AM
  • 3. Re: Solaris Studio 12.3 install on Ubuntu
    914359 Newbie
    Currently Being Moderated
    Thanks MarkWayne! This was very helpful.

    I would just like to add, that I tried to compile the standard "Hello, World" C source code in a terminal and got a lot of errors on Ubuntu 11.10 (64-bit).
    The first error line reads:
    "/usr/include/features.h", line 323: cannot find include file: <bits/predefs.h>

    I located bits/predefs.h in my /usr/include/x86_64-linux-gnu folder and supplying -I/usr/include/x86_64-linux-gnu to my compiler command solved the problem.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points