我正在尝试在Suse SLES 12上安装rJava。我安装了JDK 7(7u51),修复了我的JAVA_HOME
,运行sudo R CMD javareconf
并安装了此处建议的软件包:rJava won't install on openSUSE 13.2。
gcc -std=gnu99 -o libjri.so Rengine.o jri.o Rcallbacks.o Rinit.o globals.o rjava.o -shared -L/usr/java/jdk1.7.0_51/jre/lib/amd64/server -ljvm -Wl,--export-dynamic -fopenmp -L/usr/lib64/R/lib -lR -lpcre -llzma -lz -lrt -ldl -lm -licuuc -licui18n
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot find -lpcre
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot find -llzma
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
Makefile.all:38: recipe for target 'libjri.so' failed
make[2]: *** [libjri.so] Error 1
make[2]: Leaving directory '/tmp/RtmptpO8Z9/R.INSTALL7e795f7a8704/rJava/jri/src'
Makefile.all:21: recipe for target 'src/JRI.jar' failed
make[1]: *** [src/JRI.jar] Error 2
make[1]: Leaving directory '/tmp/RtmptpO8Z9/R.INSTALL7e795f7a8704/rJava/jri'
Makevars:14: recipe for target 'jri' failed
make: *** [jri] Error 2
ERROR: compilation failed for package ‘rJava’
* removing ‘/opt/node_apps/acas-2016-02-03-13-07-09/r_libs/rJava’
我尝试更新zypper install libpcre1
和zypper install liblzma5
,但更新它们并未更改错误消息。
我知道在Ubuntu上有liblzma-dev
可以提供帮助(https://github.com/s-u/rJava/issues/8),但我找不到Suse的类似软件包。
有谁知道我错过了什么?
答案 0 :(得分:1)
请安装以下RPM软件包
然后再试一次。我现在不太确定,但如果没有帮助,请确保安装这些包装: