# Homebrew command issues

**URL:** <https://discuss.circleci.com/t/homebrew-command-issues/6353>\
**Category:** Mobile\
**Tags:** homebrew, xcode, ios, circle-yml\
**Created:** [September 19, 2016, 10:08pm UTC](https://discuss.circleci.com/t/homebrew-command-issues/6353 "2016-09-19T22:08:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon47539524](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@anon47539524](https://discuss.circleci.com/u/anon47539524)\
**Post date:** [September 19, 2016, 10:08pm UTC](https://discuss.circleci.com/t/homebrew-command-issues/6353/1 "2016-09-19T22:08:15Z")

</div>

Hey dear CircleCI community 👋🏻,

There have been plenty of reports of commands to Homebrew failing with this message:

```auto
Homebrew no longer needs to have ownership of /usr/local. If you wish you can 
return /usr/local to its default ownership with: 
sudo chown root:wheel /usr/local 
/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby: No such file or directory -- /usr/local/Library/Homebrew/brew.rb (LoadError)

```

This issue is related to the update to Homebrew itself. As a work around for now please add this to your circle.yml:

```auto
dependencies:
  pre:
    - brew update
    - brew prune

```

This is an issue with Homebrew itself and not with CircleCI but we’ve seen customers return to green builds by first updating Homebrew in a separate command and then installing whatever dependencies are required afterwards.

Best,  
Constantin

---

<div class="post-metadata">

**Author:** ![anon47539524](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@anon47539524](https://discuss.circleci.com/u/anon47539524)\
**Post date:** [October 7, 2016, 10:38am UTC](https://discuss.circleci.com/t/homebrew-command-issues/6353/2 "2016-10-07T10:38:27Z")

</div>

This issue has been solved.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:33am UTC](https://discuss.circleci.com/t/homebrew-command-issues/6353/3 "2018-06-18T11:33:31Z")

</div>

Closed on June 18, 2018, 11:33am UTC


