gpt4 book ai didi

java - 无法在 R ubuntu 12.04 中安装 intamap 包(涉及 java)

转载 作者:行者123 更新时间:2023-12-02 06:30:29 25 4
gpt4 key购买 nike

我对 Ubuntu 很陌生,当前运行的是 12.04,我想在 R 中安装 intamapInteractive 包。我可以像以前一样通过 R-studio 中的安装包正常安装它,但是当我运行

library (intamapInteractive)

返回此消息:

Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/usr/lib/R/site-library/rJava/libs/rJava.so':
libjvm.so: cannot open shared object file: No such file or directory
Error: package or namespace load failed for ‘intamapInteractive’

我已经阅读并尝试过,但距离解决方案还很远。

我的 R 版本是

irene@saltafossi:~$ R --version
R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: i686-pc-linux-gnu (32-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
http://www.gnu.org/licenses/.

我今天安装的 java 可能是错误的:

irene@saltafossi:~$ java -version
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.12.04.2)
OpenJDK Server VM (build 20.0-b12, mixed mode)
irene@saltafossi:~$

非常感谢任何帮助。

最佳答案

通过谷歌搜索您收到的错误消息,找到 the following link 。问题是 java 相关 .so 文件的位置在 ubuntu 更新之间发生变化。链接中建议的解决方案是更改 LD_LIBRARY_PATH 以包含所需 .so 文件所在的位置。以下博客文章中的引用提供了更多详细信息:

The location of JDK is always changed because of updates but Ubuntu stores the links of current JVM in default-java directory. It is /usr/lib/jvm/default-java in my Linux. Two directories must be added to LD_LIBRARY_PATH. The first one is jre/lib/i386 and the second one is jre/lib/i386/client or jre/lib/i386/server in default-java directory. Use of export solves my problem.

关于java - 无法在 R ubuntu 12.04 中安装 intamap 包(涉及 java),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20106158/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com