R 3.3.0 installing a package on Windows: gcc not f

2019-01-13 22:36发布

问题:

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!

回答1:

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 gcc package