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 OpenSuse repository, we first have to add the appropriate repository.
> zypper --non-interactive addrepo --no-gpgcheck http://download.opensuse.org/repositories/devel:/languages:/R:/released/openSUSE_Leap_42.1/ R-released
Install all dependent packages and the base package of R. Most of these packages are neede to compile the rJava package.
> zypper install R-base
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.
> zypper --non-interactive install pcre-devel && \ zypper --non-interactive install libbz2-devel && \ zypper --non-interactive install zlib-devel && \ zypper --non-interactive install libicu-devel && \ zypper --non-interactive 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://download.5analytics.com/dist/ada-latest.noarch.rpm
> rpm -i ada-latest.noarch.rpm
Install the 5Analytics R Package.
> R CMD INSTALL /opt/ada/FiveA_*.tar.gz