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

Chris Evans chr|@ho|d @end|ng |rom p@yctc@org
Tue Jan 22 11:14:20 CET 2019


As ever, I learn from this: I didn't know apt-file. Got it, installed it, used it: 

root using DebianAdvent:/home/chris/Downloads/gmp-6.1.2# apt-file search jni.h 
android-libnativehelper-dev: /usr/include/android/nativehelper/jni.h 
android-platform-frameworks-native-headers: /usr/include/android/android/asset_manager_jni.h 
android-platform-frameworks-native-headers: /usr/include/android/android/native_window_jni.h 
gcj-6-jdk: /usr/lib/gcc/x86_64-linux-gnu/6/include/jni.h 
gcj-6-jdk: /usr/lib/jvm/java-1.5.0-gcj-6-amd64/include/jni.h 
libavcodec-dev: /usr/include/x86_64-linux-gnu/libavcodec/jni.h 
libgluegen2-build-java: /usr/share/gluegen2/make/stub_includes/jni/jni.h 
openjdk-8-jdk-headless: /usr/lib/jvm/java-8-openjdk-amd64/include/jni.h 

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

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

Anyone else got any ideas? 

Chris 

> 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 Evans <chris using psyctc.org> Skype: chris-psyctc 
Visiting Professor, University of Sheffield <chris.evans using sheffield.ac.uk> 
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. 
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/ 
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! 

	[[alternative HTML version deleted]]



More information about the R-SIG-Debian mailing list