macでOCamlをインストールするために以下のコマンドを実行しました。
brew install ocaml
すると以下のようなエラーが出ました。
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/lib Error: Permission denied @ dir_s_mkdir - /usr/local/lib
これに対し、ディレクトリの権限を変更すると解決することがわかりました。
https://superuser.com/questions/666149/errors-installing-ocaml-using-homebrew-on-os-x
この情報によると
sudo chown -R $(whoami) $(brew --prefix)/*
で良いそうですが、意味がわかりません。whoamaiはユーザー名にすれば良いと思いますが、brew --prefixはどんな意味なのでしょうか?どうコマンドを入力したら良いのかわかりません。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/07/13 16:01