gpt4 book ai didi

java - 安装 JGR 时遇到问题

转载 作者:行者123 更新时间:2023-11-30 05:54:42 27 4
gpt4 key购买 nike

我一直在尝试安装 JGR 但没有成功。当我尝试时,我收到下面发布的错误。我曾尝试使用 JGR-1.6-SL.dmg 进行安装以及通过 R 终端进行安装。这似乎是一个 Java 问题,但我不确定如何解决它。

这是我的系统信息:

OSX 10.7.2
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03-383-11A511)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-383, mixed mode)
R version 2.14.1 (2011-12-22) (Installed with homebrew)

错误:

* installing *source* package ‘iplots’ ...
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
Note: On Mac OS X we strongly recommend using iplots from within JGR.
Proceed at your own risk as iplots cannot resolve potential ev.loop deadlocks.
'Yes' is assumed for all dialogs as they cannot be shown without a deadlock,
also ievent.wait() is disabled.
2012-01-29 16:24:57.870 R[29384:c07] Apple AWT Java VM was loaded on first thread -- can't start AWT.
Error : .onLoad failed in loadNamespace() for 'iplots', details:
call: .jnew("org/rosuda/iplots/Framework")
error: java.lang.InternalError: Can't start the AWT because Java was started on the first thread. Make sure StartOnFirstThread is not specified in your application's Info.plist or on the command line
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Users/User/Library/R/2.14/library/iplots’
Warning in install.packages :
installation of package ‘iplots’ had non-zero exit status
ERROR: dependency ‘iplots’ is not available for package ‘JGR’
* removing ‘/Users/User/Library/R/2.14/library/JGR’
Warning in install.packages :
installation of package ‘JGR’ had non-zero exit status

如有任何帮助,我们将不胜感激。谢谢。

最佳答案

在你的 OS X 版本上,如果你想从源代码编译 iplots 和 JGR 包,你需要设置 NOAWT=1(例如通过使用 NOAWT=1 R CMD INSTALL ..)。

请使用stats-rosuda-devel有关 JGR/rJava/iplots 问题的邮件列表

关于java - 安装 JGR 时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9058157/

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