[R-br] Erro Java
Márcio Midon
marciomidon em gmail.com
Ter Mar 19 15:54:52 -03 2024
Executei no terminal R CMD javareconf e recebi esta mensagem:
sudo R CMD javareconf
Java interpreter : /usr/lib/jvm/default-java/bin/java
Java version : 11.0.22
Java home path : /usr/lib/jvm/default-java
Java compiler : /usr/bin/javac
Java headers gen.:
Java archive tool: /usr/bin/jar
trying to compile and link a JNI program
detected JNI cpp flags :
detected JNI linker flags : -L$(JAVA_HOME)/lib/server -ljvm
using C compiler: ‘gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0’
gcc -I"/usr/share/R/include" -DNDEBUG -fpic -g -O2
-ffile-prefix-map=/build/r-base-14Q6vq/r-base-4.3.3=.
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -c conftest.c -o conftest.o
conftest.c:1:10: fatal error: jni.h: Arquivo ou diretório inexistente
1 | #include <jni.h>
| ^~~~~~~
compilation terminated.
make: *** [/usr/lib/R/etc/Makeconf:191: conftest.o] Erro 1
Unable to compile a JNI program
JAVA_HOME : /usr/lib/jvm/default-java
Java library path:
JNI cpp flags :
JNI linker flags :
Updating Java configuration in /usr/lib/R
Done.
Em 19/03/2024 15:35, Márcio Midon escreveu:
>
> Boa tarde pessoal,
>
> Estou tentando instalar o pacote r5r no RStudio e recebo esta mensagem
> de erro (Uso Ubuntu 22.04x64), como resolvo?Alguma dica?
>
> configure: error: Java Development Kit (JDK) is missing or not
> registered in R Make sure R is configured with full Java support
> (including JDK). Run R CMD javareconf as root to add Java support to
> R. If you don't have root privileges, run R CMD javareconf -e to set
> all Java-related variables and then install rJava. ERROR:
> configuration failed for package ‘rJava’ * removing
> ‘/home/analista/R/x86_64-pc-linux-gnu-library/4.3/rJava’
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://listas.inf.ufpr.br/pipermail/r-br/attachments/20240319/390a0217/attachment.htm>
Mais detalhes sobre a lista de discussão R-br