开发者

Haskell Target Architecture

I am trying to use the HDBC MySQL driver in my project. I seem to be having a problem related to target architecture of the processor.

ld: warning: in /usr/local/mysql/lib/libmysqlclient.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

Since it can't read the file all the external references fail to resolve.

Do I need a different version of MySQL? Or can I retarget the target architecture of my build? Personally I think that I am in the later camp as I prefer to work in pure 64 bit 开发者_StackOverflow中文版environment.


The issue was that GHC was 32 bit and MySQL was 64 bit. 32 bit is the currently supported GHC architecture on OS X.

See Hackage 2965 for more details on 64 bit GHC on OS X

I resolved this by uninstalling 64 bit MySQL and installing 32 bit MySQL.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜