安装Yesod

时间:2013-10-29 05:36:36

标签: cabal yesod

在OSX Mavericks上使用XCode5和clang包装器安装Yesod时,我被这个错误轰炸了:

Network/Wai/Middleware/RequestLogger.hs:166:1:
parse error on input `*'
Failed to install wai-extra-1.3.4.5
Updating documentation index
/Users/alexanderventura/Library/Haskell/doc/index.html
cabal: Error: some packages failed to install:
wai-extra-1.3.4.5 failed during the building phase. The exception was:
ExitFailure 1

知道为什么会这样吗?我一直试图安装Yesod几个小时没有成功!

更新

安装gcc4.8并使用它代替clang之后,我就摆脱了这个问题。

不幸的是,我遇到了另一个问题

lookupSymbol failed in relocateSection (relocate external)
/Users/alexanderventura/Library/Haskell/ghc-7.6.3/lib/http-attoparsec-0.1.0/lib/HShttp-     attoparsec-0.1.0.o: unknown symbol `_httpzmtypeszm0zi8zi2_NetworkziHTTPziTypesziHeader_ByteRangeSuffix_con_info'
ghc: unable to load package `http-attoparsec-0.1.0'
Failed to install yesod-core-1.2.4.2

关于可能发生的事情的任何想法?安装Yesod一直是折磨!

1 个答案:

答案 0 :(得分:1)

重新安装Haskell平台并再次更新cabal似乎已经完成了。