<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Apr 23, 2015 at 4:19 PM, Peng Yu <span dir="ltr"><<a href="mailto:pengyu.ut@gmail.com" target="_blank">pengyu.ut@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":pv" class="a3s" style="overflow:hidden">It is installed from <<a href="https://www.haskell.org/platform/" target="_blank">https://www.haskell.org/platform/</a><div style="display:inline-block;width:16px;height:16px"> </div>>. The OS is Mac OS X.</div></blockquote></div><br>Yes, as I suspected. The problem is that Apple ships an old version of the iconv library; MacPorts and Homebrew generally install a newer, incompatible one with symbols renamed to trigger that link error (because otherwise you find out about the mismatch when the first iconv call dumps core at runtime). You will need to arrange for ghc not to see that other iconv, only Apple's, since it won't work with any but Apple's. Or use a ghc from whichever package manager you have installed, so that it works with that package manager's iconv library.<br><br>(This is more likely to happen with Homebrew, since most things don't look /opt/local but just about everything looks under /usr/local.)<br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a> <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>