76
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

posted at

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

自分用メモ

対象者

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

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
Sign upLogin
76
Help us understand the problem. What are the problem?