我正在尝试安装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
我该怎么办?
答案 0 :(得分:1)
包很老,最后一次(也是唯一一次)上传是在2007年。如果可以,请不要使用它。或者联系维护人员并要求他更新包裹。
要解决此特定问题,您可以cabal unpack regex-dfa
删除-Werror
,然后cabal install
。但是我不确定在那之后你会得到另一个构建错误。