LoginSignup
1
0

More than 3 years have passed since last update.

Permission denied @ dir_s_mkdir - /usr/local/Frameworksの対処

Posted at

Homebrew経由でgitをインストールしようと思ったらエラーが出た。

Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

Frameworksの権限がないと言われる。
一応、Homebrewの問題をチェックしてみる。

$ brew doctor

Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  php@7.1
  python@3.8

調べてみるとpythonが原因っぽい。
pythonをリンクさせる

$ brew link python

Linking /usr/local/Cellar/python@3.8/3.8.5... Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

リンクエラー。
やっぱり権限がないと言われる。
そもそもFrameworksディレクトリがなかったので作成&権限を付与で解決。

$ sudo mkdir /usr/local/Frameworks
$ sudo chown $(whoami):admin /usr/local/Frameworks
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0