<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Oct 25, 2014 at 8:07 AM, Christian Sperandio <span dir="ltr"><<a href="mailto:christian.sperandio@gmail.com" target="_blank">christian.sperandio@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>After, to link the mysql-simple package I did an export LD_LIBRARY_PATH=/usr/local/mysql-5.6.11-osx10.7-x86_64/lib. Thus, the library libmysqlclient.18.dylib was found.</div></blockquote></div><br>This is usually a bad idea, and what you're seeing is the least of the things that can go wrong.</div><div class="gmail_extra"><br></div><div class="gmail_extra">The correct fix for all of this is not to use the environment settings, but to build the mysql binding with<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">    cabal install mysql-simple --extra-lib-dirs=/usr/local/mysql-5.6.11-osx10.7-x86_64/lib<br clear="all"><div><br></div><div>so it actually finds and records the location of the library instead of using an unsafe override that you have to reproduce at runtime (doing that for anything launched from the GUI is difficult, and in some OS X releases impossible, and is always risky).</div><div><br></div>-- <br><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>