我正在尝试安装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。