z/OS Tools & Language

Expand all | Collapse all

Installing/running R 3.3.1

  • 1.  Installing/running R 3.3.1

    Posted 10-13-2016 17:06

    After downloading, unpacking the tar.gz file and updating/sourcing ~/.profile, I receive the following error when invoking R.

    bash-4.2$ R
    /mydir/rocket/r3.3.1/bin/R: line 238: /u/pdharr/Rnew/dist/lib/R/etc/ldpaths: EDC5129I No such file or directory.
    ERROR: R_HOME (’/u/pdharr/Rnew/dist/lib/R’) not found

    We are running z/OS 2.1.


  • 2.  RE: Installing/running R 3.3.1

    Posted 10-14-2016 09:50

    Looks like **/u/pdharr/Rnew/dist/**lib/R/etc/ldpaths needs to be replaced with $BASE/lib/R/etc/ldpaths

    Is there a configuration file that needs to be updated?

    I recommend for PATH, LIBPATH and TZDIR, adding the R dirs after the current variable settings.

    export BASE="mydir/rocket/r3.3.1"
    export PATH=$PATH:$BASE/bin
    export LIBPATH=$LIBPATH:$BASE/lib
    export TZDIR=$TZDIR:$BASE/lib/R/share/zoneinfo

  • 3.  RE: Installing/running R 3.3.1

    Posted 10-14-2016 09:59

    Here’s the pdharr references in the R script.

    grep pdharr /mydir/rocket/r3.3.1/bin/R

    if test “${R_HOME_DIR}” = “/u/pdharr/Rnew/dist/lib/R”; then
    if [ -x “/u/pdharr/Rnew/dist/${libnn}/R/bin/exec/R” ]; then
    elif [ -x “/u/pdharr/Rnew/dist/${libnn_fallback}/R/bin/exec/R” ]; then

  • 4.  RE: Installing/running R 3.3.1

    Posted 01-07-2017 17:56

    Sorry for delay. We are looking into these issues and will reply back shortly.

  • 5.  RE: Installing/running R 3.3.1

    Posted 01-07-2017 18:27

    We have a new build of R beta that fixes these issues but it is packaged for better space utilization into multiple files which is not yet supported by Rocket’s public download pages and additionally it needs some testing. I could have this build for you by Wednesday. Would you like this new build?

  • 6.  RE: Installing/running R 3.3.1

    Posted 01-13-2017 11:30

    A new build of R (v3.3.2) is now available on Rocket’s public download page. This release resolves the issues reported in this thread.

  • 7.  RE: Installing/running R 3.3.1

    Posted 01-19-2017 14:59

    I have downloaded the R v3.3.2.
    I think it should be 2 tar.gz files 1 for Python and 1 for R (there are 2 for R).

    -rw-r–r-- 1 RXT025 OMVSDIS 156530869 Jan 7 18:02 r-3.3.2_b0005.161122.tar.gz
    -rw-r–r-- 1 RXT025 OMVSDIS 320830688 Jan 7 20:28 r-3.3.2_b0005.170107.tar.gz

  • 8.  RE: Installing/running R 3.3.1

    Posted 01-19-2017 16:04

    I am trying to buils a ZFS containing all the Rocket software opensource langauges and tools
    #I ftp’ed the r-3.3.2_b0005.170107.tar.gz from my workstation to my home directory on z/OS
    #cd to where I want the untar to go and pick up tar.gz file from my home directory
    cd /zusr/home/RXT025/rs
    /bin/cat /zusr/home/RXT025/r-3.3.2_b0005.170107.tar.gz | gunzip -c | /bin/tar xUXof -

    /bin/cat python-r-devel_b0005.161122.tar.gz | gunzip -c | /bin/tar xUXof -
    /bin/cat r-3.3.2_b0005.161122.tar.gz | gunzip -c | /bin/tar xUXof -
    /bin/cat r-3.3.2_b0005.170107.tar.gz | gunzip -c | /bin/tar xUXof -
    ran /bin/fix-distribution
    R appears to work

    My question is how/what order should I add all the other opensource software to my “rs” directory
    what about Python 2.7.6, It comes with R
    what about sed what about…

  • 9.  RE: Installing/running R 3.3.1

    Posted 01-20-2017 17:05

    It appears you figured out that the newer R is a bundle of newer versions of the two gzips that constituted the previous version of R (if THAT makes sense). In any case, throw away the 161122 gzips and use the one 170107 gzip for R.

    As for python, there is a newer better python 2.7.12 available for download with links elsewhere posted on this forum (search python to find URLS).

    Both are ported using z/OS enhanced ASCII features. Both are beta. We are focusing on finishing the python port along with a good set of libraries for graphics and data science applications (and including python 3 support) before we return our attention to finishing R. There has been a ton more interest in python than in R.

    As for other tools, if you do not see what you want on our download pages on the Rocket Software web site, you may want to consider buying support as this grants you a lot of influence in setting our priorities (and you will get better support).