Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to get Homebrew working, and brew doctor returns several warnings, one of which is this:

Warning: The following libiconv files were detected in /usr/local:
Homebrew doesn't provide a libiconv formula, and expects to link against
the system version in /usr/lib.

If you have an alternate libiconv, many formulae will fail to compile or
link, especially if it wasn't compiled with the proper architectures.

I take it I have to uninstall iconv. How do I do this?

UPDATE: I'm going to just move that file aside for now as a temporary solution.

share|improve this question
How did you install it in the first place? – Ignacio Vazquez-Abrams Aug 13 '12 at 4:36
I don't remember how I installed it, or even /if/ I did in the first place. – Blacklight Shining Aug 13 '12 at 4:54

If there is nothing in /usr/local you want except Homebrew you can do this:

cd /usr/local && xcrun git clean -xfde /var
brew link `brew ls`
brew doctor

All that is left will be Homebrew.

It is possible you will get permission errors during the clean step. If so you can run it again inserting sudo before the xcrun. However do so with caution.

You can run xcrun git clean -dn first to see what would be removed.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .