簡體   English   中英

使 rtools40 在 Parallels VM 中的 Windows 10 中的 Rstudio 1.2.5042 和 TERR(Tibco Engine R)上工作

[英]Getting rtools40 to work on Rstudio 1.2.5042 and TERR (Tibco Engine R) in Windows 10 within Parallels VM

編輯:問題最終是 TERR 5.1.0 實際上基於 R 3.6。 因此需要 Rtools35。 第二個問題是我試圖將軟件包安裝到 Rstudio 默認設置的網絡位置,因為它安裝在 Parallels VM 中。

最近幾天我一直在努力解決這個問題。 有很多關於如何解決 rtools40 問題的帖子,我閱讀了我能找到的所有內容,但仍然沒有解決這個問題。 問題可能源於我必須使用 Rstudio 和 TERR(TIBCO Enterprise Runtime for R =)而不是 R,而且所有內容都在 Parallels VM 中運行。

安裝軟件包時(在這種情況下它是 Vegan,但也嘗試了 devtools、tidyverse 和其他)我得到這些錯誤:

> install.packages("vegan", verbose = TRUE)
also installing the dependencies 'lattice' 'Matrix' 'nlme' 'mgcv' 'cluster' 'MASS' 'permute' 
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/lattice_0.20-41.zip' to file 'C:\TEMP\TERR_06cc00291/downloaded_packages/lattice_0.20-41.zip'
  Downloaded 1174416 bytes
Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/Matrix_1.2-18.zip' to file 'C:\TEMP\TERR_06cc00291/downloaded_packages/Matrix_1.2-18.zip'
  Downloaded 4523013 bytes
Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/nlme_3.1-149.zip' to file 'C:\TEMP\TERR_06cc00291/downloaded_packages/nlme_3.1-149.zip'
  Downloaded 2378266 bytes
Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/mgcv_1.8-33.zip' to file 'C:\TEMP\TERR_06cc00291/downloaded_packages/mgcv_1.8-33.zip'
  Downloaded 3315098 bytes
Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/cluster_2.1.0.zip' to file 'C:\TEMP\TERR_06cc00291/downloaded_packages/cluster_2.1.0.zip'
  Downloaded 593835 bytes
Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/MASS_7.3-52.zip' to file 'C:\TEMP\TERR_06cc00291/downloaded_packages/MASS_7.3-52.zip'
  Downloaded 1191263 bytes
Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/permute_0.9-5.zip' to file 'C:\TEMP\TERR_06cc00291/downloaded_packages/permute_0.9-5.zip'
  Downloaded 507227 bytes
Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/vegan_2.5-6.zip' to file 'C:\TEMP\TERR_06cc00291/downloaded_packages/vegan_2.5-6.zip'
  Downloaded 3846550 bytes
* installing *binary* package lattice from "C:\\TEMP\\TERR_06cc00291\\downloaded_packages\\lattice_0.20-41.zip" to "\\\\Mac\\Home\\Documents\\TERR\\x86_64-w64-mingw32-library\\5.1"
'\\Mac\Home\Documents\TERR\x86_64-w64-mingw32-library\5.1'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
* checking MD5 checksums
    COULD NOT CHECK MD5 CHECKSUMS (probably no lattice/MD5 file)
* installing *binary* package Matrix from "C:\\TEMP\\TERR_06cc00291\\downloaded_packages\\Matrix_1.2-18.zip" to "\\\\Mac\\Home\\Documents\\TERR\\x86_64-w64-mingw32-library\\5.1"
'\\Mac\Home\Documents\TERR\x86_64-w64-mingw32-library\5.1'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
* checking MD5 checksums
    COULD NOT CHECK MD5 CHECKSUMS (probably no Matrix/MD5 file)
* installing *binary* package nlme from "C:\\TEMP\\TERR_06cc00291\\downloaded_packages\\nlme_3.1-149.zip" to "\\\\Mac\\Home\\Documents\\TERR\\x86_64-w64-mingw32-library\\5.1"
'\\Mac\Home\Documents\TERR\x86_64-w64-mingw32-library\5.1'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
* checking MD5 checksums
    COULD NOT CHECK MD5 CHECKSUMS (probably no nlme/MD5 file)
* installing *binary* package mgcv from "C:\\TEMP\\TERR_06cc00291\\downloaded_packages\\mgcv_1.8-33.zip" to "\\\\Mac\\Home\\Documents\\TERR\\x86_64-w64-mingw32-library\\5.1"
'\\Mac\Home\Documents\TERR\x86_64-w64-mingw32-library\5.1'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
* checking MD5 checksums
    COULD NOT CHECK MD5 CHECKSUMS (probably no mgcv/MD5 file)
* installing *binary* package cluster from "C:\\TEMP\\TERR_06cc00291\\downloaded_packages\\cluster_2.1.0.zip" to "\\\\Mac\\Home\\Documents\\TERR\\x86_64-w64-mingw32-library\\5.1"
'\\Mac\Home\Documents\TERR\x86_64-w64-mingw32-library\5.1'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
* checking MD5 checksums
    COULD NOT CHECK MD5 CHECKSUMS (probably no cluster/MD5 file)
* installing *binary* package MASS from "C:\\TEMP\\TERR_06cc00291\\downloaded_packages\\MASS_7.3-52.zip" to "\\\\Mac\\Home\\Documents\\TERR\\x86_64-w64-mingw32-library\\5.1"
'\\Mac\Home\Documents\TERR\x86_64-w64-mingw32-library\5.1'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
* checking MD5 checksums
    COULD NOT CHECK MD5 CHECKSUMS (probably no MASS/MD5 file)
* installing *binary* package permute from "C:\\TEMP\\TERR_06cc00291\\downloaded_packages\\permute_0.9-5.zip" to "\\\\Mac\\Home\\Documents\\TERR\\x86_64-w64-mingw32-library\\5.1"
'\\Mac\Home\Documents\TERR\x86_64-w64-mingw32-library\5.1'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
* checking MD5 checksums
    COULD NOT CHECK MD5 CHECKSUMS (probably no permute/MD5 file)
* installing *binary* package vegan from "C:\\TEMP\\TERR_06cc00291\\downloaded_packages\\vegan_2.5-6.zip" to "\\\\Mac\\Home\\Documents\\TERR\\x86_64-w64-mingw32-library\\5.1"
'\\Mac\Home\Documents\TERR\x86_64-w64-mingw32-library\5.1'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
* checking MD5 checksums
    COULD NOT CHECK MD5 CHECKSUMS (probably no vegan/MD5 file)

這是我的版本信息:

platform           x86_64-w64-mingw32
arch               x86_64
os                 mingw32
system             x86_64, mingw32
status             
major              3
minor              6.2
year               2020
month              05
day                20
svn rev            77560
language           TERR
version.string     TIBCO Enterprise Runtime for R version 5.1.0
                   (2020-05-20)
nickname           Hale Hydra
TERR.version       5.1.0
TERR.edition       Developer Edition
TERR.svn.rev       25477
build              V131
compiler           Intel
compiler.version   Intel(R) C++ Intel(R) 64 Compiler XE for
                   applications running on Intel(R) 64, Version
                   15.0.3.208 Build 20150407
compiler.flags     /W3 /Qdiag-error:63 /EHsc /D_SECURE_SCL=0 /MT /O3
                   /Qipo /Qinline-factor=100 /DNDEBUG
configuration      Release
os.printable       Microsoft Windows
use.mkl            TRUE
use.openmp         TRUE

這是幾個 sys.which 命令的輸出:

Sys.getenv('PATH')
[1] "C:\\rtools40\\usr\\bin;C:\\Program Files\\TIBCO\\terrde51\\bin\\x64;C:\\Program Files (x86)\\Parallels\\Parallels Tools\\Applications;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;${RTOOLS40_HOME}\\usr\\bin;C:\\rtools40\\mingw32\\bin;C:\\Users\\adi\\AppData\\Local\\Microsoft\\WindowsApps;"
> system('where make')
C:\rtools40\usr\bin\make.exe
> Sys.which("ls.exe")
                          ls.exe 
"C:\\rtools40\\usr\\bin\\ls.exe" 
> Sys.which("gcc.exe")
                              gcc.exe 
"C:\\rtools40\\mingw32\\bin\\gcc.exe"

我也嘗試將 mingw32 更改為 mingw64。

對於如何解決此問題的任何建議,我將不勝感激!

您的 Rtools 版本錯誤。

https://cloud.r-project.org/bin/windows/Rtools/

本文檔是關於 rtools40,當前用於 R 4.0.0 和更新版本的版本。 有關可用於 R 3.6.3 或更早版本的 Rtools 早期版本的信息,請訪問此頁面

您有兩種方法可以解決此問題:

  1. 將 R 升級為 R-4.0 或更新版本。 如果您願意,您可以卸載 R-3.6,但只要您的工具使用正確版本的 R-4 或更新版本,就沒有關系(您通常可以擁有 R 的並行版本,不會有太大問題)。

  2. 降級到 Rtools35。 雖然您可以保留 Rtools40,但您需要確保 R 看到的PATH不包括 Rtools40,這可以在 env-vars 的系統配置中完成,在您的~/.Rprofile / ~/.Renviron ,或者在這兩個文件的項目特定版本中。 (或者手動,每次……每次……你……開始……R。)

這聽起來像是一台您擁有控制權和管理員權限的計算機,因此除非您有理由繼續使用 R-3.6.2(例如,與其他系統的兼容性,或者您的項目尚未在 R-4 上進行測試),否則我推薦選項1。

暫無
暫無

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

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