R 安装 rJava
错误提示
configure: error: Java Development Kit (JDK) is missing or not registered in RMake sure R is configured with full Java support (including JDK).
解决:
sudo apt install openjdk-11-jdk
sudo R CMD javareconf JAVAC=/usr/lib/jvm/java-11-openjdk-amd64/bin/javac JAR=/usr/lib/jvm/java-11-openjdk-amd64/bin/jar
sudo R CMD javareconf JAVAC=/usr/lib/jvm/java-11-oracle/bin/javac JAR=/usr/lib/jvm/java-11-oracle/bin/jar JAVA_HOME=/usr/lib/jvm/java-11-oracle//bin/jar
configure: error: Java Development Kit (JDK) is missing or not registered in RMake sure R is configured with full Java support (including JDK).
解决:
sudo apt install openjdk-11-jdk
sudo R CMD javareconf JAVAC=/usr/lib/jvm/java-11-openjdk-amd64/bin/javac JAR=/usr/lib/jvm/java-11-openjdk-amd64/bin/jar
sudo R CMD javareconf JAVAC=/usr/lib/jvm/java-11-oracle/bin/javac JAR=/usr/lib/jvm/java-11-oracle/bin/jar JAVA_HOME=/usr/lib/jvm/java-11-oracle//bin/jar
评论
发表评论