安装&用OSX Mavericks GHC构建GHC [英] Installing & Building GHC with OSX Mavericks GHC
问题描述
为什么我的GHC 7.6.3在升级到OSX Mavericks后没有工作? 解决方案
花了很长时间了解如何使用OSX 10.9和GHC 7.6.3,以下是一些帮助您重新构建haskell代码的提示。
摘要: 为特立独行下载。
替代方法:使用XCode5包装器。 使用说明
Why doesn't my GHC 7.6.3 work after upgrading to OSX Mavericks?
It took a long time to figure out how to Work with both OSX 10.9 and GHC 7.6.3, and here are some tips to help you get back to building haskell code.
Summary: Download command line tools for mavericks and use gcc version 4.2 (link to the correct gcc path in your ghc settings file)
Steps:
- Download the command line tools for mavericks
- Install gcc-4.2 using homebrew
brew install apple-gcc42
Edit your settings file, Line 2. Update the C compiler location to point to this newer gcc. Depending on how you installed GHC, it could be one of the following...
Platform Edition
/Library/Frameworks/GHC.framework/Versions/Current/usr/lib/ghc-7.6.3/settings
Brew version of GHC
/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/settings
GHC Installed from Source
/usr/local/lib/ghc-7.6.3/settings
It will look something like this:
("C compiler command", "/usr/local/bin/gcc-4.2"),
A more detailed version for each step written can be found here.
Alternate approach: Use the XCode5 wrapper. Instructions here
这篇关于安装&用OSX Mavericks GHC构建GHC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!