由于缺少“ math.h”文件,R包的编译失败

时间:2020-08-04 03:40:25

标签: r xcode clang rcpp r-package

最近,我已经将MacOS更新到版本10.15.6。从那时起,我以前安装的R软件包之一“ largeVis”就无法工作。我试图重新安装该软件包,但由于找不到文件'math.h'而失败。 我用来安装软件包的命令是:

R CMD INSTALL largeVis_0.2.tar.gz

错误消息是:

  file not found
#include_next <math.h>
          ^~~~~~~~
1 error generated.
make: *** [RcppExports.o] Error 1
ERROR: compilation failed for package ‘largeVis’
* removing‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/largeVis’
* restoring previous‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/largeVis’

但是,我确实在该文件夹下找到了“ math.h”文件。我尝试了几种方法,但是都失败了,例如,重新安装xcode命令行。 有人可以帮我吗?谢谢!

0 个答案:

没有答案
相关问题