Error: Cowardly refusing to `sudo brew install` for installing glue 0.3 for Mac OSX Mountain Lion

后端 未结 6 633
失恋的感觉
失恋的感觉 2021-01-30 11:13

I\'m trying to install glue 0.3 for OXS Mountain Lion and ran into this error after installing homebrew (Error: Cowardly refusing to sudo brew install You can use b

6条回答
  •  悲&欢浪女
    2021-01-30 11:32

    Answered by the developers here:

    https://github.com/Homebrew/homebrew/issues/9953

    I solved it by NOT using sudo, and changing the permissions on whatever file it says cannot be accessed without sudo.

    For example, I could not access /usr/local/Cellar, so I entered the following (as specified here: https://github.com/Homebrew/homebrew/issues/3930)

    sudo chmod g+w /usr/local/Cellar
    sudo chgrp staff /usr/local/Cellar
    

提交回复
热议问题