r-lib/rig

Error installing on Mac

CGMossa opened this issue · 7 comments

sudo rig install release
[INFO] arm64-R-4.4.1-arm64.pkg is cached at /tmp/rig/arm64-R-4.4.1-arm64.pkg
[INFO] Running installer
[INFO] > installer: Package name is R 4.4.1 for macOS (ARM64)
[INFO] > installer: Installing at base path /
[INFO] > installer: The install failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An unexpected error occurred while moving files to the final destination.)
[ERROR] command ["arch", "-arm64", "installer", "-pkg", "/tmp/rig/EMyFIpJkLF.pkg", "-target", "/"] exited with code 1

I'm using zsh on Mac,

❯ sw_vers                 
ProductName:            macOS
ProductVersion:         14.5
BuildVersion:           23F79

I tried to use "regular" terminal and still encountered this issue.

I tried rig system fix-permissions. It didn't work. Then I granted the terminal full disk access, and that worked. But that cannot be the permanent solution, right?

But that cannot be the permanent solution, right?

IDK if there is any other way for a command line app to run the R installer.

So, I agree that this is not great, and I'll

  • investigate if this is the best we can do,
  • If yes, then try to have a better error message, and
  • document this.

If you don't mind, I'll leave this issue open for now.

Oh, I don't mind. I just read your response, the FAQ, and just sort of thought it was a done and closed deal.

This might be new Mac OS related too. I'm very new to the mac universe, but googling didn't yield good answers either.

Thanks!

fwiw I got the same error message but the installation still worked without running more than rig install release in iterm2

I get the same message. But I managed to have multiple versions available anyway when I run rig list I can see all versions installed