[R] Installation of rJava fails

Ulrik Stervbo ulrik.stervbo at gmail.com
Wed Aug 17 18:23:21 CEST 2016


I usually install such packages though apt-get and that usually works.

Best,
Ulrik

On Wed, 17 Aug 2016 at 18:08 <G.Maubach at gmx.de> wrote:

> Hi All,
>
> I try to install RWeka on Debian GNU Linux 8 Jessie (uname -a:
> 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) x86_64)
> which has a dependency to "rJava".
> I did
>
> apt-get install openjdk-8-jre
>
> which went OK.
>
> Java is installed in:
>
> /var/lib/dpkg/alternatives/java
> /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
> /usr/lib/jvm/java-8-openjdk-amd64/bin/java
> /etc/alternatives/java
>
> When doing this
>
> install.packages("rJava")
>
> I get
>
> * installing *source* package ‘rJava’ ...
> ** Paket ‘rJava’ erfolgreich entpackt und MD5 Summen überprüft
>
> interpreter : '/usr/lib/jvm/default-java/jre/bin/java'
> archiver    : '/usr/lib/jvm/default-java/bin/jar'
> compiler    : '/usr/lib/jvm/default-java/bin/javac'
> header prep.: '/usr/lib/jvm/default-java/bin/javah'
> cpp flags   : '-I/usr/lib/jvm/default-java/include'
> java libs   : '-L/usr/lib/jvm/default-java/jre/lib/amd64/server -ljvm'
> checking whether Java run-time works...
> ./configure: line 3736: /usr/lib/jvm/default-java/jre/bin/java: No such
> file or directory
> no
> configure: error: Java interpreter
> '/usr/lib/jvm/default-java/jre/bin/java' does not work
> ERROR: configuration failed for package ‘rJava’
> * removing ‘/usr/local/lib/R/site-library/rJava’
> Warning in install.packages :
>   installation of package ‘rJava’ had non-zero exit status
>
> Do I need to use another Java version or installation? How do I tell
> install.packages() where my Java installation resides?
>
> Kind regards
>
> Georg
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

	[[alternative HTML version deleted]]



More information about the R-help mailing list