我正在嘗試安裝c2hs與cabal install c2hs
。 我創建了~/.cabal/bin
以預先安裝二進制文件。與Mac OS X的c2hs安裝錯誤10.7.5
用命令cabal install c2hs
得到錯誤。
src/Control/StateTrans.hs:77:1: Warning:
Module `Prelude' does not export `catch'
[ 3 of 26] Compiling Data.Errors (src/Data/Errors.hs, dist/build/c2hs/c2hs-tmp/Data/Errors.o)
[ 4 of 26] Compiling Data.Attributes (src/Data/Attributes.hs, dist/build/c2hs/c2hs-tmp/Data/Attributes.o)
[ 5 of 26] Compiling Text.Lexers (src/Text/Lexers.hs, dist/build/c2hs/c2hs-tmp/Text/Lexers.o)
[ 6 of 26] Compiling Control.StateBase (src/Control/StateBase.hs, dist/build/c2hs/c2hs-tmp/Control/StateBase.o)
[ 7 of 26] Compiling Data.NameSpaces (src/Data/NameSpaces.hs, dist/build/c2hs/c2hs-tmp/Data/NameSpaces.o)
[ 8 of 26] Compiling C2HS.C.Attrs (src/C2HS/C/Attrs.hs, dist/build/c2hs/c2hs-tmp/C2HS/C/Attrs.o)
[ 9 of 26] Compiling C2HS.C.Builtin (src/C2HS/C/Builtin.hs, dist/build/c2hs/c2hs-tmp/C2HS/C/Builtin.o)
[10 of 26] Compiling Paths_c2hs (dist/build/autogen/Paths_c2hs.hs, dist/build/c2hs/c2hs-tmp/Paths_c2hs.o)
dist/build/autogen/Paths_c2hs.hs:21:13: Not in scope: `catch'
dist/build/autogen/Paths_c2hs.hs:22:13: Not in scope: `catch'
dist/build/autogen/Paths_c2hs.hs:23:14: Not in scope: `catch'
dist/build/autogen/Paths_c2hs.hs:24:17: Not in scope: `catch'
cabal: Error: some packages failed to install:
c2hs-0.16.5 failed during the building phase. The exception was:
ExitFailure 1
安裝有什麼問題? ghc版本是7.6.3。