2014-06-14 3 views
2

regex-dfa 패키지를 설치하려고합니다. regex-tdfa과 같은 다른 regex 패키지를 설치했는데 제대로 작동했습니다.cabal install regex-dfa fails

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 

내가 이것에 대해 무엇을 할 수 : 나는 sudo cabal install regex-dfa을 실행할 때

는 그러나, 나는 오류 메시지가?

답변

1

패키지는 매우 오래된 패키지이며, 마지막 (그리고 유일한) 업로드는 2007 년입니다. 가능한 경우 사용하지 마십시오. 또는 관리자에게 연락하여 패키지 업데이트를 요청하십시오.

이 특정 문제를 해결하려면 cabal unpack regex-dfa을 입력하고 -Werror을 제거한 다음 cabal install을 제거하십시오. 하지만 그 후에 다른 빌드 오류가 발생할지 확신하지 못합니다.