3.3 Install Oracle R Distribution on Oracle Solaris
Instructions for installing 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 Machine Learning for R, as described in the table of platform requirements in Oracle Machine Learning for R System Requirements for On-Premises Database. You can use this command to verify the version of Oracle Solaris:
uname -r
To install Oracle R Distribution on Oracle Solaris:
-
Go to the Oracle Open Source Software Download page for Oracle R Distribution.
-
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
-
-
Uncompress the first file, either
sol110-x86-64
orsol10-sparc
. -
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
-
-
Uncompress the second file, either
supporting-sol10-x86-64
orsupporting-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. -
-
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
-
-
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
-
Start R by typing
R
at the command prompt:% R
Parent topic: Install R for Oracle Machine Learning for R