Closed wscxxxx closed 4 years ago
rjava.c: In function ‘RJava_request_lock’: rjava.c:22:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(ipcout, buf, sizeof(ptrlong)); ^~~~~~~~~~~ rjava.c: In function ‘RJava_clear_lock’: rjava.c:30:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(ipcout, buf, sizeof(ptrlong)); ^~~~~~~~~~~ rjava.c: In function ‘RJava_request_callback’: rjava.c:39:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(ipcout, buf, sizeof(ptrlong) 3); ^~~~~~~~~~~ rjava.c: In function ‘RJava_init_ctrl’: rjava.c:51:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(ipcout, buf, sizeof(ptrlong)); ^~~~~~~~~~~ rjava.c:52:3: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result] read(resin, buf, sizeof(ptrlong) 2); ^~~~~~~~~ gcc -std=gnu99 -o libjri.so Rengine.o jri.o Rcallbacks.o Rinit.o globals.o rjava.o -shared -L/usr/lib/jvm/default-java/jre/lib/amd64/server -ljvm -Wl,--export-dynamic -fopenmp -Wl,-Bsymbolic-functions -Wl,-z,relro -L/usr/lib/R/lib -lR -lpcre2-8 -lpcre -llzma -lbz2 -lz -lrt -ldl -lm -licuuc -licui18n /usr/bin/ld: 找不到 -lpcre2-8 collect2: error: ld returned 1 exit status Makefile.all:35: recipe for target 'libjri.so' failed make[2]: [libjri.so] Error 1 make[2]: 离开目录“/tmp/RtmpSPhB1u/R.INSTALL785a29b46b7/rJava/jri/src” Makefile.all:19: recipe for target 'src/JRI.jar' failed make[1]: [src/JRI.jar] Error 2 make[1]: 离开目录“/tmp/RtmpSPhB1u/R.INSTALL785a29b46b7/rJava/jri” Makevars:14: recipe for target 'jri' failed make: *** [jri] Error 2 ERROR: compilation failed for package ‘rJava’
下载的程序包在 ‘/tmp/Rtmp39kFJu/downloaded_packages’里 Warning message: In install.packages("rJava") : 安装程序包‘rJava’时退出狀態的值不是0
This forum is for individuals using Docker images from https://rocker-project.org. (where rJava is already available on rocker/verse). Please try stackoverflow or another forum for general R help.
rocker/verse
rjava.c: In function ‘RJava_request_lock’: rjava.c:22:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(ipcout, buf, sizeof(ptrlong)); ^
~~~~~~~~~~ rjava.c: In function ‘RJava_clear_lock’: rjava.c:30:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(ipcout, buf, sizeof(ptrlong)); ^~~~~~~~~~~ rjava.c: In function ‘RJava_request_callback’: rjava.c:39:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(ipcout, buf, sizeof(ptrlong) 3); ^~~~~~~~~~~ rjava.c: In function ‘RJava_init_ctrl’: rjava.c:51:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(ipcout, buf, sizeof(ptrlong)); ^~~~~~~~~~~ rjava.c:52:3: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result] read(resin, buf, sizeof(ptrlong) 2); ^~~~~~~~~ gcc -std=gnu99 -o libjri.so Rengine.o jri.o Rcallbacks.o Rinit.o globals.o rjava.o -shared -L/usr/lib/jvm/default-java/jre/lib/amd64/server -ljvm -Wl,--export-dynamic -fopenmp -Wl,-Bsymbolic-functions -Wl,-z,relro -L/usr/lib/R/lib -lR -lpcre2-8 -lpcre -llzma -lbz2 -lz -lrt -ldl -lm -licuuc -licui18n /usr/bin/ld: 找不到 -lpcre2-8 collect2: error: ld returned 1 exit status Makefile.all:35: recipe for target 'libjri.so' failed make[2]: [libjri.so] Error 1 make[2]: 离开目录“/tmp/RtmpSPhB1u/R.INSTALL785a29b46b7/rJava/jri/src” Makefile.all:19: recipe for target 'src/JRI.jar' failed make[1]: [src/JRI.jar] Error 2 make[1]: 离开目录“/tmp/RtmpSPhB1u/R.INSTALL785a29b46b7/rJava/jri” Makevars:14: recipe for target 'jri' failed make: *** [jri] Error 2 ERROR: compilation failed for package ‘rJava’下载的程序包在 ‘/tmp/Rtmp39kFJu/downloaded_packages’里 Warning message: In install.packages("rJava") : 安装程序包‘rJava’时退出狀態的值不是0