Tôi muốn cài đặt rJava nhưng nó không hoạt động. Khi tôi gõ CMD R javareconf trong giao diện điều khiển tôi nhận được lỗi sau:không thể biên dịch chương trình JNI rJava
trying to compile and link a JNI progam
detected JNI cpp flags :
detected JNI linker flags :
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -O3 -pipe -g
-c conftest.c -o conftest.o
conftest.c:1:17: error: jni.h: No such file or directory
conftest.c: In function 'main':
conftest.c:4: warning: implicit declaration of function 'JNI_CreateJavaVM'
make: *** [conftest.o] Error 1
Unable to compile a JNI program
Java library path:
JNI cpp flags :
JNI linker flags :
Updating Java configuration in /usr/lib64/R
Done.
Bất kỳ ý tưởng làm thế nào để sửa chữa nó?
conftest.c: 1: 17: lỗi: jni.h: Không có tệp hoặc thư mục như vậy ... vui lòng xem điều này –