3.3 Installing Oracle R Distribution on Oracle Solaris

You can install Oracle R Distribution on Oracle Solaris on Intel and on SPARC platforms.

Before you begin the installation, verify that your Oracle Solaris version is supported by Oracle R Enterprise, as described in the table of platform requirements in Oracle R Enterprise System Requirements. You can use this command to verify the version of Oracle Solaris:

uname -r

To install Oracle R Distribution on Oracle Solaris:

  1. Go to the Oracle Open Source Software Download page for Oracle R Distribution.

  2. Download the files for your installation, where Rversion is the version you are installing and sunstudioversion is the version of Sun Studio. For R-3.3.0, Rversion is 3.3.0.0:

    • For x86 64-bit systems:

      ord-Rversion-sol10-x86-64-sunstudioversion.tar.gz
      ord-Rversion-supporting-sol10-x86-64-sunstudioversion.tar.gz
      
    • For SPARC 64-bit systems:

      ord-Rversion-sol10-sparc-64-sunstudioversion.tar.gz
      ord-Rversion-supporting-sol10-sparc-64-sunstudioversion.tar.gz
      
  3. Uncompress the first file, either sol110-x86-64 or sol10-sparc.

  4. Run install.sh as root to install the Solaris PKG file for Oracle R Distribution, where installation_path is the path to the directory in which to install Oracle R Distribution.

    # install.sh installation_path
    

    If you do not specify an installation path, then the default path is used. The default path is:

    • For Solaris SPARC: /usr/lib/sparcv9

    • For Solaris Intel: /usr/lib/amd64

  5. Uncompress the second file, either supporting-sol10-x86-64 or supporting-sol10-sparc, to a local directory such as $ORACLE_HOME/lib. Add that directory to $LD_LIBRARY_PATH.

    These tar files contain the shared libraries for libR.so:

    • libiconv.so.2

    • libncurses.so.5

    • libreadline.so.6

    • libsunperf.so

    libsunperf.so, Sun Performance Library, and its dependent shared libraries are included in Oracle Solaris Studio.

  6. Set environment variables as follows, where installation_path is the path to the directory in which to install Oracle R Distribution:

    • For ksh:

      # export R_HOME=installation_path/R
      # export PATH=$R_HOME/bin:$PATH
      # export LD_LIBRARY_PATH=$R_HOME/lib:$LD_LIBRARY_PATH
      
    • For csh:

      # setenv R_HOME=installation_path/R
      # setenv PATH=$R_HOME/bin:$PATH
      # setenv LD_LIBRARY_PATH=$R_HOME/lib:$LD_LIBRARY_PATH
      
  7. Run the following command to verify that libR.so is picking up its shared library dependencies correctly from the local directory.

    # ldd -r installation_path/R/lib/libR.so
    
  8. Start R by typing R at the command prompt:

    % R