-
Notifications
You must be signed in to change notification settings - Fork 24
Description
I just tried to update my rJava on my Ubuntu 20.04 LT desktop, running R 4.1.1. openjdk 11.0.11 2021-04-20 is installed.
The error reported was:
gcc -std=gnu99 -o libjri.so Rengine.o jri.o Rcallbacks.o Rinit.o globals.o rjava.o -shared -L/usr/lib/jvm/default-java/lib/server -ljvm -Wl,--export-dynamic -fopenmp -Wl,-Bsymbolic-functions -Wl,-z,relro -L/usr/lib/R/lib -lR -lpcre2-8 -llzma -lbz2 -lz -lrt -ldl -lm -licuuc -licui18n
/usr/bin/ld: cannot find -lbz2
collect2: error: ld returned 1 exit status
make[2]: Leaving directory '/tmp/RtmpepbWza/R.INSTALL48fe5b5d43a4/rJava/jri/src'
make[1]: Leaving directory '/tmp/RtmpepbWza/R.INSTALL48fe5b5d43a4/rJava/jri'
make[2]: *** [Makefile.all:35: libjri.so] Error 1
make[1]: *** [Makefile.all:19: src/JRI.jar] Error 2
make: *** [Makevars:14: jri] Error 2
ERROR: compilation failed for package ‘rJava’
- removing ‘/home/larry/R/x86_64-pc-linux-gnu-library/4.1/rJava’
- restoring previous ‘/home/larry/R/x86_64-pc-linux-gnu-library/4.1/rJava’
Warning in install.packages :
installation of package ‘rJava’ had non-zero exit status
Does one need a regular Oracle JDK, or is openJDK 11.0.11 supposed to work?
Thanks for the help in getting this update installed.
Larry Hunsicker