This chapter explains how to install R for Oracle R Enterprise. This chapter contains these topics:
Oracle R Enterprise requires an installation of R on the server computer and on each client computer that interacts with the server. R is third-party, open source software. Open source R is governed by GNU General Public License (GPL) and not by Oracle licensing.
See Also:
Table 1-2, "Oracle R Enterprise Server Support Matrix" for the versions of R that are supported with Oracle R Enterprise
R Project for Statistical Computing at http://www.r-project.org
ROracle is an open source R package that enables interaction between R and an Oracle database. ROracle is maintained and supported by Oracle.
ROracle is one of the open source supporting packages that is used by Oracle R Enterprise. The supporting packages are introduced in Section 1.2 and described in Table 6-2.
Oracle recommends that you use Oracle R Distribution, Oracle's free distribution of R, with Oracle R Enterprise. Oracle R Distribution offers significant advantages for Oracle R Enterprise.
Why Oracle R Distribution?
Oracle R Distribution simplifies the installation of R for Oracle R Enterprise.
Oracle R Distribution is supported by Oracle for customers of Oracle Advanced Analytics, Oracle Linux, and Oracle Big Data Appliance.
On Windows and Linux, Oracle R Distribution simplifies integration with the Intel Math Kernel Library (MKL). MKL greatly improves the performance of many mathematical computations in R, including highly vectorized and threaded Linear Algebra, Fast Fourier Transforms (FFT), Vector Math, and Statistics functions. (See Section 3.6, "Configuring Oracle R Distribution to Use MKL on the Client".)
On Oracle Solaris, Oracle R Distribution automatically uses Sun Performance Library. Like MKL for Linux and Windows, Sun Performance Library offers improved performance of many mathematical computations. Sun Performance Library is part of Oracle Solaris Studio.
Although Oracle recommends that you use Oracle R Distribution whenever possible, you can use open source R with Oracle R Enterprise. If you choose to use open source R, then you must build it from source. Use the following configuration parameters:
./configure --with-lapack --with-ICU=no --enable-R-shlib
See Also:
The R Installation and Administration manual for information about building R from source:
Section 7.4, "Installing Additional R Packages on Linux or UNIX"
”Using a Third-Party Package on the Client” in Oracle R Enterprise User's Guide
”Installing a Third-Party Package for Use in Embedded R Execution” in Oracle R Enterprise User's Guide
You can install Oracle R Distribution on Oracle Linux and on Redhat Enterprise Linux. Before you begin the installation, verify that your Linux version is supported by Oracle R Enterprise, as described in Table 1-1, "Oracle R Enterprise Platform Requirements".You can use this command to verify the Linux version:
# uname -r
Note:
For Oracle Linux systems that have access to the internet, Oracle recommends installing Oracle R Distribution from the Oracle public yum server at the following URL:http://public-yum.oracle.com/
This topic contains these sections:
Oracle recommends that you use yum to install Oracle R Distribution. Yum simplifies the installation of Oracle R Distribution by automatically resolving RPM dependencies. If you install the RPMs directly as shown in Section 3.2.2, then you must resolve dependencies manually.
To install Oracle R Distribution on Oracle Linux Using Yum:
Log in to the Linux server as root and change to the /etc/yum.repos.d
directory:
# cd /etc/yum.repos.d
List the contents of the directory to determine if the yum configuration file is present. The name of the configuration file is public-yum-
xxx
.repo
, where xxx
is either el5
, for Oracle Linux 5, 0l6
for Oracle Linux 6, or 0l7
, for Oracle Linux 7.
If the yum configuration file is not present, then download it from Oracle public yum by executing the wget
command for your Linux platform:
# wget http://public-yum.oracle.com/public-yum-el5.repo
or
# wget http://public-yum.oracle.com/public-yum-ol6.repo
or
# wget http://public-yum.oracle.com/public-yum-ol7.repo
Open public-yum-
xxx
.repo
in a text editor and specify enabled=1
for xxx
_latest
and xxx
_addons
, where xxx
indicates the version of Linux, either el5
, ol6
, or ol7
:
[xxx_latest] enabled=1 [xxx_addons] enabled=1
Also, for Oracle Linux 7 only:
[ol7_optional_latest] enabled = 1
The location of the Oracle R Distribution packages is specified in xxx
_addons
. The location of the dependencies for the Oracle R Distribution RPMs is specified in xxx
_latest
. For Oracle Linux 7 only, several dependencies are in optional_latest
.
The URLs for the Oracle R Distribution RPMs in the addons repository are shown in Example 3-1. Specify 3.1.1-2
if Rversion is 3.1.1. Specify 3.0.1-2
if Rversion is 3.0.1.
Example 3-1 Oracle R Distribution RPMs in addons Repository
Oracle Linux 5:
http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/x86_64/getPackage /R-Rversion.el5.x86_64.rpm http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/x86_64/getPackage /R-core-Rversion.el5.x86_64.rpm http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/x86_64/getPackage /R-devel-Rversion.el5.x86_64.rpm http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/x86_64/getPackage /libRmath-Rversion.el5.x86_64.rpm http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/x86_64/getPackage /libRmath-devel-Rversion.el5.x86_64.rpm http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/x86_64/getPackage /libRmath-static-Rversion.el5.x86_64.rpm
Oracle Linux 6:
http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/x86_64/getPackage /R-Rversion.el6.x86_64.rpm http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/x86_64/getPackage /R-core-Rversion.el6.x86_64.rpm http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/x86_64/getPackage /R-devel-Rversion.el6.x86_64.rpm http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/x86_64/getPackage /libRmath-Rversion.el6.x86_64.rpm http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/x86_64/getPackage /libRmath-devel-Rversion.el6.x86_64.rpm http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/x86_64/getPackage /libRmath-static-Rversion.el6.x86_64.rpm
Oracle Linux 7:
http://public-yum.oracle.com/repo/OracleLinux/OL7/addons/x86_64/getPackage /R-Rversion.el7.x86_64.rpm http://public-yum.oracle.com/repo/OracleLinux/OL7/addons/x86_64/getPackage /R-core-Rversion.el7.x86_64.rpm http://public-yum.oracle.com/repo/OracleLinux/OL7/addons/x86_64/getPackage /R-devel-Rversion.el7.x86_64.rpm http://public-yum.oracle.com/repo/OracleLinux/OL7/addons/x86_64/getPackage /libRmath-Rversion.el7.x86_64.rpm http://public-yum.oracle.com/repo/OracleLinux/OL7/addons/x86_64/getPackage /libRmath-devel-Rversion.el7.x86_64.rpm http://public-yum.oracle.com/repo/OracleLinux/OL7/addons/x86_64/getPackage /libRmath-static-Rversion.el7.x86_64.rpm
Note:
If you are not using the most recent version of Oracle Linux and you want to install dependent packages that are specific to your version, then you must enable the corresponding Oracle Linux repository.For example, to enable the Oracle Linux 5.8 repository instead of the latest repository, follow these steps:
Open the yum configuration file for Oracle Linux 5 in an editor.
/etc/yum.repos.d/public-yum-el5.repo
Locate the section for Oracle Linux 5, update 8.
[ol5_u8_base]
Change enabled=0
to enabled=1
.
The result looks like this:
[ol5_u8_base] name=Oracle Linux $releasever Update 8 installation media copy ($basearch) baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/8/ base/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle gpgcheck=1 enabled=1
Execute the yum install
command to install R. Specify 3.0.1
or 3.1.1
for Rversion
# yum install R-Rversion
To install the most recent version of R that is available on Oracle public yum:
# yum install R.x86_64
Note:
Do not assume that the most recent version of R on Oracle public yum is supported by your version of Oracle R Enterprise. Consult Table 1-2, "Oracle R Enterprise Server Support Matrix" to determine which version of R you should use.Oracle recommends that you use yum to install Oracle R Distribution, because yum automatically resolves RPM dependencies. However, if yum is not available, then you can install the RPMs directly and resolve the dependencies manually.
To download and install the RPMs, log in as root and execute this command for each RPM listed in Section 3.2.2.1:
rpm -Uvh rpm_name
The Oracle R Distribution RPMs for R 3.1.1 and R 3.0.1 are listed in these topics:
Oracle R Distribution 3.1.1 RPM Dependencies for Oracle Linux 5
"Oracle R Distribution 3.0.1 RPM Dependencies for Oracle Linux 5"
The Oracle R Distribution RPMs for Oracle Linux 5 are listed as follows:
http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/x86_64/getPackage /R-3.1.1-2.el5.x86_64.rpm http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/x86_64/getPackage /R-core-3.1.1-2.el5.x86_64.rpm http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/x86_64/getPackage /R-devel-3.1.1-2.el5.x86_64.rpm http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/x86_64/getPackage /libRmath-3.1.1-2.el5.x86_64.rpm http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/x86_64/getPackage /libRmath-devel-3.1.1-2.el5.x86_64.rpm http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/x86_64/getPackage /libRmath-static-3.1.1-2.el5.x86_64.rpm
If the dependent RPMs for Oracle Linux 5, listed in Section 3.2.2.2, are not automatically included, then download and install them explicitly.
The Oracle R Distribution dependent RPMs for Oracle Linux 5 are listed as follows:
atk-1.12.2-1.fc6.x86_64.rpm avahi-0.6.16-10.el5_6.x86_64.rpm avahi-compat-libdns_sd-0.6.16-10.el5_6.x86_64.rpm avahi-compat-libdns_sd-devel-0.6.16-10.el5_6.x86_64.rpm bitstream-vera-fonts-1.10-7.noarch.rpm bzip2-devel-1.0.3-6.el5_5.x86_64.rpm Cairo-1.2.4-5.el5.x86_64.rpm Cairo-devel-1.2.4-5.el5.x86_64.rpm chkfontpath-1.10.1-1.1.x86_64.rpm cups-1.3.7-30.el5_9.3.x86_64.rpm cups-devel-1.3.7-30.el5_9.3.x86_64.rpm cups-libs-1.3.7-30.el5_9.3.x86_64.rpm dbus-python-0.70-9.el5_4.x86_64.rpm desktop-file-utils-0.10-7.x86_64.rpm dialog-1.0.20051107-1.2.2.x86_64.rpm e2fsprogs-devel-1.39-36.0.1.el5_9.x86_64.rpm ed-0.2-39.el5_2.x86_64.rpm fontconfig-devel-2.4.1-7.el5.x86_64.rpm freetype-devel-2.2.1-32.el5_9.1.x86_64.rpm gcc-gfortran-4.1.2-54.el5.x86_64.rpm gdk-pixbuf-0.22.0-25.el5.x86_64.rpm gdk-pixbuf-devel-0.22.0-25.el5.x86_64.rpm ghostscript-8.70-14.el5_8.1.x86_64.rpm ghostscript-fonts-5.50-13.1.1.noarch.rpm glib2-devel-2.12.3-4.el5_3.1.x86_64.rpm gmp-4.1.4-10.el5.x86_64.rpm gnutls-devel-1.4.1-14.el5_10.x86_64 gtk2-2.10.4-29.el5.x86_64.rpm gtk+-1.2.10-57.el5.x86_64.rpm hicolor-icon-theme-0.9-2.1.noarch.rpm keyutils-libs-devel-1.2-1.el5.x86_64.rpm krb5-devel-1.6.1-70.el5_9.2.x86_64.rpm libfontenc-1.0.2-2.2.el5.x86_64.rpm libFS-1.0.0-3.1.x86_64.rpm libgcrypt-devel-1.4.4-7.el5_10.x86_64.rpm libgfortran-4.1.2-54.el5.x86_64.rpm libgpg-error-devel-1.4-2.x86_64.rpm libpng-devel-1.2.10-17.el5_8.x86_64.rpm libRmath-3.1.1-2.el5.x86_64.rpm libRmath-devel-3.1.1-2.el5.x86_64.rpm libselinux-devel-1.33.4-5.7.el5.x86_64.rpm libsepol-devel-1.15.2-3.el5.x86_64.rpm libtiff-3.8.2-19.el5_10.x86_64.rpm libtiff-devel-3.8.2-19.el5_10.x86_64.rpm libX11-devel-1.0.3-11.el5_7.1.x86_64.rpm libXau-devel-1.0.1-3.1.x86_64.rpm libXdmcp-devel-1.0.1-2.1.x86_64.rpm libXext-devel-1.0.1-2.1.i386.rpm libXext-devel-1.0.1-2.1.x86_64.rpm libXfont-1.2.2-1.0.4.el5_7.x86_64.rpm libXft-devel-2.1.10-1.1.x86_64.rpm libXrender-devel-0.9.1-3.1.x86_64.rpm mesa-libGL-devel-6.5.1-7.11.el5_9.x86_64.rpm netpbm-10.35.58-10.el5.x86_64.rpm netpbm-progs-10.35.58-10.el5.x86_64.rpm pango-1.14.9-8.0.1.el5_7.3.x86_64.rpm pango-devel-1.14.9-8.0.1.el5_7.3.x86_64.rpm paps-0.6.6-20.el5.x86_64.rpm pcre-devel-6.6-9.el5.x86_64.rpm poppler-0.5.4-19.el5.x86_64.rpm poppler-utils-0.5.4-19.el5_9.2.x86_64.rpm tcl-devel-8.4.13-6.el5.x86_64.rpm tetex-3.0-33.15.el5_8.1.x86_64.rpm tetex-dvips-3.0-33.15.el5_8.1.x86_64.rpm tetex-fonts-3.0-33.15.el5_8.1.x86_64.rpm tetex-latex-3.0-33.8.el5_5.6.x86_64.rpm tetex-latex-3.0-33.15.el5_8.1.x86_64.rpm texinfo-4.8-14.el5.x86_64.rpm texinfo-tex-4.8-14.el5.x86_64.rpm tk-devel-8.4.13-5.el5_1.1.x86_64.rpm ttmkfdir-3.0.9-23.el5.x86_64.rpm urw-fonts-2.3-6.1.1.noarch.rpm xorg-x11-font-utils-7.1-3.x86_64.rpm xorg-x11-proto-devel-7.1-13.el5.x86_64.rpm xorg-x11-xfs-1.0.2-5.el5_6.1.x86_64.rpm zlib-devel-1.2.3-7.el5.x86_64.rpm
The Oracle R Distribution RPMs for Oracle Linux 6 are listed as follows:
http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/x86_64/getPackage /R-3.1.1-2.el6.x86_64.rpm http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/x86_64/getPackage /R-core-3.1.1-2.el6.x86_64.rpm http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/x86_64/getPackage /R-devel-3.1.1-2.el6.x86_64.rpm http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/x86_64/getPackage /libRmath-3.1.1-2.el6.x86_64.rpm http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/x86_64/getPackage /libRmath-devel-3.1.1-2.el6.x86_64.rpm http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/x86_64/getPackage /libRmath-static-3.1.1-2.el6.x86_64.rpm
If the following dependent RPM is not automatically included, then download and install it explicitly:
texinfo-tex-4.13a-8.el6.x86_64.rpm
The Oracle R Distribution RPMs for Oracle Linux 5 are listed as follows:
R-3.0.1-2.x86_64.rpm R-core-3.0.1-2.x86_64.rpm R-devel-3.0.1-2.x86_64.rpm libRmath-3.0.1-2.x86_64.rpm libRmath-devel-3.0.1-2.x86_64.rpm libRmath-static-devel-3.0.1-2.x86_64.rpm
If the dependent RPMs for Oracle Linux 5, listed in Section 3.2.2.2, are not automatically included, then download and install them explicitly.
The Oracle R Distribution dependent RPMs for Oracle Linux 5 are listed as follows:
atk-1.12.2-1.fc6.x86_64.rpm avahi-0.6.16-10.el5_6.x86_64.rpm avahi-compat-libdns_sd-0.6.16-10.el5_6.x86_64.rpm bitstream-vera-fonts-1.10-7.noarch.rpm bzip2-devel-1.0.3-6.el5_5.x86_64.rpm Cairo-1.2.4-5.el5.x86_64.rpm chkfontpath-1.10.1-1.1.x86_64.rpm cpp-4.1.2-54.el5.x86_64.rpm cups-1.3.7-30.el5_9.3.x86_64.rpm cups-libs-1.3.7-30.el5_9.3.x86_64.rpm dbus-python-0.70-9.el5_4.x86_64.rpm desktop-file-utils-0.10-7.x86_64.rpm dialog-1.0.20051107-1.2.2.x86_64.rpm ed-0.2-39.el5_2.x86_64.rpm gcc-4.1.2-54.el5.x86_64.rpm gcc-c++-4.1.2-54.el5.x86_64.rpm gcc-gfortran-4.1.2-54.el5.x86_64.rpm ghostscript-8.70-14.el5_8.1.x86_64.rpm ghostscript-fonts-5.50-13.1.1.noarch.rpm gmp-4.1.4-10.el5.x86_64.rpm gtk2-2.10.4-29.el5.x86_64.rpm hicolor-icon-theme-0.9-2.1.noarch.rpm libFS-1.0.0-3.1.x86_64.rpm libX11-1.0.3-11.el5_7.1.x86_64.rpm libX11-devel-1.0.3-11.el5_7.1.x86_64.rpm libXau-devel-1.0.1-3.1.x86_64.rpm libXdmcp-devel-1.0.1-2.1.x86_64.rpm libXfont-1.2.2-1.0.4.el5_7.x86_64.rpm libfontenc-1.0.2-2.2.el5.x86_64.rpm libgcc-4.1.2-54.el5.i386.rpm libgcc-4.1.2-54.el5.x86_64.rpm libgfortran-4.1.2-52.el5_8.1.i386.rpm libgfortran-4.1.2-54.el5.x86_64.rpm libstdc++-4.1.2-54.el5.i386.rpm libstdc++-4.1.2-54.el5.x86_64.rpm libstdc++-devel-4.1.2-54.el5.i386.rpm libstdc++-devel-4.1.2-54.el5.x86_64.rpm libtiff-3.8.2-18.el5_8.x86_64.rpm mesa-libGL-6.5.1-7.11.el5_9.x86_64.rpm mesa-libGL-devel-6.5.1-7.11.el5_9.x86_64.rpm netpbm-10.35.58-10.el5.x86_64.rpm netpbm-progs-10.35.58-10.el5.x86_64.rpm pango-1.14.9-8.0.1.el5_7.3.x86_64.rpm paps-0.6.6-20.el5.x86_64.rpm pcre-6.6-6.el5_6.1.x86_64.rpm pcre-devel-6.6-6.el5_6.1.x86_64.rpm poppler-0.5.4-19.el5.x86_64.rpm poppler-utils-0.5.4-19.el5.x86_64.rpm tcl-8.4.13-6.el5.x86_64.rpm tcl-devel-8.4.13-6.el5.x86_64.rpm tetex-3.0-33.15.el5_8.1.x86_64.rpm tetex-dvips-3.0-33.15.el5_8.1.x86_64.rpm tetex-fonts-3.0-33.15.el5_8.1.x86_64.rpm tetex-latex-3.0-33.15.el5_8.1.x86_64.rpm texinfo-4.8-14.el5.x86_64.rpm texinfo-tex-4.8-14.el5.x86_64.rpm tk-devel-8.4.13-5.el5_1.1.x86_64.rpm ttmkfdir-3.0.9-23.el5.x86_64.rpm urw-fonts-2.3-6.1.1.noarch.rpm xorg-x11-font-utils-7.1-3.x86_64.rpm xorg-x11-proto-devel-7.1-13.el5.x86_64.rpm xorg-x11-xfs-1.0.2-5.el5_6.1.x86_64.rpm zlib-1.2.3-7.el5.i386.rpm zlib-1.2.3-7.el5.x86_64.rpm zlib-devel-1.2.3-7.el5.x86_64.rpm
The Oracle R Distribution RPMs for Oracle Linux 6 are listed as follows:
R-3.0.1-2.el6.x86_64.rpm R-core-3.0.1-2.el6.x86_64.rpm R-devel-3.0.1-2.el6.x86_64.rpm libRmath-3.0.1-2.el6.x86_64.rpm libRmath-devel-3.0.1-2.el6.x86_64.rpm libRmath-static-3.0.1-2.el6.x86_64.rpm
If the following dependent RPM is not automatically included, then download and install it explicitly:
texinfo-tex-4.13a-8.el6.x86_64.rpm
Tip:
Rversion represents the version of Oracle R Distribution. Replace Rversion with3.1.1-2
for R 3.1.1; replace Rversion with 3.0.1-2
for R 3.0.1.To install Oracle R Distribution on Red Hat Enterprise Linux 6:
Create an RPM build directory structure:
mkdir -p /rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
Set up RPM tools to use your own build tree (to avoid root
):
echo '%_topdir %(echo $HOME)/rpmbuild' > /.rpmmacros
Download the source RPM (R-version
.el6.src.rpm
) from Oracle public yum.
For Red Hat Enterprise Linux 6:
http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/x86_64
/
Save the source RPM to the rpmbuild/SRPMS
directory.
Rebuild Red Hat Enterprise Linux using rpmbuild
.
rpmbuild --rebuild /rpmbuild/SRPMS/R-Rversion.el6.src.rpm
Note:
Linux 5
The source RPM, R-3.1.1-2.el5.src.rpm
, is here:
http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/x86_64
/
Linux 7
The source RPM, R-3.1.1-2.el7.src.rpm
, is here:
http://public-yum.oracle.com/repo/OracleLinux/OL7/addons/x86_64/
Note:
If any dependencies are missing, install them as root.The binary RPMs are built and saved under /rpmbuild/RPMS.
Log in as root and execute these commands to install R:
# rpm -i path/rpmbuild/RPMS/R-Rversion-2.el6.x86_64.rpm # rpm -i path/rpmbuild/RPMS/R-core-Rversion.el6.x86_64.rpm # rpm -i path/rpmbuild/RPMS/libRmath-Rversion.el6.x86_64.rpm # rpm -i path/rpmbuild/RPMS/libRmath-devel-Rversion.el6.x86_64.rpm # rpm -i path/rpmbuild/RPMS/libRmath-static-Rversion.el6.x86_64.rpm # rpm -i path/rpmbuild/RPMS/R-devel-Rversion.el6.x86_64.rpm
For example, this command installs R 3.1.1 on Red Hat Enterprise Linux x86-64 version 6, where the path to rpmbuild
is /refresh/home/
.
# rpm -i /refresh/home/rpmbuild/RPMS/x86_64/R-core-3.1.1-2.el6.x86_64.rpm
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 Table 1-1, "Oracle R Enterprise Platform Requirements".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 3.1.1-2
for R 3.1.1 or 3.0.1-2
for R 3.0.1:
For x86 64-bit systems:
ord-Rversion-sol10-x86-64-sunstudio12u3.tar.gz ord-Rversion-supporting-sol10-x86-64-sunstudio12u3.tar.gz
For SPARC 64-bit systems:
ord-Rversion-sol10-sparc-64-sunstudio12u3.tar.gz ord-Rversion-supporting-sol10-sparc-64-sunstudio12u3.tar.gz
Uncompress the first file, either sol110-x86-64
or sol10-sparc
.
Run install.sh
as root to install the Solaris PKG file for Oracle R Distribution.
# install.sh
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.
Run the following command to verify that libR.so
is picking up its shared library dependencies correctly from the local directory.
# ldd -r /usr/lib/64/R/lib/libR.so
Start R by typing R
at the command prompt:
% R
Before installing Oracle R Distribution, verify that your version of IBM AIX is supported by Oracle R Enterprise, as described in Table 1-1, "Oracle R Enterprise Platform Requirements".You can use this command to verify the version of IBM AIX:
uname -r
To install Oracle R Distribution on IBM AIX:
Go to the Oracle Open Source Software Download page for Oracle R Distribution:
Download the files for your installation, where Rversion is 3.1.1.0
for R 3.1.1 or 3.0.1.0
for R 3.0.1:
ORD.Rversion.bff.gz
ord-supporting-aix.tar.gz
Uncompress and untar ord-supporting-aix.tar.gz
:
$ gunzip ord-supporting-aix.tar.gz # get ord-supporting-aix.tar $ tar -xvf ord-supporting-aix.tar # extract contents of .tar file $ ls ord-supporting-aix # list of rpms bash-4.2-5.aix5.1.ppc.rpm libpng-devel-1.5.9-1.aix5.1.ppc.rpm Cairo-1.10.0-1.aix5.2.ppc.rpm pixman-0.28.2-1.aix5.1.ppc.rpm expat-2.0.1-3.aix5.1.ppc.rpm pkg-config-0.25-2.aix5.1.ppc.rpm fontconfig-2.5.0-1.aix5.1.ppc.rpm readline-6.2-3.aix5.1.ppc.rpm gettext-0.17-1.aix5.1.ppc.rpm readline-devel-6.2-3.aix5.1.ppc.rpm glib2-2.28.6-1.aix5.1.ppc.rpm texinfo-4.13a-2.aix5.1.ppc.rpm info-4.13a-2.aix5.1.ppc.rpm xrender-0.9.1-3.aix5.2.ppc.rpm libiconv-1.14-1.aix5.1.ppc.rpm zlib-1.2.6-1.aix5.1.ppc.rpm libpng-1.5.9-1.aix5.1.ppc.rpm zlib-devel-1.2.6-1.aix5.1.ppc.rpm
You can also download these RPMs from http://www.perzl.org/aix/
.
Install the RPMs as root using an rpm
command:
$ cd /download_directory
$ su
# rpm -i *.rpm
To upgrade existing dependencies, use:
# rpm -UF *.rpm
If you experience conflicts with dependencies, use:
# rpm -UF --nodeps *.rpm
Add /opt/freeware/lib
to the LIBPATH
environment variable:
For ksh:
$ export LIBPATH=/opt/freeware/lib:$LIBPATH
For csh:
$ setenv LIBPATH /opt/freeware/lib:$LIBPATH
Ensure that /opt/freeware/lib
is before /usr/lib
.
Uncompress ORD-
Rversion
-aix.bft.gz
to get ORD-
Rversion
-aix.bff
:
$ gunzip ORD.Rversion.bff.gz
To install all the filesets in Oracle R Distribution, execute the installp
command (with the apply option) as root:
$ cd /download_directory
$ su
# installp -a -d . ORD # install all the filesets in ORD
You can also install independent filesets:
# installp -a -d . ORD.core # installs only ORE.core # installp -a -d . ORD.devel # installs only ORE.devel
Run ldd
to ensure that shared library dependencies were picked up correctly:
$ ldd /usr/lib/R/bin/exec/R $ ldd /usr/lib/R/lib/libR.so (libiconv, libreadline) $ ldd /usr/lib/R/lib/libRlapack.so $ ldd /usr/lib/R/lib/libRblas.so
Add /usr/lib/R/lib
to the LIBPATH
environment variable:
For ksh:
$ export LIBPATH=/usr/lib/R/lib:$LIBPATH
For csh:
$ setenv LIBPATH /usr/lib/R/lib:$LIBPATH
Before installing Oracle R Distribution, verify that your version of Microsoft Windows is supported by Oracle R Enterprise, as described in Table 1-1, "Oracle R Enterprise Platform Requirements".
Follow these steps to install Oracle R Distribution on Windows:
Go to the Oracle Open Source Software Download page for Oracle R Distribution:
Select R Distribution for Windows 64 bit. Save the zip file on your computer.
ORE-Rversion-win.zip
Unzip the file and extract the executable file.
ORE-Rversion-win.exe
Double click the executable file to start the installation of Oracle R Distribution.
Follow the instructions to complete the installation.
The instructions in this section explain how to configure Oracle R Distribution to use MKL on a Linux or Windows client. With this simple configuration step, Oracle R Distribution dynamically uses MKL if it is installed on your system.
This topic contains these sections:
Section 3.6.1, "Enabling MKL Support for Oracle R Distribution on a Linux Client"
Section 3.6.2, "Enabling MKL Support for Oracle R Distribution on a Windows Client"
Follow these steps to enable MKL for Oracle R Distribution on a Linux Client:
Install MKL. You can download MKL from the following website:
http://software.intel.com/en-us/intel-mkl
Note: To install MKL on your computer, you must have an MKL license.
Add libmkl_rt.so
, $RHOME/lib
, and $ORACLE_HOME/lib
to the LD_LIBRARY_PATH
system environment variable. For example, in the Bash shell:
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:
/path_to/libmkl_rt.so:
${RHOME}/lib:
${ORACLE_HOME}/lib
Start R and execute the Sys.BlasLapack
function:
Sys.BlasLapack() $vendor [1] "Intel Math Kernel Library (Intel MKL)" $nthreads [1] -1
The returned value of $vendor
indicates that MKL has replaced the BLAS
and LAPACK
that are native to R.
The returned value of nthreads
indicates the number of threads to be used by MKL. By default all available threads are used ($nthreads
= -1).
You can change the number of threads to be used by MKL by editing the system environment variable MKL_NUM_THREADS
. For example, the following statement in the Bash shell, causes MKL to use 3 threads:
export MKL_NUM_THREADS=3
After setting MKL_NUM_THREADS
to 3, the output of Sys.BlasLapack
shows a value of 3 for $nthreads
.
R> Sys.BlasLapack() $vendor [1] "Intel Math Kernel Library (Intel MKL)" $nthreads [1] 3
Follow these steps to enable MKL for Oracle R Distribution on a Windows client (64-bit):
Install MKL. You can download MKL from the following website:
http://software.intel.com/en-us/intel-mkl
Note: To install MKL on your computer, you must have an MKL license.
Add the location of libOrdBlasLoader.dll
and mkl_rt.dll
to the PATH
system environment variable.For instructions, see.
Note:
In a typical installation of Oracle R Distribution 3.1.1,libOrdBlasLoader.dll
is located in the R home directory:
C:\Program Files\R\R-3.1.1\bin\x64
In a full installation of MKL 11.1, mkl_rt.dll
is located in the Intel MKL Composer XE directory:
C:\Program Files (x86)\Intel\Composer XE 2013 SP
Start R and execute the Sys.BlasLapack
function:
R> Sys.BlasLapack() $vendor [1] "Intel Math Kernel Library (Intel MKL)" $nthreads [1] -1
The returned value of $vendor
indicates that MKL has replaced the BLAS
and LAPACK
that are native to R.
The returned value of nthreads
indicates the number of threads to be used by MKL. By default all available threads are used ($nthreads
= -1).
You can change the number of threads to be used by MKL by editing the system environment variable MKL_NUM_THREADS
. If MKL_NUM_THREADS
does not exist, then you must create it as described in:
After setting MKL_NUM_THREADS
to 3, the output of Sys.BlasLapack
shows a value of 3 for $nthreads
.
R> Sys.BlasLapack() $vendor [1] "Intel Math Kernel Library (Intel MKL)" $nthreads [1] 3
To uninstall R, follow the instructions in the following sections:
Uninstall Oracle R Distribution just as you would uninstall any other Windows program, using Programs and Features in Windows Control Panel.
To uninstall Oracle R Distribution on Linux, log in as root and execute these commands in this order. To uninstall a different version of R, replace 3.1.1
with the version number.
To uninstall Oracle R Distribution on Oracle Solaris, follow the instructions in the readme on the Oracle R Distribution download page on the Oracle Technology Network:
The Oracle R Distribution installation directory on Oracle Solaris includes an uninstall script. Log in as root and run the script as follows:
To uninstall Oracle R Distribution on IBM AIX, follow the instructions in the readme on the Oracle R Distribution download page on the Oracle Technology Network: