rig icon indicating copy to clipboard operation
rig copied to clipboard

Error installing on Mac

Open CGMossa opened this issue 1 year ago • 9 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.

CGMossa avatar Jun 25 '24 19:06 CGMossa

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?

CGMossa avatar Jun 25 '24 19:06 CGMossa

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 avatar Jun 25 '24 21:06 gaborcsardi

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.

gaborcsardi avatar Jun 26 '24 07:06 gaborcsardi

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!

CGMossa avatar Jun 26 '24 07:06 CGMossa

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

cathblatter avatar Jul 02 '24 18:07 cathblatter

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

abduazizR avatar Jul 09 '24 17:07 abduazizR

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

Same. I get the installation error message, but this appear to be erroneous since the target has been successfully installed.

grantmcdermott avatar Nov 13 '24 17:11 grantmcdermott

Same. I get the installation error message, but this appear to be erroneous since the target has been successfully installed.

I just had the same thing occur when running sudo rig add which installed R 4.4.2. However, my previous installation of R 4.4.0 is now gone.

Edit: rig add 4.4.0 removes 4.4.2 perhaps that is where the error message is coming from? Edit 2: turns out the file naming convention is major.minor-arm64 meaning there is room for only one patch version per Mac.

JosiahParry avatar Jan 23 '25 16:01 JosiahParry

I just did

brew install --cask rig

and tried:

rig add 4.4.3

This ends in:

% rig add 4.4.3
[INFO] Running `sudo` for adding new R versions. This might need your password.
[INFO] arm64-R-4.4.3-arm64.pkg is cached at /tmp/rig/arm64-R-4.4.3-arm64.pkg
[INFO] Running installer
[INFO] > installer: Package name is R 4.4.3 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/kFlgnbtCeV.pkg", "-target", "/"] exited with code 1

That's a pity. MacOS Apple M3 Max (arm64) macOS Sequoia 15.3.2

I also observe permission problems in its library files. I wished - like Python's uv - R would install in some ~/.cache/rig/ folder. Thus locally => no permission problems. And in clusters this would be necessary to be able to use rig in a high performance cluster.

gwangjinkim avatar Apr 03 '25 14:04 gwangjinkim