安装" rgl"时出错优胜美地包10.10.4

时间:2015-07-11 04:40:15

标签: r rgl yosemite

每当我尝试在Yosemite 10.10.4上安装rgl包时,都会收到此消息

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/3.2/Resources/library/rgl/libs/rgl.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.2/Resources/library/rgl/libs/rgl.so, 6): Library not loaded: /opt/X11/lib/libGLU.1.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.2/Resources/library/rgl/libs/rgl.so
  Reason: image not found
Error: package or namespace load failed for ‘rgl’

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

六年来为时已晚,但其他人正在寻找解决方案。对我有用的解决方案是下载并安装XQuartz https://www.xquartz.org

请参阅Stackoverflow答案herehere