Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人知道如何让 mysql-simple 库在 OSX 上运行吗?我收到以下错误:
正在加载包 mysql-0.1.1.4 ... 无法加载 .so/.DLL 为:libmysqlclient.dylib (dlopen(libmysqlclient.dylib, 9):找不到合适的图像。确实找到了:/usr/local/lib/libmysqlclient .dylib:mach-o,但架构错误)
谢谢,大卫
好吧,听起来您确实有错误的 MySQL 库,尝试运行(从终端): file /usr/local/lib/libmysqlclient.dylib当您使用 64 位 Haskell 时,它可能是 32 位的,反之亦然
file /usr/local/lib/libmysqlclient.dylib