R 3.3.0 在 Windows 上安装包:gcc not found 错误 [英] R 3.3.0 installing a package on Windows: gcc not found error

查看:18
本文介绍了R 3.3.0 在 Windows 上安装包:gcc not found 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Windows 下安装包含一些 C 代码的 R 包.我已经安装了 R 3.3.0 并在我的计算机的 D: 磁盘上安装了 Rtools 3.3.0.

I am trying to install an R package which contains some C code under Windows. I have R 3.3.0 installed and also Rtools 3.3.0 installed on my computer's D: disk.

并且d:Rtoolsind:Rtoolsmingw_64in都在PATH中.我在命令窗口下检查了 gcc 命令,它正在工作.

And d:Rtoolsin and d:Rtoolsmingw_64in are all in PATH. I checked gcc command under command window, and it is working.

但是当我安装软件包时,它总是试图使用 c:/Rtools/mingw_64/bin/gcc,它应该在 d: 磁盘中,然后它给出了 c:/Rtools/mingw_64/bin/gcc: not found 错误.

But when I am installing the package, it always trying to use c:/Rtools/mingw_64/bin/gcc, which should be in d: disk, then it gives c:/Rtools/mingw_64/bin/gcc: not found error.

谁能帮忙解决这个问题?

Can anyone help on this issue?

谢谢!

推荐答案

好的,关于这个问题,我给 R-package-devel 小组发了一封电子邮件.以下是回复,确实有效!

OK, I sent an email to the R-package-devel group regarding to this issue. And the following is the reply, and it does work!

请在 R/etc/$Arch/Makeconf 文件中调整您的 BINPREF 变量适当地指向每个对应的编译器架构 - 这是我们与 R >= 3.3.0 一起使用的新工具链的新功能.

这篇关于R 3.3.0 在 Windows 上安装包:gcc not found 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆