6.4.2 Install the Supporting Packages on Linux or UNIX

Instructions for installing the supporting packages on Linux or UNIX.

  1. Download the OML4R supporting packages from the Oracle Machine Learning for R Downloads website.
  2. Accept the license agreement and select the Supporting packages for your platform. Download the zip file to the installation directory that you created for Oracle Instant Client. For example:
    /oml4rclient_install_dir/ore-supporting-platform-arch-1.5.1.zip
    

    Note:

    If you are using Linux 8, then download the Supporting package file for Linux 8 64-bit.

    Note:

    Choose the same installation directory for all OML4R client components.
  3. Unzip the file:
    % unzip ore-supporting-platform-arch-1.5.1.zip
    

    If you are using Linux 8, then unzip the ore-supporting-linux8-x86-64-1.5.1.zip file.

    When you unzip the file, the /supporting directory is created and these files are extracted.

    /supporting/arules_version_R_arch-unknown-platform.tar.gz
    /supporting/Cairo_version_R_arch-unknown-platform.tar.gz
    /supporting/DBI_version_R_arch-unknown-platform.tar.gz
    /supporting/png_version_R_arch-unknown-platform.tar.gz
    /supporting/randomForest_version_R_arch-unknown-platform.tar.gz
    /supporting/ROracle_version_R_arch-unknown-platform.tar.gz
    /supporting/statmod_version_R_arch-unknown-platform.tar.gz
    
  4. Change to /oml4rclient_install_dir/supporting
  5. Execute the following commands to install the supporting packages on the client:
    R CMD INSTALL arules_version_R_arch-unknown-platform.tar.gz
    R CMD INSTALL Cairo_version_R_arch-unknown-platform.tar.gz
    R CMD INSTALL DBI_version_R_arch-unknown-platform.tar.gz
    R CMD INSTALL png_version_R_arch-unknown-platform.tar.gz
    R CMD INSTALL randomForest_version_R_arch-unknown-platform.tar.gz
    R CMD INSTALL ROracle_version_R_arch-unknown-platform.tar.gz
    R CMD INSTALL statmod_version_R_arch-unknown-platform.tar.gz
  6. Execute the following commands to install the supporting packages on the database server. When you install on the server, use the ORE command (instead of the R command used for the client, as shown in the previous step). This installs the packages to $ORACLE_HOME/R/library instead of the default location, which is /usr/lib64/R/library on Linux.
    ORE CMD INSTALL arules_version_R_arch-unknown-platform.tar.gz
    ORE CMD INSTALL Cairo_version_R_arch-unknown-platform.tar.gz
    ORE CMD INSTALL DBI_version_R_arch-unknown-platform.tar.gz
    ORE CMD INSTALL png_version_R_arch-unknown-platform.tar.gz
    ORE CMD INSTALL randomForest_version_R_arch-unknown-platform.tar.gz
    ORE CMD INSTALL ROracle_version_R_arch-unknown-platform.tar.gz
    ORE CMD INSTALL statmod_version_R_arch-unknown-platform.tar.gz

For Linux, Verify Cairo and png Dependencies

The Cairo and png packages require the presence of these operating system dependencies:

  • Cairo requires the cairo-devel package.
  • png requires the libpng-devel package.

To verify the presence of these dependencies, do the following.

  1. Execute the following commands:
    $ rpm -qa libpng-devel 
    $ rpm -qa cairo-devel 

    If the RPMs are installed, then the name of the RPM is returned.

    $ rpm -qa cairo-devel
    cairo-devel-1.15.12-3.el7.i686
    cairo-devel-1.15.12-3.el7.x86_64 
    $ rpm -qa libpng-devel 
    libpng-devel-1.5.13-7.el7_2.x86_64
    libpng-devel-1.5.13-7.el7_2.i686 
  2. If that output is not returned, the RPMs are not installed. To install them, execute the following commands as root:
    $ yum install cairo-devel 
    $ yum install libpng-devel