[Haskell-cafe] hdbc-mysql broken on snow-leopard?

Gregory Collins greg at gregorycollins.net
Sun Aug 8 15:13:49 EDT 2010

Carter Schonwald <carter.schonwald at gmail.com> writes:

> Hey All,
> when i build hdbc-mysql and then try to run some example code, i get the
> following error message:
> Loading package HDBC-mysql-0.6.3 ... can't load .so/.DLL for: mysqlclient
> (dlopen(libmysqlclient.dylib, 9): no suitable image found.  Did find:
>     /usr/local/lib/libmysqlclient.dylib: mach-o, but wrong architecture)
> does this mean that it won't build on OS X snow leopard?

GHC on OSX is 32-bit, so you need to build a 32-bit or universal mysql
library. The linker is probably complaining because your libmysqlclient
is 64-bit.

Gregory Collins <greg at gregorycollins.net>

More information about the Haskell-Cafe mailing list