r-lib / rig

The R Installation Manager
MIT License
585 stars 23 forks source link

Error installing on Mac #237

Open CGMossa opened 1 week ago

CGMossa commented 1 week ago
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.

CGMossa commented 1 week ago

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?

gaborcsardi commented 1 week ago

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.

gaborcsardi commented 1 week ago

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

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

CGMossa commented 1 week ago

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!

cathblatter commented 2 days ago

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