启动R后,在交互终端中执行 install.packages(“rJava”),下载rJava包编译一会儿,报类似下面错误:
Error : .onLoad failed in loadNamespace() for ‘rJava’, details:
call: dyn.load(file, DLLpath = DLLpath, …)
error: unable to load shared object
‘/home/hadoop/R/x86_64-pc-linux-gnu-library/3.0/rJava/libs/
rJava.so
‘:
libjvm.so
:
cannot open shared object file:
No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/hadoop/R/x86_64-pc-linux-gnu-library/3.0/rJava’
* restoring previous ‘/home/hadoop/R/x86_64-pc-linux-gnu-library/3.0/rJava’