<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I’m using Homebrew to install Dovecot on Mojave, but have to modify the formula to add ‘--with-mysql’.<div class=""><br class=""></div><div class="">Unfortunately compiling always fails with:</div><div class=""><br class=""></div><div class=""><div class="">checking for mysql_config... NO</div><div class="">checking for mysql_init in -lmysqlclient... no</div><div class="">configure: error: Can't build with MySQL support: libmysqlclient not found</div></div><div class=""><br class=""></div><div class="">I added:<br class=""><br class=""><div class=""> ENV['LD']="-L/usr/local/opt/mysql@5.7/lib"</div><br class="Apple-interchange-newline">to the ‘def install’ section of the formula, but it still fails.</div><div class=""><br class=""></div><div class="">config.log shows:</div><div class=""><br class=""></div><div class=""><div class="">…</div><div class="">KRB5_LIBS=''</div><div class="">LD='-L/usr/local/opt/mysql@5.7/lib/'</div><div class="">LDAP_LIBS=‘'</div></div><div class="">…</div><div class=""><br class=""></div><div class="">And mysqlclient is here:</div><div class=""><br class=""></div><div class=""><div class="" style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;">$ locate mysqlclient</span></div><div class="" style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;">/usr/local/Cellar/mysql@5.7/5.7.24/lib/libmysqlclient.20.dylib</span></div><div class="" style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;">/usr/local/Cellar/mysql@5.7/5.7.24/lib/libmysqlclient.a</span></div><div class="" style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;">/usr/local/Cellar/mysql@5.7/5.7.24/lib/libmysqlclient.dylib</span></div><div class="" style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;">/usr/local/Cellar/mysql@5.7/5.7.24/lib/pkgconfig/mysqlclient.pc</span></div></div><div class=""><div class=""><br class=""></div><div class="">I changed the formula to:</div><div class=""><br class=""></div><div class=""><div class="" style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> ENV['LD']="-L/usr/local/Cellar/mysql@5.7/5.7.24/lib/“</span></div><div class="" style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures; font-size: 11px;">And still get the same thing.</span></div></div><div class=""><br class=""></div><div class="">Any suggestions?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">James.</div></div></body></html>