【发布时间】:2014-03-19 07:50:10
【问题描述】:
我尝试在我的 Macbook 上安装 Haskell 两天,但无法成功。
我做了什么:
$ brew install ghc
很好。现在我正在尝试安装
$ cabal install text
并获得下一条错误消息:
Data/Text.hs:1074:4:
error: invalid preprocessing directive
#-}
^
我用谷歌搜索并找到了this。
所以:
-
brew 安装 gcc48
$ /usr/local/bin/gcc-4.8 --version gcc-4.8 (GCC) 4.8.2 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ cat /usr/local/lib/ghc-7.6.3/settings [("GCC extra via C opts", " -fwrapv"), ("C compiler command", "/usr/local/bin/gcc-4.8"), ("C compiler flags", " -m64 -fno-stack-protector -m64"), ... brew install cabal-install
- cabal 安装文本
我也收到了同样的信息。
我该如何解决?
【问题讨论】:
标签: macos haskell installation