I just tried to update rJava on my Ubuntu 20.04 LT desktop. The update went fine until the following error was reported and the update failed:
/usr/bin/ld: cannot find -lbz2
collect2: error: ld returned 1 exit status
make: Leaving directory '/tmp/RtmpqjzJ1F/R.INSTALL1dd52f0e3563/rJava/jri/src'
make: *** [Makefile.all:35: libjri.so] Error 1
make: *** [Makefile.all:19: src/JRI.jar] Error 2
make: Leaving directory '/tmp/RtmpqjzJ1F/R.INSTALL1dd52f0e3563/rJava/jri'
make: *** [Makevars:14: jri] Error 2
ERROR: compilation failed for package ‘rJava’
This error message is not very informative.
javac 11.0.11 is installed (the default version for Ubuntu 20.04 LT
Running R 4.1.1 and RStudio Version 1.4.1717
Thanks in advance for any suggestions on how to correct this problem.