Download the latest version of the Oracle JRE. If you want to compile your rJava you need the JDK wich contains the necessary libraries and header files.
> wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u101-b13/jdk-8u101-linux-x64.rpm
Install the JDK.
> rpm -i jdk-8u101-linux-x64.rpm
To install R from the Redhat repository, we first have to add the Extra Packages for Enterprise Linux (EPEL) repository.
> rpm -ihv http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
Install all dependent packages and the base package of R.
> yum -y install R-base
After that we have to install the development package of R and the dependent packages. Most of these packages are needed to compile the rJava package.
Before we can install the R-devel package, we have to add a couple of other packages from the Centos Repository.
> yum -y install texinfo > rpm -ihv http://mirror.centos.org/centos/7/os/x86_64/Packages/texlive-epsf-svn21418.104.22.168-38.el7.noarch.rpm > rpm -ihv http://mirror.centos.org/centos/7/os/x86_64/Packages/texinfo-tex-5.1-4.el7.x86_64.rpm > yum -y install R-devel
Install the relevant packages (rJava) of R. If the Java Development Kit (JDK) is missing or not registered in R Make sure R is configured with full Java support (including JDK). Run
as root to add Java support to R.
> R CMD javareconf
If you don't have root privileges, run
to set all Java-related variables and then install rJava. Before you can install rJava, it might be necessary to install the following libraries.
> R CMD javareconf -e
No it's time to start R.
> yum -y install pcre-devel && \ yum -y install bzip2-devel && \ yum -y install zlib-devel && \ yum -y install libicu-devel && \ yum -y install xz-devel
In R you can install rJava with the following command.
Install Python 2.7
zypper install python python-setuptools python-devel python-pip
Install the py4J Python library and the library for creating wheel files
pip2 install py4j wheel
To use the scientific computing part, you need basic packages for scientific computing (numpy and scipy).
If you do not want to use these packages, you can skip this step (If you want to run the unit tests, disable the corresponding tests in
zypper install python-numpy python-scipy pip2 install nltk
If you want to use Python 3, you need to use the corresponding operating system packages for Python 3 (e.g.,
pip3 instead of
pip2 to install the Python packages.
> curl -L http://www.5analytics.com/download/ada-latest.noarch.rpm
> rpm -i ada-latest.noarch.rpm
Install the 5Analytics R Package.
> R CMD INSTALL /opt/ada/FiveA_*.tar.gz