Rcpp Rtools installed but error message g++ not found

前端 未结 5 2021
失恋的感觉
失恋的感觉 2020-12-13 15:57

I have consulted existing entries on SO related to my specific issue, but still could not resolve it.

I am trying to do this with my machine at work, where I have li

相关标签:
5条回答
  • 2020-12-13 16:26

    I solved like this: Just copy the files needed in the path where it is looking for. ( my case, in C:\rtools40\mingw64\ copied the bin directory into the path he search for and worked !)

    0 讨论(0)
  • 2020-12-13 16:27

    The path c:/Rtools/mingw_64/bin/ is hard-coded into the file Makeconflocated somewhere in the R installation (in my case C:\Progs\R\R-3.4.1\etc\x64), as the value of the variable BINPREF.

    The easiest thing to do is to change this path to your path C:/WORK/Rtools/bin (in my case was C:/Progs/RTools/3.4/mingw_64/bin/). That worked for me in a fresh installation of R-3.4.1 and Rtools3.4, and a minimal example.

    0 讨论(0)
  • 2020-12-13 16:35

    A plausible and easy way to do this is to choose "Full installation to build 32 or 64 bit" in the following promp.enter image description here

    0 讨论(0)
  • 2020-12-13 16:39

    I was hitting the same issue on Windows 10 with RStudio 1.3+ and RTools 4.0. After installing RTools and trying to install another package (that needed RTools) it kept throwing the error

    c:/rtools40/mingw32/bin/g++: No such file or directory

    It kept picking up the wrong path of the RTools installation on windows. After restarting RStudio it picked up the right path:

    C:\RBuildTools\4.0\mingw32\bin

    0 讨论(0)
  • 2020-12-13 16:48

    What is happening is the need to be on RTools 34 and NOT 33 for R 3.3.x.

    Remove the rtools install and then follow the guide here:

    http://thecoatlessprofessor.com/programming/rcpp/install-rtools-for-rcpp/

    @David, you need to remove all instances of C:\WORK\Rtools\<something> and any duplicates (e.g. C:\WORK\R-3.3.0\bin\x64 appears twice.) Then add:

    c:\WORK\Rtools\bin; c:\WORK\Rtools\mingw_32\bin;

    0 讨论(0)
提交回复
热议问题