macos – 确定Mac OS X上安装的64位或32位Haskell?

任何人都可以告诉我如何确定我是否在OS X上使用64位或32位格拉斯哥Haskell编译器(GHC)?我已经安装了32位和64位版本,我不知道哪一个指向当前.

⚡ pwd
/Library/Haskell   
⚡ ll
bin -> current/bin
current -> ghc-7.4.2
doc -> current/doc
ghc-7.0.3 
ghc-7.4.2

此外…

⚡ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.4.2

……不包含我所追求的信息.

顺便说一下,我在Intel Core i5上运行OS X版本10.7.5,所以我可以运行,but I am trying to get yesod going ……

There is a bug in the 64-bit GHC 7.4 for Mac which prevents yesod devel from working correctly. This bug has been corrected in 7.6. However, as 7.4 is still the recommended platform for development, it is advisable to install the 32-bit version of GHC.

最佳答案
试试ghc –info,它应列出目标架构.

一个更通用的解决方案是将符号链接和脚本追逐到实际的GHC二进制文件,然后在其上运行文件.

转载注明原文:macos – 确定Mac OS X上安装的64位或32位Haskell? - 代码日志