6 Mart 2018 Salı

libjvm.so: cannot open shared object file: No such file or directory

If you are getting that error when trying to load rJava, Please try the approach below:
Steps:
  1. Find your R library location. Mine is /usr/lib/R/lib
  2. Find the libjvm.so file which is usually in the usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server path depending on which jre you're using. Check in $JAVA_HOME environment.
  3. Create a symlink using ln -s
    sudo ln -s /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so /usr/lib/R/lib/libjvm.so
  4. Restart R server

keyword : libjvm.so: cannot open shared object file: No such file or directory

Hiç yorum yok: