Installing R with INZA on pre-11.2.20

Learn how to install R as an in-database executable language by using the installOpenSourceR.sh shell script.

Before you begin

  1. Ensure that Netezza Performance Server Analytics is installed.

    You can download Netezza Performance Server Analytics from Fix Central.

    Several tools that you need to install R are provided as a part of Netezza Performance Server Analytics.

    For R 3.5.1, use Netezza Performance Server Analytics 11.X.X.X. If you want to use the most recent version, you must download the source code for that version and place it in the correct destination directory.

  2. Ensure that you have an internet connection.

    You need internet connection because the installation script automatically downloads Linux software dependencies for R if they are not installed on the system.

    Tip: If you do not have internet connection, you can download the software dependencies and transfer them to the system manually
    The necessary packages to install R:
    • ftp://ftp.gnu.org/pub/gnu/termcap/termcap-1.3.1.tar.gz
    • ftp://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz
    • ftp://ftp.gnu.org/gnu/readline/readline-6.2.tar.gz
    • ftp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
    • ftp://ftp.gnu.org/pub/gnu/make/make-3.82.tar.gz
    • ftp://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz
    • ftp://ftp.gnu.org/gnu/coreutils/coreutils-8.31.tar.xz
    • ftp://ftp.gnu.org/gnu/findutils/findutils-4.4.2.tar.gz
    • ftp://ftp.gnu.org/gnu/grep/grep-2.9.tar.gz
    • ftp://ftp.gnu.org/gnu/sed/sed-4.2.tar.gz
    • ftp://ftp.gnu.org/gnu/tar/tar-1.32.tar.xz"
    • http://xcb.freedesktop.org/dist/libpthread-stubs-0.1.tar.bz2
    • http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz
    • http://zlib.net/zlib-1.2.11.tar.gz
    • https://sourceforge.net/projects/pcre/files/pcre/8.38/pcre-8.38.tar.gz/download
    • https://sourceforge.net/projects/bzip2/files/latest/download
    • http://tukaani.org/xz/xz-5.2.2.tar.bz2
    • https://www.openssl.org/source/openssl-1.0.2h.tar.gz
    • https://curl.haxx.se/download/curl-7.61.0.tar.bz2
  3. Ensure that you have the root password for the SPUs as some codes must be compiled on an SPU.

    All operations on the host, including the launch of the installOpenSourceR.sh script, are done by the nz user. The root password for the host is not needed.

Procedure

  1. Create a directory in /nz/var/inza/.
    /nz/var/inza/<your-directory>
  2. Copy the installation script from the ips-analytics-<> package to the newly created /nz/var/inza/<your-directory> directory.
  3. Download a version of R and copy R-3.x.x.tar.gz from the package to the /nz/var/inza/<your-directory> directory with the installation script.
    Tip: If you do not have an internet connection, download the necessary software dependencies and copy them to the system manually.

    You can download different R versions from the CRAN repository at https://cran.r-project.org/src/base/R-3/.

  4. From the cd/nz/var/inza/<your-directory> directory, run the installation script to download dependencies, compile, and build R.
    ./installOpenSourceR.sh
    You can run the following command to view a list of available options.
    ./installOpenSourceR.sh --help
    Depending on the performance of your system, the installation process might take more than an hour.

What to do next

You must build a new version of R for each Netezza/Netezza Performance Server Analytics version combination.