git formula not installing (libiconv error?) #9092
Comments
It looks like the git build system is picking up a libiconv that doesn't have 64-bit symbols. It could be due to the MacGPG stuff, that is known to cause problems. |
Do you see anything if you do |
@mistydemeo Big surprise, there's some MacGPG stuff there: https://gist.github.com/1468849 |
Yeah, you'll have to remove, or at least temporarily move, the iconv stuff. |
Hmm, I do use MacGPG though. I'll try and figure it out. |
I moved the MacGPG stuff into my home folder, but I still get the same error. |
What do you see if you do |
Try |
Looks like it uses
|
That one is fine. The problem is probably some library that you have already installed in homebrew that is linked to MacGPG's libiconv. |
@jacknagel This is what I see. Had to rework the command a bit to remove |
Hmm, when looking at the |
And, it seems like the version installed in |
Yes, that was it. I uninstalled the homebrew version of libiconv ( |
Yes, the Hombrew version can interfere with things, which is why it is not normally linked into the prefix; instead of uninstalling you could |
From what I could gather, this happened because |
|
|
Since I spent about an hour (and many Google searches) trying to get to the bottom of this, I wanted to add my experience in the hopes that this may help someone else down the road. I'm on an iMac running OS/X 10.6. Prior to installing Brew, I had both MacPorts and Fink, which may have unintentionally left cruft laying around, even though I'm sure I got it all. The fix for me ended up being: The second step was very important, because I don't believe that those files were linked by default. Anyway, once I installed libiconv via Brew, Git compiled with no complaints whatsoever! Hope this helps! |
I just tried running
brew upgrade
to upgrade my formulae, and it crashed on installing git. I've tried installing it separately, but that gives me the exact same error message, which you can see in the gist I just posted.It seems like there's some error with libiconv, but I can't figure out what. Running
brew install libiconv
doesn't seem to do anything at all (the command generates no output).Oh, and here's my
brew doctor
output:The text was updated successfully, but these errors were encountered: