2013-12-08 2 views
4

경고 : 제가 튜토리얼을 따라하는 Hoogle의 CLI 버전을 설치하기 위해 노력하고있어 여기음모는 hoogle 설치 오류 - BuilderResponse이없는

새로운 하스켈 사용자. Mac OS X, 64 비트 용 Haskell Platform 2013.2.0.0에서 다음을 볼 수 있습니다.

기타 정보 : ~/Library/Haskell/bin이 제 경로에 있습니다. alex와 happy (그리고 실제로는 BuilderResponse가 정의되어 있다고 생각하는 wai)가 설치되어 있습니다. 이것은 원본 설치 (실패하기 전에 엄청난 양의 물건을 설치 한)의 성적 증명서가 아니지만 지금은 내가있는 곳입니다. 낄낄 거림 들어, 나는 페도라 19 (X86_64)에 똑같은 시도하고 그것은 맥 특유의 생각하지 않아 그래서 비슷하게 실패합니다.

% cabal update 
Downloading the latest package list from hackage.haskell.org 
% cabal -V 
cabal-install version 1.18.0.2 
using version 1.18.1.2 of the Cabal library 
% cabal install hoogle 
Resolving dependencies... 
Configuring hoogle-4.2.23... 
Building hoogle-4.2.23... 
Preprocessing library hoogle-4.2.23... 
[ 1 of 46] Compiling Paths_hoogle  (dist/build/autogen/Paths_hoogle.hs, dist/build/Paths_hoogle.o) 
[ 2 of 46] Compiling Data.TypeMap  (src/Data/TypeMap.hs, dist/build/Data/TypeMap.o) 
[ 3 of 46] Compiling Data.Heap  (src/Data/Heap.hs, dist/build/Data/Heap.o) 
[ 4 of 46] Compiling Hoogle.Score.Type (src/Hoogle/Score/Type.hs, dist/build/Hoogle/Score/Type.o) 
[ 5 of 46] Compiling Hoogle.Score.Scoring (src/Hoogle/Score/Scoring.hs, dist/build/Hoogle/Score/Scoring.o) 
[ 6 of 46] Compiling Hoogle.Score.All (src/Hoogle/Score/All.hs, dist/build/Hoogle/Score/All.o) 
[ 7 of 46] Compiling General.Base  (src/General/Base.hs, dist/build/General/Base.o) 
[ 8 of 46] Compiling General.System (src/General/System.hs, dist/build/General/System.o) 
[ 9 of 46] Compiling Hoogle.Type.Language (src/Hoogle/Type/Language.hs, dist/build/Hoogle/Type/Language.o) 
[10 of 46] Compiling General.Util  (src/General/Util.hs, dist/build/General/Util.o) 
[11 of 46] Compiling General.Web  (src/General/Web.hs, dist/build/General/Web.o) 

src/General/Web.hs:44:19: 
    Not in scope: data constructor `ResponseBuilder' 
Failed to install hoogle-4.2.23 
cabal: Error: some packages failed to install: 
hoogle-4.2.23 failed during the building phase. The exception was: 
ExitFailure 1 

답변

5

그것은 닐 최신 wai 패키지와 함께 작동하도록 hoogle를 업데이트하지 않았습니다 것 같습니다.

cabal install hoogle --constraint='wai<2.0' 

편집 : wai 2.0은 단 4 일 전 출시 된과 hackage 사전에 파손에 대해 개발자를 통보하지 않습니다 단기 해결책은 잘못된 패키지의 이전 버전 (와이)를 선택 음모를 강제하는 것입니다 , 그래서 이것은 정말로 놀라운 것이 아닙니다.

+1

이것은 다시 wai 3에서 발생했습니다. 'cabal install hoogle --constraint = 'wai <3.0'' 이 문제를 해결하기 위해 노력했습니다. – Sean

+0

'hoogle'이 최근에 업데이트되었습니다 ('4.2.33'). 상자에서 다시 작동합니다. – fotNelton