8 Aug
2010
8 Aug
'10
7:13 p.m.
Carter Schonwald <carter.schonwald@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. G -- Gregory Collins <greg@gregorycollins.net>