简体   繁体   English

错误:.onLoad在'rJava'的loadNamespace()中失败,详细信息在安装软件包时

[英]Error : .onLoad failed in loadNamespace() for 'rJava', details while installing a package

I was trying to install a package in R using the following command line, 我试图使用以下命令行在R中安装软件包,

/R-3.2.1/bin/R CMD INSTALL /CNVPanelizer_0.99.10.tar.gz

But it throws me rJava error as follows, 但这会向我抛出rJava错误,如下所示:

Error : .onLoad failed in loadNamespace() for 'rJava', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)

and so I tried the solution from [stackover][1] .. 所以我尝试了[stackover] [1]的解决方案

But it didnt help me and still the issue perexists 但这并没有帮助我,但问题仍然存在

Any solutions is greatly appreciated..my java version is 任何解决方案是极大的赞赏..我的Java版本是

java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

Finally this issue is solved by a little bit of change in java version from java 8 to java 7 最终,通过将Java版本从Java 8更改为Java 7的一些更改,解决了该问题

which java
jdk1.7.0_79/bin/java

and then I created a file /etc/ld.so.conf.d/java.conf with following entries in it (as super user), 然后我创建了文件/etc/ld.so.conf.d/java.conf,其中包含以下条目(以超级用户身份),

/home/user/jdk1.7.0_79/jre/lib/amd64/
/home/user/jdk1.7.0_79/jre/lib/amd64/server

and then run, 然后运行

sudo ldconfig

and restarted R again and it solved the issue 然后重新启动R,它解决了这个问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM