Can't access User Library in R - “Non-Zero Exit Status” warning

前端 未结 8 1954
猫巷女王i
猫巷女王i 2020-12-30 10:19

When I tried to install packages on my work laptop, I got an error. I\'ve been told that I have full privileges with the laptop, so there should be no blocks.

I thi

8条回答
  •  無奈伤痛
    2020-12-30 10:46

    My problem was fixed by giving me ownership permissions over the Resources/library folder.

    The way I solved it, was to go to Recovery Mode (Press Command + R when booting), then go to Utilities > Terminal.

    I temporarily disabled the Configuring System Integrity Protection with (WARNING: REMEMBER TO ENABLE IT AFTERWARDS):

    csrutil disable
    

    Went back to macOS, right click on the library folder > Get Info > Sharing & Permissions > Click on the lock and enter your admin password > and added myself to read/write.

    Restart the mac, enter Recovery Mode again, go to the terminal, and enable the Integrity Protection

    csrutil enable
    

    Hope it helps, and please, remember to re-enable the csrutil, your system is very vulnerable in that state, so if you suspect you have some kind of malware, don't use this solution.

提交回复
热议问题