hdbc-mysql broken on snow-leopard?

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? (and yes, I am aware of hdbc-odbc, but i was curious if I could use hdbc-mysql thanks -Carter

Did you install libmysqlclient? sudo port install should handle this, IIRC.
There's also this problem in general with MySQL, it seems:
http://www.google.co.uk/#q=libmysqlclient+os+x
On 8 August 2010 03:27, Carter Schonwald
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? (and yes, I am aware of hdbc-odbc, but i was curious if I could use hdbc-mysql thanks -Carter
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Carter Schonwald
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
participants (3)
-
Carter Schonwald
-
Christopher Done
-
Gregory Collins