You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After activating on a fresh install with enableRosetta = true and trying to install a package under x86_64, I got this error:
$ arch -x86_64 brew install bazelisk Error: The following directories are not writable by your user:/usr/local/binYou should change the ownership of these directories to your user. sudo chown -R ichamberlain /usr/local/binAnd make sure that your user has write permission. chmod u+w /usr/local/bin
Looking at the directory it complained about, it seems possible that /usr/local/bin existed prior to homebrew installation due to my organization's device management software:
Performing the recommended steps worked and I was able to continue installation, but are my changes likely to get wiped out the next time nix-homebrew is activated? Is this something the activation script would be expected to do itself (i.e. perform those chown/chmod steps on the bin directory if it existed prior to the activation script running)?
Please let me know if there's any extra info I can provide, I can probably try to reproduce by nuking the whole homebrew installation and trying again, maybe also by manually setting permissions back to how they were...
Edit: semi-related question, is there a simple way to declare nix-darwin's homebrew.brews for multiple prefixes at the same time when using nix-homebrew? It seems like it only supports one brewPrefix by default, so I guess I'd need to write my own activation script if I wanted to also install packages under a second prefix with enableRosetta = true?
The text was updated successfully, but these errors were encountered:
After activating on a fresh install with
enableRosetta = true
and trying to install a package under x86_64, I got this error:Looking at the directory it complained about, it seems possible that
/usr/local/bin
existed prior to homebrew installation due to my organization's device management software:Performing the recommended steps worked and I was able to continue installation, but are my changes likely to get wiped out the next time
nix-homebrew
is activated? Is this something the activation script would be expected to do itself (i.e. perform thosechown
/chmod
steps on thebin
directory if it existed prior to the activation script running)?Please let me know if there's any extra info I can provide, I can probably try to reproduce by nuking the whole homebrew installation and trying again, maybe also by manually setting permissions back to how they were...
Edit: semi-related question, is there a simple way to declare nix-darwin's
homebrew.brews
for multiple prefixes at the same time when usingnix-homebrew
? It seems like it only supports onebrewPrefix
by default, so I guess I'd need to write my own activation script if I wanted to also install packages under a second prefix withenableRosetta = true
?The text was updated successfully, but these errors were encountered: