首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >cabal安装regex-dfa失败

cabal安装regex-dfa失败
EN

Stack Overflow用户
提问于 2014-06-15 01:54:49
回答 1查看 110关注 0票数 2

我正在尝试安装regex-dfa包。我安装了其他正则表达式包,比如regex-tdfa,它们工作得很好。

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

代码语言:javascript
复制
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

对此我能做些什么呢?

EN

回答 1

Stack Overflow用户

发布于 2014-06-15 02:56:57

这个包非常旧,最后一次(也是唯一一次)上传是在2007年。如果可以的话,不要使用它。或者联系维护人员,让他更新包。

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24222681

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档