如何解决安装 R 包“文化”:远程服务器中的编译器出错
我正在尝试在使用 SLURM 作为管理器的基于 Linux 的远程服务器中安装 R 包“cubature”。
鉴于我是服务器的用户,我没有 root 访问权限。我尝试在本地安装 R 包,但出现以下错误:
In file included from ./src/divonne/common.c:14:0,from ./src/common/CSample.c:77,from ./src/divonne/Divonne.c:14:
./src/divonne/Split.c: In function ‘SolveEqs’:
./src/divonne/Split.c:119:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
for(int first_time = 1 ; c >= cut; --c) {
^
./src/divonne/Split.c:119:3: note: use option -std=c99 or -std=gnu99 to compile your code
make[1]: *** [libcuba.a(Divonne.o)] Error 1
make[1]: Leaving directory `/tmp/RtmpKH27PL/R.INSTALLa8387b918120/cubature/src/Cuba-4.2'
make: *** [cuba.ts] Error 2
ERROR: compilation failed for package ‘cubature’
R 似乎找不到正确的编译器来安装 R 包。 你对我应该做什么有什么建议吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。