[R-sig-Debian] So nearly there, but can't install rJava

Enrico Schumann e@ @end|ng |rom enr|co@chum@nn@net
Tue Jan 22 13:22:40 CET 2019


>>>>> "Chris" == Chris Evans <chrishold using psyctc.org> writes:

    Chris> As ever, I learn from this: I didn't know apt-file. Got it, installed it, used it: 
    Chris> root using DebianAdvent:/home/chris/Downloads/gmp-6.1.2# apt-file search jni.h 
    Chris> android-libnativehelper-dev: /usr/include/android/nativehelper/jni.h 
    Chris> android-platform-frameworks-native-headers: /usr/include/android/android/asset_manager_jni.h 
    Chris> android-platform-frameworks-native-headers: /usr/include/android/android/native_window_jni.h 
    Chris> gcj-6-jdk: /usr/lib/gcc/x86_64-linux-gnu/6/include/jni.h 
    Chris> gcj-6-jdk: /usr/lib/jvm/java-1.5.0-gcj-6-amd64/include/jni.h 
    Chris> libavcodec-dev: /usr/include/x86_64-linux-gnu/libavcodec/jni.h 
    Chris> libgluegen2-build-java: /usr/share/gluegen2/make/stub_includes/jni/jni.h 
    Chris> openjdk-8-jdk-headless: /usr/lib/jvm/java-8-openjdk-amd64/include/jni.h 

    Chris> I was 99% sure I already had that last installed. Sure enough: 

    Chris> root using DebianAdvent:/home/chris/Downloads/gmp-6.1.2# apt-get install openjdk-8-jdk-headless 
    Chris> Reading package lists... Done 
    Chris> Building dependency tree 
    Chris> Reading state information... Done 
    Chris> openjdk-8-jdk-headless is already the newest version (8u181-b13-2~deb9u1). 
    Chris> openjdk-8-jdk-headless set to manually installed. 
    Chris> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 

    Chris> Anyone else got any ideas? 

    Chris> Chris 

I have not followed the discussion closely, so my
apologies if I am off-topic. But on Ubuntu 18.04 at
least you can run

  sudo apt install openjdk-11-jdk
  R CMD javareconf -e

and then in R

  install.packages("rJava")

should work.

kind regards
        Enrico

    >> From: "Johannes Ranke" <johannes.ranke using jrwb.de>
    >> To: "r-sig-debian" <r-sig-debian using r-project.org>, "Chris Evans"
    >> <chrishold using psyctc.org>
    >> Sent: Tuesday, 22 January, 2019 08:47:28
    >> Subject: Re: [R-sig-Debian] So nearly there, but can't install rJava

    >> Am Dienstag, 22. Januar 2019, 08:27:14 CET schrieb Chris Evans:

    >> ...

    >> > error: jni.h: No such file or directory

    >> > #include <jni.h>

    >> > ^

    >> > compilation terminated.

    >> You get a complaint that jni.h is missing. So one strategy would be to look for
    >> this file in the available packages:

    >> sudo apt-file search jni.h

    >> One of the packages returned is openjdk-8-jdk-headless (which I happen to have
    >> installed). I think (others will know for certain) that you need a Java
    >> Development Kit (jdk) not just a runtime environment (jre).

    >> Cheers,

    >> Johannes

    Chris> -- 
    Chris> Chris Evans <chris using psyctc.org> Skype: chris-psyctc 
    Chris> Visiting Professor, University of Sheffield <chris.evans using sheffield.ac.uk> 
    Chris> I do some consultation work for the University of Roehampton <chris.evans using roehampton.ac.uk> and other places but this <chris using psyctc.org> remains my main Email address. 
    Chris> I have "semigrated" to France, see: https://www.psyctc.org/pelerinage2016/semigrating-to-france/ if you want to book to talk, I am trying to keep that to Thursdays and my diary is now available at: https://www.psyctc.org/pelerinage2016/ecwd_calendar/calendar/ 
    Chris> Beware: French time, generally an hour ahead of UK. That page will also take you to my blog which started with earlier joys in France and Spain! 


-- 
Enrico Schumann
Lucerne, Switzerland
http://enricoschumann.net



More information about the R-SIG-Debian mailing list