我正在尝试安装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对此我能做些什么呢?
发布于 2014-06-15 02:56:57
这个包非常旧,最后一次(也是唯一一次)上传是在2007年。如果可以的话,不要使用它。或者联系维护人员,让他更新包。
要解决此特定问题,您可以cabal unpack regex-dfa,删除-Werror,然后对其执行cabal install。但是我不确定在那之后你会不会得到另一个构建错误。
https://stackoverflow.com/questions/24222681
复制相似问题