Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

'brew doctor' failed to run on 10.8.2 | broken symlinks #18257

Closed
vaLinBSD opened this Issue · 4 comments

3 participants

Radek Valášek Misty De Meo Adam Vandenberg
Radek Valášek

This happens frequently when I run 'brew upgrade' mostly on libraries-related formulas, such as libogg, libsigc++, freetype, glib etc. In /usr/local/include or /usr/local/lib then occurs broken symlinks.

https://gist.github.com/vaLinBSD/5090366

Misty De Meo
Owner

This looks like a problem with your computer. (Notice how libpng's link contains data from a Garage Band plist.) Check to make sure you don't have a hardware problem such as dying RAM or hard drive.

Radek Valášek

I'm aware of that, I've done these tests before the post and all passed without errors. The problems are only related to the brew created symlinks (no other symlinks are affected in the system, or other storage problems appears) after doing 'upgrade' ...weird. I've tried couple of times uninstalling the whole brew and then install it again. It all goes thru without any problems until some of the installed formulas get new version and I do the mentioned 'upgrade'.

Any other advise would be appreciated, thanks.

Misty De Meo
Owner

I really can't think of anything to suggest here beyond bad hardware. Have you run a hard drive scan with Disk Utility? Also try running memtest86 if you haven't already.

Radek Valášek

I've done some more investigation and it starts looking as not homebrew-related problem, so I must apologize. All these tests (diskutil, memtest86, etc.) past without errors as I mentioned in previous post. It looks like I have the same issues as others in this apple discussions: https://discussions.apple.com/thread/3891215?start=0&tstart=0

dougluce dougluce referenced this issue from a commit in dougluce/homebrew
dougluce dougluce Robust in the face of really bad symlinks.
`ArgumentError` is thrown when Ruby's pathname lib hits a symlink with
binary zeros in it ('\0').  These links have shown up in
/usr/local/bin for a couple users (#18257,
https://gist.github.com/barttenbrinke/2948629 and others).  As a
result, caused `brew doctor`/`brew prune` to fail and exit mid-run.

`brew doctor` will now report those links as bad, and `brew prune`
will remove them.
e40c1e6
Adam Vandenberg adamv closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.