简体   繁体   English

R软件包RGL无法在具有MRAN的Mac上安装

[英]R package RGL fails to install on a Mac with MRAN

I'm trying to install rgl because another package needs some element of it. 我正在尝试安装rgl,因为另一个软件包需要其中的某些元素。 I have XQuartz running on the Mac because I'm using MRAN R. The installation (from CRAN within Rstudio, from the shell in Rstudio and other sources) fails with the following errors. 我在Mac上运行XQuartz,因为我正在使用MRANR。安装(从Rstudio中的CRAN,从Rstudio中的外壳和其他来源)安装失败,并出现以下错误。

    clang-omp++ -fopenmp -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/Users/gcn/anaconda/include/libpng16 -I/usr/X11/include -DDarwin -DNO_GL_PREFIX -I/opt/X11/include -DHAVE_FREETYPE -Iext/ftgl -I/opt/X11/include/freetype2 -Iext  -I/Users/Shared/Jenkins/workspace/External-R-3.3.3/vendor/build/include -DU_STATIC_IMPLEMENTATION -Wall -mtune=core2 -g -O2 -I/opt/X11/include   -fPIC  -g -O3 -Wall -pedantic -mtune=native -std=c++11 -c platform.cpp -o platform.o
platform.cpp:38:18: error: no member named 'x' in '_GLKVector3'
      *winX = result.x;
              ~~~~~~ ^
    platform.cpp:39:18: error: no member named 'y' in '_GLKVector3'
      *winY = result.y;
              ~~~~~~ ^
    platform.cpp:40:18: error: no member named 'z' in '_GLKVector3'
      *winZ = result.z;
              ~~~~~~ ^
    platform.cpp:64:18: error: no member named 'x' in '_GLKVector3'
      *objX = result.x;
              ~~~~~~ ^
    platform.cpp:65:18: error: no member named 'y' in '_GLKVector3'
      *objY = result.y;
              ~~~~~~ ^
    platform.cpp:66:18: error: no member named 'z' in '_GLKVector3'
      *objZ = result.z;

I also have a version of Rstudio running in an ubuntu instance on AWS and I didn't get these errors when installing. 我还在AWS的ubuntu实例中运行了一个Rstudio版本,安装时未出现这些错误。 The ubuntu doesn't use MRAN so I suppose that could the source of the problem on the mac, but this page from Microsoft - https://mran.microsoft.com/web/checks/check_results_rgl.html seems to suggest rgl does run with MRAN on a mac. Ubuntu的不使用MRAN所以我想,可以在Mac上的问题的根源,但微软这个页面- https://mran.microsoft.com/web/checks/check_results_rgl.html似乎暗示RGL不运行在Mac上使用MRAN。

You appear to have the compiler define __STRICT_ANSI__ set. 您似乎已使编译器定义了__STRICT_ANSI__集。 Normally rgl doesn't set that. 通常rgl不会设置。 The latest version of rgl on R-forge (0.98.13) has this fixed in the platform.cpp file where you saw the error, but there may be other places where problems arise. R-forge上的rgl的最新版本(0.98.13)已在platform.cpp文件中修复了此错误,在该文件中您看到了该错误,但可能在其他地方出现了问题。

You can get the latest version on R-forge. 您可以在R-forge上获得最新版本。 It is not available on CRAN (or MRAN). 它在CRAN(或MRAN)上不可用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM