2013-10-29 60 views
0

虽然在OSX小牛安装耶索德,与XCode5和铿锵的包装,我对这个错误炮轰:安装耶索德

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,并用它来代替铛后,我才得以摆脱这个问题。

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

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已经遭受酷刑!

+0

在Github的https://github.com/yesodweb/wai/blob/master/wai-extra/Network/Wai/Middleware/RequestLogger.hs中查看RequestLogger.hs的源代码后,我相信这有有些不好的预处理。 –

回答

1

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