Installing in Homebrew errors

后端 未结 8 2046
遥遥无期
遥遥无期 2020-12-04 05:38

Attempting to install rvm and ruby 1.9.2

I already installed homebrew and git, but couldn\'t get complete updates because I kept getting permission errors. Re-install

8条回答
  •  长情又很酷
    2020-12-04 06:16

    I suggest ensuring that the current user is a member of the group that owns /usr/local. I believe by default, that group is wheel. To make yourself a member of that group:

    $ sudo dscl . append /Groups/wheel GroupMembership $USER
    

    Although something of an inelegant hammer, it has the intended effect - enabling access to items in /usr/local that are intended only for use (read/write) by elevated members. This approach has benefits of the other above because it takes advantage of the group memberships, enabling multiple (authorized) users on the system to use homebrew.

提交回复
热议问题