簡體   English   中英

Is the location of gcc.exe for studio running R 4.2.1 on windows 10 causing gcc.exe, the c compiler, to error in compiling?

[英]Is the location of gcc.exe for studio running R 4.2.1 on windows 10 causing gcc.exe, the c compiler, to error in compiling?

問題與 gcc.exe 的位置有關,c 編譯器,RStudio 即 rtools42

On the console of RStudio in windows 10, on running system('where gcc') the display indicates C:\rtools42\x86_64-w64-mingw32.static.posix\bin\gcc.exe

應該是 C:\rtools42\mingw64\bin\gcc.exe

我的路徑表明 C:\rtools42\mingw64\bin\gcc.exe 幾乎在最頂端。

我有一種不好的感覺,我可能弄亂了 rtools 的安裝,在我 go 並重新安裝 rtools 之前,你能告訴我這是否也是你所看到的嗎?

在雲端使用 RStudio,gcc.exe 正確位於 /usr/bin/gcc

一些 c 編譯與 gcc 產生錯誤。

解決方法是將gcc的路徑添加到windows環境變量中。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM