MacOS------>>brew Update Error

Source: Internet
Author: User

When installing cocoapods, you need to upgrade the version of Ruby <= 2.2.0 and then upgrade Ruby to update HomeBrew directly performing brew update will explode the following error

#$ Brew Update

Error:/usr/local is not writable. You should the ownership

and permissions of/usr/local your user account:

sudo chown-r $ (whoami)/usr/local

macosdemacbook-pro:~ macos$ sudo chown-r/usr/local

Usage:chown [-FHV] [-R [-H |-l |-p]] owner[:group] File ...

chown [-FHV] [-R [-H |-l |-p]]: Group file ...

Reason:

Brew Update does not have permission to modify this directory for '/usr/local '

Solution:

Using the SU user update

sudo brew update

MacOS------>>brew Update Error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.