Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R 3.3.0 installing a package on Windows: gcc not found error

Tags:

package

r

gcc

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!

like image 989
Zhe Liu Avatar asked Jun 09 '16 14:06

Zhe Liu


1 Answers

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.

like image 151
Zhe Liu Avatar answered Sep 21 '22 15:09

Zhe Liu