LoginSignup
9
9

More than 5 years have passed since last update.

homebrewインストール時にリンクが貼られない問題

Last updated at Posted at 2016-03-19

2016/03/1追記

  • homebrewは推奨通りにインストールするとusr/localを利用する
  • usr/localに管理者権限でインストールを行おうとするため権限の問題でリンクを貼れないことがあるとのこと

以下の設定を行って解決した

sudo chmod -R 777 /usr/local/

参考
homebrewインストールができない

追記ここまで


macのhomebrewでwgetをインストールしようとしたところエラーに

Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink share/info/wget.info
/usr/local/share/info is not writable.

You can try again using:
  brew link wget

以下ディレクトリにおいてパーミッションがないことが原因

/usr/local/share/info

該当ディレクトリの権限を変更し、再度インストールしたところ成功した
-Rオプションをつけることで再帰的にパーミッションの変更が可能

chmod -R 755 /usr/local/share/info
brew link wget
Linking /usr/local/Cellar/wget/1.17.1... 3 symlinks created

参考

Linux:chmodでファイル、ディレクトリのパーミッションを変更
UNIX入門 > Linuxコマンド一覧 > chmod

9
9
0

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
9
9