Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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:
include/iconv.h
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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.