Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.

自分用メモ

対象者

$ 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にした時も同じような事やった気がする。

Jung0
ビール🍺 / ハイボール / お茶割り🍵
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away