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

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

问题描述

我试图在Windows下安装一个包含一些C代码的R包。我安装了R 3.3.0,并且还在我的计算机的D:磁盘上安装了Rtools 3.3.0。

d:\Rtools\bin d:\Rtools\\ \\\\\\\\\\\\\\'我在命令窗口中检查了gcc命令,它正在工作。



但是当我安装包时,它总是试图使用 c:/ Rtools / mingw_64 / bin / gcc ,它应该在 d:磁盘中,然后它给出 c:/ Rtools / mingw_64 / bin / gcc:找不到错误。



任何人都可以帮忙解决这个问题吗?

谢谢!

解决方案

好的,我发送了一封电子邮件给R-package-devel组。


$ b


请在R / etc / $ Arch / Makeconf文件
适当地指向每个
体系结构的相应编译器 - 这是我们在R> = 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.

And d:\Rtools\bin and d:\Rtools\mingw_64\bin are all in PATH. I checked gcc command under command window, and it is working.

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?

Thanks!

解决方案

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!

Please adapt your BINPREF variable in R/etc/$Arch/Makeconf files appropriately to point to the coresponding compiler for each architecture - this is new with the new toolchain we use with R >= 3.3.0.

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

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