140
76

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Homebrewで入れたPythonでのlinkエラー問題

Posted at

自分用メモ

対象者

$ 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:
  python

$ brew link pythonと打ってもエラー 💩

エラー内容

Linking /usr/local/Cellar/python/3.6.4_4... Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

ディレクトリを調べてみるとそもそも/usr/local/Frameworksなんていうディレクトリすらなかった。

解決法

ディレクトリ作って権限与えておしまい。

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

これでbrew link python

終わり

確かEl Capitanにした時も同じような事やった気がする。

140
76
1

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
140
76

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?