cabal安装regex-dfa失败

时间:2014-06-14 17:54:49

标签: haskell cabal

我正在尝试安装regex-dfa软件包。我安装了其他正则表达式包,如regex-tdfa,它们运行良好。

但是,当我运行sudo cabal install regex-dfa时,收到错误消息:

Resolving dependencies...
[1 of 1] Compiling Main             ( /tmp/regex-dfa-0.91-9125/regex-dfa-0.91/Setup.hs, /tmp/regex-dfa-0.91-9125/regex-dfa-0.91/dist/setup/Main.o )
Linking /tmp/regex-dfa-0.91-9125/regex-dfa-0.91/dist/setup/setup ...
Configuring regex-dfa-0.91...
Warning: No 'build-type' specified. If you do not need a custom Setup.hs or
./configure script then use 'build-type: Simple'.
Building regex-dfa-0.91...
Preprocessing library regex-dfa-0.91...

Text/Regex/DFA/Wrap.hs:1:16: Warning:
    -fglasgow-exts is deprecated: Use individual extensions instead

<no location info>: 
Failing due to -Werror.
Failed to install regex-dfa-0.91
cabal: Error: some packages failed to install:
regex-dfa-0.91 failed during the building phase. The exception was:
ExitFailure 1

我该怎么办?

1 个答案:

答案 0 :(得分:1)

包很老,最后一次(也是唯一一次)上传是在2007年。如果可以,请不要使用它。或者联系维护人员并要求他更新包裹。

要解决此特定问题,您可以cabal unpack regex-dfa删除-Werror,然后cabal install。但是我不确定在那之后你会得到另一个构建错误。