本文介绍了在Mac OS X中加载rgl软件包时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Mac OS X(Lion 10.7.3)下为R(2.14.2)安装rgl软件包(0.92.858).当我尝试加载它(library(rgl))时,出现以下错误:

I am trying to install rgl package (0.92.858) for R (2.14.2) under Mac OS X (Lion 10.7.3). When I try to load it (library(rgl)), I get the following error:

  Error : .onLoad failed in loadNamespace() for 'rgl', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/Library/Frameworks/R.framework/Versions/2.14/Resources/library/rgl/libs/x86_64/aglrgl.so':
  dlopen(/Library/Frameworks/R.framework/Versions/2.14/Resources/library/rgl/libs/x86_64/aglrgl.so, 6): Symbol not found: __ZN3gui13OSXGUIFactory12hasEventLoopEv
  Referenced from: /Library/Frameworks/R.framework/Versions/2.14/Resources/library/rgl/libs/x86_64/aglrgl.so
  Expected in: dynamic lookup

我有一台带挪威键盘的Mac.也许这与问题有关?但是,即使我将语言更改为美国,也会遇到相同的错误.有人遇到过类似的问题吗?有办法解决吗?

I have a Mac with Norwegian keyboard. Maybe this has something to do with the issue? However, I get the same error, even though I change the language to U.S. Has anyone experienced similar problem? Any way solving it?

推荐答案

我在OSX 10.9.2上遇到rgl 0.93.996的问题,但是在重新安装几次后,我看到安装rgl-错误:未找到X11但需要,配置中止"

I was having this problem with rgl 0.93.996 on OSX 10.9.2, but then after reinstalling several times I saw "Installing rgl - error: X11 not found but required, configure aborted"

快速搜索将我带到了这里 https://stat.ethz.ch/pipermail/r-sig-mac/2012-March/009077.html

A quick search took me here https://stat.ethz.ch/pipermail/r-sig-mac/2012-March/009077.html

然后,我终于可以通过下载XQuartz使其工作了. https://www.xquartz.org 因此,就我而言,问题就是X11.

Then I was finally able to get it to work by downloading XQuartz https://www.xquartz.org So it was X11 that was the problem in my case.

这篇关于在Mac OS X中加载rgl软件包时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-12 03:56