Cabal ExitFailure 127是什么意思?

时间:2012-04-17 17:23:35

标签: haskell cabal cabal-install

当我尝试安装“编码”库时,我得到了这个失败,但我找不到任何文档来告诉我这意味着什么:

$ sudo cabal install encoding --global
Resolving dependencies...
cabal: Error: some packages failed to install:
encoding-0.6.6 failed during the configure step. The exception was:
ExitFailure 127

编辑:通过详细记录,我有:

$ cabal install encoding --global -v
Reading available packages...
Resolving dependencies...
In order, the following would be installed:
encoding-0.6.6 (new package)
Extracting
/home/aditya/.cabal/packages/hackage.haskell.org/encoding/0.6.6/encoding-0.6.6.tar.gz
to /tmp/encoding-0.6.610687...
creating /tmp/encoding-0.6.610687/encoding-0.6.6/dist/setup
/tmp/encoding-0.6.610687/encoding-0.6.6/dist/setup/setup configure --verbose=2
--ghc --global --flags=newghc --flags=splitbase --constraint=HaXml ==1.22.5
--constraint=array ==0.3.0.2 --constraint=base ==4.3.1.0 --constraint=binary
==0.5.1.0 --constraint=bytestring ==0.9.1.10 --constraint=containers ==0.4.0.0
--constraint=extensible-exceptions ==0.1.1.2 --constraint=ghc ==7.0.3
--constraint=ghc-prim ==0.2.0.0 --constraint=mtl ==2.0.1.0
--constraint=regex-compat ==0.93.1
World file is already up to date.
cabal: Error: some packages failed to install:
encoding-0.6.6 failed during the configure step. The exception was:
ExitFailure 127

这似乎仍然没有告诉我可能缺少什么C库依赖。

1 个答案:

答案 0 :(得分:3)

这通常意味着程序包(或其依赖项之一)所需的C库缺失。

启用详细日志记录应该会有所帮助。

$ cabal install encoding -v