Comments (2)
Please see https://github.com/s-u/rJava - scroll down to the Troubleshooting section for Linux. config.log
is next to configure
in your build directory. If you don't have write permission to the R installation, you can use -e
to start a shell with the configured variables set as environment variables.
from rjava.
Thank you for the suggestions, I have launched "R CMD javareconf -e" and I found this error:
Java interpreter : /usr/bin/java
Java version : 1.8.0_282
Java home path : /share/apps/spack/latest-2024-01-17/linux-centos8-skylake_avx512/gcc-8.4.1/openjdk-11.0.2-fu22jzad3otvgxftqlynpxiqt4emtqiq
Java compiler : /share/apps/spack/latest-2024-01-17/linux-centos8-skylake_avx512/gcc-8.4.1/openjdk-11.0.2-fu22jzad3otvgxftqlynpxiqt4emtqiq/bin/javac
Java headers gen.:
Java archive tool: /share/apps/spack/latest-2024-01-17/linux-centos8-skylake_avx512/gcc-8.4.1/openjdk-11.0.2-fu22jzad3otvgxftqlynpxiqt4emtqiq/bin/jar
trying to compile and link a JNI program
detected JNI cpp flags :
detected JNI linker flags :
using C compiler: ‘gcc (GCC) 10.2.0’
gcc -I"/opt/R/4.3.1/lib/R/include" -DNDEBUG -I///share/apps/spack/latest-2024-01-17/linux-centos8-skylake_avx512/gcc-8.4.1/openjdk-11.0.2-fu22jzad3otvgxftqlynpxiqt4emtqiq/include -fpic -g -O2 -c conftest.c -o conftest.o
In file included from conftest.c:1:
///share/apps/spack/latest-2024-01-17/linux-centos8-skylake_avx512/gcc-8.4.1/openjdk-11.0.2-fu22jzad3otvgxftqlynpxiqt4emtqiq/include/jni.h:45:10: fatal error: jni_md.h: No such file or directory
45 | #include "jni_md.h"
| ^~~~~~~~~~
compilation terminated.
make: *** [/opt/R/4.3.1/lib/R/etc/Makeconf:191: conftest.o] Error 1
Unable to compile a JNI program
The following Java variables have been exported:
JAVA_HOME JAVA JAVAC JAVAH JAR JAVA_LIBS JAVA_CPPFLAGS JAVA_LD_LIBRARY_PATH
Running: /bin/bash
Do you know how can I solve the issue?
from rjava.
Related Issues (20)
- wrong class in method signatures HOT 5
- R freezes when executing rJava::.jinit() HOT 1
- how to load jar by J()? HOT 1
- Termination Error with rJava When Executing Complex R Code from Java Application HOT 3
- rJava issue HOT 1
- Struggling with rJava and dependent packages in Rstudio Mac M1. Error: package or namespace load failed for ‘rJava’: HOT 3
- Segmentation Fault when try re.eval("library('forecast')") HOT 2
- *** caught segfault *** address 0xfffffffffffffff8, cause 'invalid permissions' HOT 1
- long vectors not supported yet: memory.c:3888 HOT 1
- Please submit rJava 1.0-8 to CRAN HOT 1
- Error: "Sorry, parameter type 'X' is ambiguous or not supported." HOT 2
- Error: package or namespace load failed for ‘rJava’ HOT 2
- Can't install from source package on Mac OS 14.2 HOT 1
- rJava install error on macOS M2 with homebrew-installed java HOT 1
- Licensing uncertainty HOT 2
- Can objects generated by rJava be saved locally? HOT 2
- R session Aborted Rjava HOT 1
- Is remote Java debugging supported? HOT 1
- StackOverflowError in "process reaper" thread when using .jcall() or J() with java.lang.Runtime and exec HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rjava.