1

我正在运行 R 3.5.2 的香草副本:

> version
               _                           
platform       x86_64-apple-darwin18.2.0   
arch           x86_64                      
os             darwin18.2.0                
system         x86_64, darwin18.2.0        
status                                     
major          3                           
minor          5.2                         
year           2018                        
month          12                          
day            20                          
svn rev        75870                       
language       R                           
version.string R version 3.5.2 (2018-12-20)
nickname       Eggshell Igloo       

R 通过 Homebrew 安装:

$ brew --version
Homebrew 1.9.2
Homebrew/homebrew-core (git revision de1ec; last commit 2019-01-15)
Homebrew/homebrew-cask (git revision 68a73e; last commit 2019-01-14)

我正在尝试rgl从 XQuartz 2.7.11 和xterm应用程序中安装包,我收到以下错误:

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/usr/local/lib/R/3.5/site-library/rgl/libs/rgl.so':
  dlopen(/usr/local/lib/R/3.5/site-library/rgl/libs/rgl.so, 6): Library not loaded: @rpath/libc++.1.dylib
  Referenced from: /usr/local/lib/R/3.5/site-library/rgl/libs/rgl.so
  Reason: image not found
Error: package or namespace load failed for 'rgl':
 .onLoad failed in loadNamespace() for 'rgl', details:
  call: NULL
  error:        Loading rgl's DLL failed. 
        On MacOS, rgl depends on XQuartz, which you can download from xquartz.org.

这是一个屏幕截图,以确认我正在尝试从 XQuartzxterm应用程序中进行安装:

xterm 截图

配置允许安装的 Mac OS X 10.14 和 XQuartz 2.7.11 是否需要任何其他步骤rgl

4

0 回答 0