rjava 计算机中丢失jvm.dll,求教大神,xlsx缺少rJava的问题

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

小渣刚学R,系统Ubuntu 14.04.2 R版本 r-base-core 3.0.2-1ubuntu1

> library(xlsx)

载入需要的程辑包:rJava

Error : loadNamespace()里算'rJava'时.onLoad失败了,详细内容:

调用: dyn.load(file, DLLpath = DLLpath, ...)

错误: 无法载入共享目标对象‘/usr/lib/R/site-library/rJava/libs/rJava.so’::

libjvm.so: 无法打开共享对象文件: 没有那个文件或目录

错误: 无法载入程辑包‘rJava’

安装rJava

> install.packages("rJava")

Installing package into ‘/home/sqreb/R/x86_64-pc-linux-gnu-library/3.0’

(as ‘lib’ is unspecified)

试开URL’http://mirror.bjtu.edu.cn/cran/src/contrib/rJava_0.9-6.tar.gz'

Content type 'application/octet-stream' length 567515 bytes (554 Kb)

打开了URL

==================================================

downloaded 554 Kb

* installing *source* package ‘rJava’ ...

** 成功将‘rJava’程序包解包并MD5和检查

checking for gcc... gcc -std=gnu99

checking whether the C compiler works... yes

checking for C compiler default output file name... a.out

checking for suffix of executables...

checking whether we are cross compiling... no

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc -std=gnu99 accepts -g... yes

checking for gcc -std=gnu99 option to accept ISO C89... none needed

checking how to run the C preprocessor... gcc -std=gnu99 -E

checking for grep that handles long lines and -e... /bin/grep

checking for egrep... /bin/grep -E

checking for ANSI C header files... yes

checking for sys/wait.h that is POSIX.1 compatible... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking for string.h... (cached) yes

checking sys/time.h usability... yes

checking sys/time.h presence... yes

checking for sys/time.h... yes

checking for unistd.h... (cached) yes

checking for an ANSI C-conforming const... yes

checking whether time.h and sys/time.h may both be included... yes

configure: checking whether gcc -std=gnu99 supports static inline...

yes

checking whether setjmp.h is POSIX.1 compatible... yes

checking whether sigsetjmp is declared... yes

checking whether siglongjmp is declared... yes

checking Java support in R... present:

interpreter : '/usr/bin/java'

archiver : '/usr/bin/jar'

compiler : '/usr/bin/javac'

header prep.: '/usr/bin/javah'

cpp flags : '-I/usr/lib/jvm/java-7-openjdk-amd64/jre/../include'

java libs : '-L/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server -ljvm'

checking whether Java run-time works... yes

checking whether -Xrs is supported... yes

checking whether JNI programs can be compiled... configure: error: Cannot compile a simple JNI program. See config.log for details.

Make sure you have Java Development Kit installed and correctly registered in R.

If in doubt, re-run "R CMD javareconf" as root.

ERROR: configuration failed for package ‘rJava’

* removing ‘/home/sqreb/R/x86_64-pc-linux-gnu-library/3.0/rJava’

下载的程序包在

‘/tmp/RtmpNedv4h/downloaded_packages’里

警告信息:

In install.packages("rJava") : 安装程序包‘rJava’时退出状态的值不是0

求助大神,该怎么破

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值