6.4.1 Install the Supporting Packages on Linux

Instructions for installing the supporting packages on Linux.

  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 to an accessible directory. For example:
    oml4r-supporting-linux-x86-64-2.0.zip
  3. Unzip the file:
    unzip oml4r-supporting-linux-x86-64-2.0.zip

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

    /supporting/arules_1.7-3_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/assertthat_0.2.1_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/Cairo_1.5-15_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/cli_3.3.0_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/crayon_1.5.1_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/DBI_1.1.2_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/dplyr_1.0.9_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/ellipsis_0.3.2_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/fansi_1.0.3_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/generics_0.1.2_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/glue_1.6.2_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/lazyeval_0.2.2_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/lifecycle_1.0.1_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/magrittr_2.0.3_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/pillar_1.7.0_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/pkgconfig_2.0.3_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/png_0.1-8_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/purrr_0.3.4_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/R6_2.5.1_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/rlang_1.0.2_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/ROracle_1.4-1_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/statmod_1.4.36_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/tibble_3.1.7_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/tidyselect_1.1.2_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/utf8_1.2.2_R_x86_64-unknown-linux-gnu.tar.gz
    /supporting/vctrs_0.4.1_R_x86_64-unknown-linux-gnu.tar.gz
  4. Change to the supporting directory cd supporting
  5. Run the following commands to install the supporting packages on the database server. When you install on the server, use the ORE command. 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 *
  6. Run the following commands to install the supporting packages on the client:
    R --vanilla CMD INSTALL *

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. Run 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.x86_64 
    
    $ rpm -qa libpng-devel 
    libpng-devel-1.5.13-7.el7_2.x86_64
    
  2. If that output is not returned, the RPMs are not installed. To install them, run the following commands as root:
    $ yum install cairo-devel 
    $ yum install libpng-devel