<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi David<div class=""><br class=""></div><div class="">I am a long time user of ghc on OSX. I have seen that problem but never on native OSX only when using nix (and then I added it explicitly).</div><div class=""><br class=""></div><div class="">Two things spring to mind:</div><div class=""><ol class=""><li class="">Add it explicitly on the compile command `-liconv`</li><li class="">Use nix and then you can control the build environment in a totally controllable and reproducible manner. This is actually easier than it sounds: `curl <a href="https://nixos.org/nix/install" class="">https://nixos.org/nix/install</a> | sh` and `nix-env -I ghc`. If you get the same error with that then we can try adding `iconv` explicitly.</li></ol></div><div class=""><div class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;"> Dominic Steinitz<br class=""><a href="mailto:dominic@steinitz.org" class="">dominic@steinitz.org</a><br class="">http://idontgetoutmuch.org<br class="">Twitter: @idontgetoutmuch</div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><br class="">I have a conundrum on which advice would be appreciate. Does<br class="">anyone know how to successfully install ghc on OSX<br class="">I've tried various binary instalation routes:<br class="">macports, brew, direct binary downloads from <a href="http://haskel.org" class="">haskel.org</a><br class="">All have the same result. when I try to compile a basic hello world program<br class="">I get<br class=""><br class="">Undefined symbols for architecture x86_64:<br class=""> "_iconv", referenced from:<br class=""><br class=""><br class="">I've triedgiong through ghcup<br class=""><br class="">8.8.4<br class="">8.6.5.<br class="">8.10.2<br class="">8.10.7<br class="">9.0.1<br class=""><br class="">all have the same problem.<br class="">I'd be happy to build from source. Small problem: what Haskell compiler do<br class="">I use?<br class=""><br class="">Any advice on installs that works along with any changes to paths to avoid<br class="">the iconv problems would be appreciated as currently my Haskell-related<br class="">activities have come to a grinding halt. Switchig to a different OS would<br class="">be nice but its not a<br class="">feasible option a at present.Writing a compiler is starting to look<br class="">attractive..<br class=""><br class="">thanks<br class="">David<br class=""><br class="">-- <br class="">David Duke<br class="">Emeritus Professor of Computer Science<br class="">School of Computing University of Leeds UK<br class="">E:<a href="mailto:duke.j.david@gmail.com" class="">duke.j.david@gmail.com</a><br class="">W:<a href="https://engineering.leeds.ac.uk/staff/334/Professor_David_Duke" class="">https://engineering.leeds.ac.uk/staff/334/Professor_David_Duke</a><br class=""></div></div></blockquote></div><br class=""></div></body></html>