Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

How to install Rtools without internet connection #29

Open
DGHunter opened this issue Oct 15, 2021 · 4 comments
Open

How to install Rtools without internet connection #29

DGHunter opened this issue Oct 15, 2021 · 4 comments

Comments

@DGHunter
Copy link

Hi there,

I am trying to set up Rtools on a work computer behind a VERY restrictive firewall. I can get the base Rtools installation done, but the mingw32.db, mingw64.db and ucrt64.db files are missing and I cannot download them using pacman -Sy. That is pretty much the case for all of the toolchain - I download outside the firewall, then import via physical media.

So, my question is, is there a set process for this and a list of things I need to download for a complete install? Forgive me if you have already detailed this, I just haven't found it yet.

@jeroen
Copy link
Member

jeroen commented Oct 15, 2021

The base rtools installation suffices for most purposes.

@DGHunter
Copy link
Author

Thanks! The reason I ask is that I downloaded the Rtools40 installer, I don't have a functioning toolchain when I try to install CmdStan.

When I try to fix it, pacman is unable to download mingw32.db, mingw64.db or ucrt64.db because it can't get out through the firewall. I will download these next and bring them in on physical media, but the problem make me wonder what else I may be missing. It would be nice to get it all in one go.

@jeroen
Copy link
Member

jeroen commented Oct 16, 2021

I dont think that is the problem. What error message do you get with rcmdstan?

@DGHunter
Copy link
Author

The check_cmdstan_toolchain() says there are problems, so I tried to run it with fix = TRUE:

check_cmdstan_toolchain(fix = TRUE)
Installing mingw32-make and writing RTools path to ~/.Renviron ...
Error in processx::run("pacman", args = c("-Syu", "mingw-w64-x86_64-make",  : 
  System command 'pacman' failed, exit status: 1, stderr (last 10 lines):
E> error: failed to update mingw32 (download library error)
E> error: failed retrieving file 'mingw64.db' from cloud.r-project.org : Connection timed out after 10009 milliseconds
E> error: failed retrieving file 'mingw64.db' from cran.r-project.org : Connection timed out after 10005 milliseconds
E> error: failed retrieving file 'mingw64.db' from r-windows.github.io : Connection timed out after 10000 milliseconds
E> error: failed to update mingw64 (download library error)
E> error: failed retrieving file 'ucrt64.db' from cloud.r-project.org : Connection timed out after 10003 milliseconds
E> error: failed retrieving file 'ucrt64.db' from cran.r-project.org : Connection timed out after 10015 milliseconds
E> error: failed retrieving file 'ucrt64.db' from r-windows.github.io : Connection timed out after 10013 milliseconds
E> error: failed to update uc
[...]

Checking at the command line I see

C:\Users\username>pacman
warning: database file for 'mingw32' does not exist (use '-Sy' to download)
warning: database file for 'mingw64' does not exist (use '-Sy' to download)
warning: database file for 'ucrt64' does not exist (use '-Sy' to download)
error: no operation specified (use -h for help)

and it can't update from there either due to the same issue (timeout). I'm sorry that I don't have more details, my VPN client has decided not to work this morning.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants