Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error for rJava on Ubunutu 20.04 LT #28

Open
ghost opened this issue Sep 26, 2021 · 0 comments
Open

Installation error for rJava on Ubunutu 20.04 LT #28

ghost opened this issue Sep 26, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 26, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants