2016-07-11 5 views
0

私はbrewを使って私のMacにpython3を再インストールしようとしています brew install python3です。リンクステップに進むとき しかし、それはエラーを投げた:リンク中/usr/local/Cellar/python3/3.5.1 ...エラー:パーミッションが拒否されました -/usr/local/Frameworks

The brew link step did not complete successfully The formula built, but is not symlinked into /usr/local Could not symlink bin/2to3-3.5 Target /usr/local/bin/2to3-3.5 already exists. You may want to remove it: rm '/usr/local/bin/2to3-3.5' To force the link and overwrite all conflicting files: brew link --overwrite python3 To list all files that would be deleted: brew link --overwrite --dry-run python3

しかしrm '/usr/local/bin/2to3-3.5brew link --overwrite python3を使用した後、 他のエラーが発生しました:Error: Permission denied - /usr/local/Frameworksを。

/usr/local/の下にFrameworksというディレクトリがないため、なぜこのようなことが起こったのかわかりません。

+0

多分 'は/ usr/local'上のアクセス権が読み取り専用にしていると' brew'は新しいファイル/ディレクトリを作成することはできませんか?昇格された権限でコマンドを実行してみてください。 – Jezor

+0

私は 'sudo'を使ってこれを解決しようとしていましたが、' sudo'はHomeBrewで減価償却されるので、私はそれについて何ができるのか正確には分かりません。具体的な提案はありますか? – user6572695

答えて

1

書いている時点で、自作は/ usr/localの内容をあなたのユーザ名にchownする必要があります。これは素晴らしい解決策のようには見えませんが、うまくいきます。参照:https://github.com/mxcl/homebrew/issues/9953#issuecomment-3800557

あなたが行うことができます。 sudo chown -R `whoami` /usr/local brew link python3

関連する問題