ãåå¿é²ãmac OS Catalina(10.15.7)ã§ brew install ãããã Error: Permission denied @ apply2files ã¨ããã¨ã©ã¼ãåºãéã®å¯¾å¿
çµç·¯
brew install
ã brew upgrade
ãªã©ãããéã«ã以ä¸ã®ã¨ã©ã¼ã表示ããã¦ãã¾ã£ã
ã¨ã©ã¼å 容
Error: Permission denied @ apply2files - /usr/local/lib/docker/cli-plugins
ãã¾ããã£ã対å¿
$ sudo chown -R $(whoami) $(brew --prefix)/*
ã³ãã³ãã®æå³
brewã³ãã³ãã§ã®ã¤ã³ã¹ãã¼ã«å
ã®ãã¡ã¤ã«ã»ãã£ã¬ã¯ããªã®ææè
ãç¾å¨ã®ã¦ã¼ã¶ã¼ã«å¤æ´ãã¾ã
ç´°ãã調æ»
å®éã«ã³ãã³ããæã£ã¦ã¿ãããããããã¾ãã
brew --prefix
- brewã³ãã³ãã§ã®ã¤ã³ã¹ãã¼ã«å ã®ã«ã¼ããã£ã¬ã¯ããªã表示
$(brew --prefix)/*
- brewã³ãã³ãã§ã®ã¤ã³ã¹ãã¼ã«å ã®ãã¡ã¤ã«ãã¡ãæå®
whoami
- ç¾å¨ã®ã¦ã¼ã¶ã¼åã表示
chown -R
man chown
ãããã¨æ¸ãã¦ããã¾ããThe chown utility changes the user ID and/or the group ID of the specified files. Symbolic links named by arguments are silently left unchanged unless -h is used.
-R
ã«ã¤ãã¦ã¯Change the user ID and/or the group ID for the file hierarchies rooted in the files instead of just the files themselves.
- è¦ããã«æå®ãããã¡ã¤ã«ä»¥ä¸ã®ãã¡ã¤ã«ã®ã¦ã¼ã¶ã¼IDãã°ã«ã¼ãIDãå帰çã«å¤æ´
ã¡ãªã¿ã«
sudo brew
ãã¯ãããã¡ã¿ããã§ãã
Error: Running Homebrew as root is extremely dangerous and no longer supported. As Homebrew does not drop privileges on installation you would be giving all build scripts full access to your system.